| 1 | from setuptools import setup, find_packages |
| 2 | |
| 3 | |
| 4 | with open("VERSION", "r") as f: |
| 5 | version = f.read().strip() |
| 6 | |
| 7 | with open("README.md", "r") as f: |
| 8 | long_description = f.read() |
| 9 | |
| 10 | setup( |
| 11 | name="isoduration", |
| 12 | version=version, |
| 13 | author="Víctor Muñoz", |
| 14 | author_email="[email protected]", |
| 15 | description="Operations with ISO 8601 durations", |
| 16 | url="https://github.com/bolsote/isoduration", |
| 17 | package_dir={"": "src"}, |
| 18 | packages=find_packages(where="src"), |
| 19 | install_requires=["arrow>=0.15.0"], |
| 20 | python_requires=">=3.7", |
| 21 | zip_safe=False, |
| 22 | long_description=long_description, |
| 23 | long_description_content_type="text/markdown", |
| 24 | project_urls={ |
| 25 | "Repository": "https://github.com/bolsote/isoduration", |
| 26 | "Bug Reports": "https://github.com/bolsote/isoduration/issues", |
| 27 | "Changelog": "https://github.com/bolsote/isoduration/blob/master/CHANGELOG", |
| 28 | }, |
| 29 | keywords=[ |
| 30 | "datetime", |
| 31 | "date", |
| 32 | "time", |
| 33 | "duration", |
| 34 | "duration-parsing", |
| 35 | "duration-string", |
| 36 | "iso8601", |
| 37 | "iso8601-duration", |
| 38 | ], |
| 39 | classifiers=[ |
| 40 | "Programming Language :: Python :: 3", |
| 41 | "Operating System :: OS Independent", |
| 42 | "License :: OSI Approved :: ISC License (ISCL)", |
| 43 | "Development Status :: 4 - Beta", |
| 44 | "Intended Audience :: Developers", |
| 45 | "Topic :: Software Development :: Libraries :: Python Modules", |
| 46 | ], |
| 47 | ) |