Skip to content

Commit f745ce8

Browse files
committed
Use markdown as README format
1 parent 76b4061 commit f745ce8

1 file changed

Lines changed: 13 additions & 10 deletions

File tree

setup.py

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
#!/usr/bin/env python
22

3+
import os
4+
35
import setuptools
46

5-
with open('VERSION') as f:
6-
version = f.read().strip()
77

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+
1011

1112
setuptools.setup(
1213
name='alerta',
13-
version=version,
14+
version=read('VERSION'),
1415
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',
1819
author='Nick Satterly',
19-
author_email='nick.satterly@theguardian.com',
20+
author_email='nick.satterly@gmail.com',
2021
packages=setuptools.find_packages(exclude=['tests']),
2122
install_requires=[
2223
'Click',
@@ -35,13 +36,15 @@
3536
keywords='alerta client unified command line tool sdk',
3637
classifiers=[
3738
'Development Status :: 5 - Production/Stable',
39+
'Environment :: Console',
3840
'Intended Audience :: Information Technology',
3941
'Intended Audience :: System Administrators',
4042
'Intended Audience :: Telecommunications Industry',
41-
'License :: OSI Approved :: MIT License',
43+
'License :: OSI Approved :: Apache Software License',
4244
'Programming Language :: Python :: 3.6',
4345
'Programming Language :: Python :: 3.5',
4446
'Topic :: System :: Monitoring',
47+
'Topic :: Software Development :: Libraries :: Python Modules'
4548
],
4649
python_requires='>=3.5'
4750
)

0 commit comments

Comments
 (0)