|
13 | 13 | except ImportError: |
14 | 14 | from distutils.core import setup |
15 | 15 |
|
16 | | -with open('README.md', encoding='utf-8') as readme_md,\ |
17 | | - open('docs/history.md', encoding='utf-8') as history_md,\ |
18 | | - open('requirements.txt', encoding='utf-8') as requirements_txt: |
| 16 | +with open("README.md", encoding="utf-8") as readme_md, open( |
| 17 | + "docs/history.md", encoding="utf-8" |
| 18 | +) as history_md, open("requirements.txt", encoding="utf-8") as requirements_txt: |
19 | 19 | README = readme_md.read() |
20 | 20 | HISTORY = history_md.read() |
21 | 21 |
|
22 | 22 | REQUIREMENTS = [] |
23 | 23 | REQUIREMENTS_EXTRA = {} |
24 | 24 | for req in requirements_txt.readlines(): |
25 | | - req = req[:req.find('#')].rstrip() # remove comments |
| 25 | + req = req[: req.find("#")].rstrip() # remove comments |
26 | 26 | if req.startswith("requests"): |
27 | 27 | REQUIREMENTS_EXTRA["requests"] = req |
28 | 28 | elif req.startswith("aiohttp"): |
|
31 | 31 | REQUIREMENTS.append(req) |
32 | 32 |
|
33 | 33 | setup( |
34 | | - name='xkcd-wrapper', |
| 34 | + name="xkcd-wrapper", |
35 | 35 | version=xkcd_wrapper.__version__, |
36 | | - description='A wrapper for the xkcd API', |
37 | | - long_description=README + '\n\n' + HISTORY, |
38 | | - long_description_content_type='text/markdown', |
| 36 | + description="A wrapper for the xkcd API", |
| 37 | + long_description=README + "\n\n" + HISTORY, |
| 38 | + long_description_content_type="text/markdown", |
39 | 39 | license=xkcd_wrapper.__license__, |
40 | 40 | author=xkcd_wrapper.__author__, |
41 | | - url='https://github.com/Kronopt/xkcd-wrapper', |
42 | | - project_urls={'Documentation': 'https://xkcd-wrapper.readthedocs.io/en/latest/'}, |
43 | | - packages=['xkcd_wrapper'], |
44 | | - package_dir={'xkcd_wrapper': 'xkcd_wrapper'}, |
| 41 | + url="https://github.com/Kronopt/xkcd-wrapper", |
| 42 | + project_urls={"Documentation": "https://xkcd-wrapper.readthedocs.io/en/latest/"}, |
| 43 | + packages=["xkcd_wrapper"], |
| 44 | + package_dir={"xkcd_wrapper": "xkcd_wrapper"}, |
45 | 45 | include_package_data=True, |
46 | 46 | install_requires=REQUIREMENTS, |
47 | 47 | extras_require={ |
48 | | - "sync": [REQUIREMENTS_EXTRA["requests"]], |
| 48 | + "sync": [REQUIREMENTS_EXTRA["requests"]], |
49 | 49 | "async": [REQUIREMENTS_EXTRA["aiohttp"]], |
50 | 50 | }, |
51 | 51 | zip_safe=False, |
52 | | - keywords='xkcd wrapper xkcd-wrapper', |
| 52 | + keywords="xkcd wrapper xkcd-wrapper", |
53 | 53 | classifiers=[ |
54 | | - 'Development Status :: 5 - Production/Stable', |
55 | | - 'Intended Audience :: Developers', |
56 | | - 'License :: OSI Approved :: GNU General Public License v3 (GPLv3)', |
57 | | - 'Natural Language :: English', |
58 | | - 'Programming Language :: Python :: 3', |
59 | | - 'Programming Language :: Python :: 3.6', |
60 | | - 'Programming Language :: Python :: 3.7', |
61 | | - 'Programming Language :: Python :: 3.8', |
62 | | - 'Programming Language :: Python :: 3.9', |
| 54 | + "Development Status :: 5 - Production/Stable", |
| 55 | + "Intended Audience :: Developers", |
| 56 | + "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", |
| 57 | + "Natural Language :: English", |
| 58 | + "Programming Language :: Python :: 3", |
| 59 | + "Programming Language :: Python :: 3.6", |
| 60 | + "Programming Language :: Python :: 3.7", |
| 61 | + "Programming Language :: Python :: 3.8", |
| 62 | + "Programming Language :: Python :: 3.9", |
| 63 | + "Programming Language :: Python :: 3.10", |
63 | 64 | ], |
64 | 65 | ) |
0 commit comments