Anatoly Bubenkov | b1edeea | 2015-03-15 13:41:13 +0100 | [diff] [blame] | 1 | """Setuptools entry point.""" |
| 2 | import codecs |
| 3 | import os |
png | 99ccbe5 | 2013-01-04 11:29:21 -0500 | [diff] [blame] | 4 | |
| 5 | try: |
| 6 | from setuptools import setup |
| 7 | except ImportError: |
| 8 | from distutils.core import setup |
| 9 | |
| 10 | |
Anatoly Bubenkov | b1edeea | 2015-03-15 13:41:13 +0100 | [diff] [blame] | 11 | CLASSIFIERS = [ |
png | 99ccbe5 | 2013-01-04 11:29:21 -0500 | [diff] [blame] | 12 | 'Development Status :: 4 - Beta', |
| 13 | 'Intended Audience :: Developers', |
| 14 | 'License :: OSI Approved :: MIT License', |
| 15 | 'Natural Language :: English', |
| 16 | 'Operating System :: OS Independent', |
| 17 | 'Programming Language :: Python', |
| 18 | 'Topic :: Software Development :: Libraries :: Python Modules' |
Anatoly Bubenkov | b1edeea | 2015-03-15 13:41:13 +0100 | [diff] [blame] | 19 | ] |
png | 99ccbe5 | 2013-01-04 11:29:21 -0500 | [diff] [blame] | 20 | |
Anatoly Bubenkov | b1edeea | 2015-03-15 13:41:13 +0100 | [diff] [blame] | 21 | dirname = os.path.dirname(__file__) |
png | 99ccbe5 | 2013-01-04 11:29:21 -0500 | [diff] [blame] | 22 | |
Anatoly Bubenkov | b1edeea | 2015-03-15 13:41:13 +0100 | [diff] [blame] | 23 | long_description = ( |
| 24 | codecs.open(os.path.join(dirname, 'README.rst'), encoding='utf-8').read() + '\n' + |
| 25 | codecs.open(os.path.join(dirname, 'CHANGES.rst'), encoding='utf-8').read() |
| 26 | ) |
png | 99ccbe5 | 2013-01-04 11:29:21 -0500 | [diff] [blame] | 27 | |
Anatoly Bubenkov | b1edeea | 2015-03-15 13:41:13 +0100 | [diff] [blame] | 28 | setup( |
| 29 | name='timeout-decorator', |
Patrick N | 9fbc3ef | 2020-11-14 19:50:55 -0500 | [diff] [blame] | 30 | version='0.5.0', |
Anatoly Bubenkov | b1edeea | 2015-03-15 13:41:13 +0100 | [diff] [blame] | 31 | description='Timeout decorator', |
| 32 | long_description=long_description, |
| 33 | author='Patrick Ng', |
| 34 | author_email='pn.appdev@gmail.com', |
| 35 | url='https://github.com/pnpnpn/timeout-decorator', |
| 36 | packages=['timeout_decorator'], |
| 37 | install_requires=[], |
| 38 | classifiers=CLASSIFIERS) |