|
1 | 1 | #!/usr/bin/env python |
2 | 2 |
|
| 3 | +import os |
| 4 | + |
3 | 5 | import setuptools |
4 | 6 |
|
5 | | -with open('VERSION') as f: |
6 | | - version = f.read().strip() |
7 | 7 |
|
8 | | -with open('README.md') as f: |
9 | | - readme = f.read() |
| 8 | +def read(filename): |
| 9 | + return open(os.path.join(os.path.dirname(__file__), filename)).read() |
| 10 | + |
10 | 11 |
|
11 | 12 | setuptools.setup( |
12 | 13 | name='alerta', |
13 | | - version=version, |
| 14 | + version=read('VERSION'), |
14 | 15 | description='Alerta unified command-line tool and SDK', |
15 | | - long_description=readme, |
16 | | - url='http://github.com/alerta/python-alerta', |
17 | | - license='MIT', |
| 16 | + long_description=read('README.md'), |
| 17 | + long_description_content_type='text/markdown', |
| 18 | + license='Apache License 2.0', |
18 | 19 | author='Nick Satterly', |
19 | | - author_email='nick.satterly@theguardian.com', |
| 20 | + author_email='nick.satterly@gmail.com', |
20 | 21 | packages=setuptools.find_packages(exclude=['tests']), |
21 | 22 | install_requires=[ |
22 | 23 | 'Click', |
|
35 | 36 | keywords='alerta client unified command line tool sdk', |
36 | 37 | classifiers=[ |
37 | 38 | 'Development Status :: 5 - Production/Stable', |
| 39 | + 'Environment :: Console', |
38 | 40 | 'Intended Audience :: Information Technology', |
39 | 41 | 'Intended Audience :: System Administrators', |
40 | 42 | 'Intended Audience :: Telecommunications Industry', |
41 | | - 'License :: OSI Approved :: MIT License', |
| 43 | + 'License :: OSI Approved :: Apache Software License', |
42 | 44 | 'Programming Language :: Python :: 3.6', |
43 | 45 | 'Programming Language :: Python :: 3.5', |
44 | 46 | 'Topic :: System :: Monitoring', |
| 47 | + 'Topic :: Software Development :: Libraries :: Python Modules' |
45 | 48 | ], |
46 | 49 | python_requires='>=3.5' |
47 | 50 | ) |
0 commit comments