Skip to content
This repository was archived by the owner on Mar 4, 2026. It is now read-only.

Commit 408b923

Browse files
committed
house cleaning of setup.py
1 parent fadb8ef commit 408b923

1 file changed

Lines changed: 24 additions & 12 deletions

File tree

setup.py

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,39 @@
11
#!/usr/bin/env python
2-
import os
2+
3+
import pypandoc
4+
35
try:
46
from setuptools import setup
57
except ImportError:
68
from ez_setup import use_setuptools
79
use_setuptools()
810
from setuptools import setup
911

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')
1514

1615
setup(
1716
name='packet-python',
1817
version='1.35',
1918
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',
2522
license='LGPL v3',
2623
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

Comments
 (0)