|
1 |
| -import setuptools |
| 1 | +from setuptools import setup, find_packages |
2 | 2 |
|
3 | 3 | import versioneer
|
4 | 4 |
|
5 | 5 |
|
6 |
| -try: |
7 |
| - with open('README.rst') as f: |
8 |
| - long_description = f.read() |
9 |
| -except IOError: |
10 |
| - long_description = "" |
11 |
| - |
12 |
| - |
13 |
| -setuptools.setup( |
14 |
| - name='stdlib-list', |
15 |
| - license='MIT', |
16 |
| - author='Jack Maney', |
17 |
| - |
18 |
| - url='https://github.com/jackmaney/python-stdlib-list', |
| 6 | +setup( |
| 7 | + name="stdlib-list", |
| 8 | + license="MIT", |
| 9 | + author="Jack Maney", |
| 10 | + |
| 11 | + url="https://github.com/jackmaney/python-stdlib-list", |
19 | 12 | version=versioneer.get_version(),
|
20 |
| - install_requires=['functools32;python_version<"3.2"'], |
| 13 | + install_requires=["functools32;python_version<'3.2'"], |
21 | 14 | extras_require={"develop": ["sphinx"]},
|
22 |
| - description='A list of Python Standard Libraries (2.6-7, 3.2-6).', |
23 |
| - long_description=long_description, |
| 15 | + description="A list of Python Standard Libraries (2.6-7, 3.2-6).", |
| 16 | + long_description=f'{read("README.md")}', |
| 17 | + long_description_content_type="text/markdown", |
24 | 18 | include_package_data=True,
|
25 |
| - packages=setuptools.find_packages(), |
| 19 | + packages=find_packages(), |
26 | 20 | cmdclass=versioneer.get_cmdclass(),
|
27 | 21 | )
|
0 commit comments