|
1 | 1 | #!/usr/bin/env python |
2 | | -import os |
| 2 | + |
| 3 | +import pypandoc |
| 4 | + |
3 | 5 | try: |
4 | 6 | from setuptools import setup |
5 | 7 | except ImportError: |
6 | 8 | from ez_setup import use_setuptools |
7 | 9 | use_setuptools() |
8 | 10 | from setuptools import setup |
9 | 11 |
|
10 | | -long_description = """This library provides the python client for the Packet API.""" |
11 | | - |
12 | | -if os.path.isfile("README.md"): |
13 | | - with open('README.md') as file: |
14 | | - long_description = file.read() |
| 12 | +readme = pypandoc.convert_file('README.md', 'rst') |
| 13 | +changelog = pypandoc.convert_file('CHANGELOG.md', 'rst') |
15 | 14 |
|
16 | 15 | setup( |
17 | 16 | name='packet-python', |
18 | 17 | version='1.35', |
19 | 18 | description='Packet API client', |
20 | | - author='Aaron Welch ( http://www.packet.net )', |
21 | | - author_email='welch@packet.net', |
22 | | - url='https://github.com/packethost/packet-python.git', |
23 | | - packages=['packet'], |
24 | | - install_requires=['requests'], |
| 19 | + long_description=readme + '\n' + changelog, |
| 20 | + url='https://github.com/packethost/packet-python', |
| 21 | + author='Packet Developers', |
25 | 22 | license='LGPL v3', |
26 | 23 | keywords='packet api client', |
27 | | - long_description=long_description) |
| 24 | + packages=['packet'], |
| 25 | + install_requires='requests', |
| 26 | + setup_requires='pypandoc', |
| 27 | + classifiers=[ |
| 28 | + 'Development Status :: 5 - Production/Stable', |
| 29 | + 'Intended Audience :: Developers', |
| 30 | + 'Intended Audience :: Information Technology', |
| 31 | + 'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)', |
| 32 | + 'Programming Language :: Python :: 2', |
| 33 | + 'Programming Language :: Python :: 2.7', |
| 34 | + 'Programming Language :: Python :: 3', |
| 35 | + 'Programming Language :: Python :: 3.3', |
| 36 | + 'Programming Language :: Python :: 3.4', |
| 37 | + 'Programming Language :: Python :: 3.5', |
| 38 | + 'Programming Language :: Python :: 3.6', |
| 39 | + ]) |
0 commit comments