| 1 | try: |
| 2 | from setuptools import setup |
| 3 | except ImportError: |
| 4 | from distutils.core import setup |
| 5 | |
| 6 | import versioneer |
| 7 | |
| 8 | |
| 9 | def read(path): |
| 10 | """ |
| 11 | Read the contents of a file. |
| 12 | """ |
| 13 | with open(path, encoding="utf-8") as f: |
| 14 | return f.read() |
| 15 | |
| 16 | |
| 17 | setup( |
| 18 | classifiers=[ |
| 19 | 'Intended Audience :: Developers', |
| 20 | 'License :: OSI Approved :: MIT License', |
| 21 | 'Operating System :: OS Independent', |
| 22 | 'Programming Language :: Python', |
| 23 | 'Programming Language :: Python :: 3.8', |
| 24 | 'Programming Language :: Python :: 3.9', |
| 25 | 'Programming Language :: Python :: 3.10', |
| 26 | 'Programming Language :: Python :: 3.11', |
| 27 | 'Programming Language :: Python :: Implementation :: CPython', |
| 28 | 'Programming Language :: Python :: Implementation :: PyPy', |
| 29 | ], |
| 30 | name='crochet', |
| 31 | version=versioneer.get_version(), |
| 32 | cmdclass=versioneer.get_cmdclass(), |
| 33 | description="Use Twisted anywhere!", |
| 34 | python_requires=">=3.8.0", |
| 35 | install_requires=[ |
| 36 | "Twisted>=16.0", |
| 37 | "wrapt", |
| 38 | ], |
| 39 | keywords="twisted threading", |
| 40 | license="MIT", |
| 41 | package_data={"crochet": ["py.typed", "*.pyi"]}, |
| 42 | packages=["crochet", "crochet.tests"], |
| 43 | url="https://github.com/itamarst/crochet", |
| 44 | maintainer='Itamar Turner-Trauring', |
| 45 | maintainer_email='[email protected]', |
| 46 | long_description=read('README.rst') + '\n' + read('docs/news.rst'), |
| 47 | ) |