|
1 | 1 | #!/usr/bin/env python |
2 | 2 |
|
3 | | -import os |
4 | | -import pypandoc |
5 | | - |
6 | 3 | # Notes for the not-an-everyday-python-dev for package distribution on pypi |
7 | 4 | # |
8 | 5 | # Build the package using `setuptools`: |
|
44 | 41 | use_setuptools() |
45 | 42 | from setuptools import setup |
46 | 43 |
|
47 | | -long_description = 'This library provides the python client for the Packet API.' |
48 | | -if os.path.isfile('README.md') and os.path.isfile('CHANGELOG.md'): |
49 | | - readme = pypandoc.convert_file('README.md', 'rst') |
50 | | - changelog = pypandoc.convert_file('CHANGELOG.md', 'rst') |
51 | | - long_description = readme + '\n' + changelog |
| 44 | +with open('README.md') as readme, open('CHANGELOG.md') as changelog: |
| 45 | + long_description = readme.read() + '\n' + changelog.read() |
52 | 46 |
|
53 | 47 | setup( |
54 | 48 | name='packet-python', |
55 | 49 | version='1.37.1', |
56 | 50 | description='Packet API client', |
57 | 51 | long_description=long_description, |
| 52 | + long_description_content_type='text/markdown', |
58 | 53 | url='https://github.com/packethost/packet-python', |
59 | 54 | author='Packet Developers', |
60 | 55 | license='LGPL v3', |
61 | 56 | keywords='packet api client', |
62 | 57 | packages=['packet'], |
63 | 58 | install_requires='requests', |
64 | | - setup_requires='pypandoc', |
65 | 59 | classifiers=[ |
66 | 60 | 'Development Status :: 5 - Production/Stable', |
67 | 61 | 'Intended Audience :: Developers', |
|
0 commit comments