Skip to content

Commit 482a86a

Browse files
chore: Update setup.py to include code readability improvements and bug fixes
1 parent 93d8712 commit 482a86a

3 files changed

Lines changed: 33 additions & 15 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,19 @@ All notable changes to this project will be documented in this file. The format
44

55
| Version | Date |
66
| ------- | ---- |
7-
| Version 1.5.0 | |
7+
| Version 1.6.0 ||
8+
| Version 1.5.0 | 23-July-2024 |
89
| Version 1.4.0 | 22-June-2024 |
910
| Version 1.3.0 | 17-June-2024 |
1011
| Version 1.2.0 | 17-June-2024 |
1112
| Version 1.1.0 | 2-June-2024 |
1213
| Version 1.0.0 | 31-May-2024 |
1314

15+
## Version 1.6.0 Release
16+
17+
- Code Readability improved
18+
- Bug fixess
19+
1420
## Version 1.5.0 Release
1521

1622
- Bug fixes

scripts/release.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ check_command git
2626
check_command flake8
2727
check_command twine
2828
check_file setup.py
29-
python3 setup.py sdist bdist_wheel
29+
python setup.py sdist bdist_wheel
3030
check_directory dist
31-
python3 -m twine upload dist/*
31+
python -m twine upload dist/*
3232

3333
rm -rf dist
3434
rm -rf build

setup.py

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
import setuptools
22
from glob import glob
33

4-
with open("README.md", "rb") as fh:
5-
long_description = fh.read().decode("utf-8")
4+
# Reading the long description from the README file
5+
with open("README.md", "r", encoding="utf-8") as fh:
6+
long_description = fh.read()
67

7-
with open("requirements.txt", "r") as fh:
8+
# Reading the list of requirements from the requirements file
9+
with open("requirements.txt", "r", encoding="utf-8") as fh:
810
requirements = fh.read().splitlines()
911

12+
# Setting up the package
1013
setuptools.setup(
1114
name="Sanatio",
1215
version="1.5.0",
@@ -17,17 +20,26 @@
1720
long_description_content_type="text/markdown",
1821
url="https://github.com/codeperfectplus/Sanatio",
1922
data_files=[('assets', glob('sanatio/assets/*'))],
20-
keywords="sanatio, validation, python, data, data-validation, data-validation-python, data-validation-library, data-validation-python-library, data-validation-python-package, data-validation-package, data-validation-library-python",
23+
keywords=[
24+
"sanatio", "validation", "python", "data", "data-validation",
25+
"data-validation-python", "data-validation-library",
26+
"data-validation-python-library", "data-validation-python-package",
27+
"data-validation-package", "data-validation-library-python"
28+
],
2129
install_requires=requirements,
2230
packages=setuptools.find_packages(),
23-
project_urls={"Documentation": "https://sanatio.readthedocs.io/en/latest/",
24-
"Source": "https://github.com/codeperfectplus/Sanatio",
25-
"Tracker": "https://github.com/codeperfectplus/Sanatio/issues"},
26-
classifiers=["Development Status :: 5 - Production/Stable",
27-
"Programming Language :: Python :: 3",
28-
"License :: OSI Approved :: Apache Software License",
29-
"Operating System :: OS Independent",
30-
"Intended Audience :: Developers"],
31+
project_urls={
32+
"Documentation": "https://sanatio.readthedocs.io/en/latest/",
33+
"Source": "https://github.com/codeperfectplus/Sanatio",
34+
"Tracker": "https://github.com/codeperfectplus/Sanatio/issues"
35+
},
36+
classifiers=[
37+
"Development Status :: 5 - Production/Stable",
38+
"Programming Language :: Python :: 3",
39+
"License :: OSI Approved :: Apache Software License",
40+
"Operating System :: OS Independent",
41+
"Intended Audience :: Developers"
42+
],
3143
python_requires=">=3.4",
3244
include_package_data=True,
3345
)

0 commit comments

Comments
 (0)