|
1 | 1 | import setuptools |
2 | 2 | from glob import glob |
3 | 3 |
|
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() |
6 | 7 |
|
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: |
8 | 10 | requirements = fh.read().splitlines() |
9 | 11 |
|
| 12 | +# Setting up the package |
10 | 13 | setuptools.setup( |
11 | 14 | name="Sanatio", |
12 | 15 | version="1.5.0", |
|
17 | 20 | long_description_content_type="text/markdown", |
18 | 21 | url="https://github.com/codeperfectplus/Sanatio", |
19 | 22 | 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 | + ], |
21 | 29 | install_requires=requirements, |
22 | 30 | 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 | + ], |
31 | 43 | python_requires=">=3.4", |
32 | 44 | include_package_data=True, |
33 | 45 | ) |
0 commit comments