|
6 | 6 |
|
7 | 7 | from setuptools import setup, find_packages
|
8 | 8 |
|
9 |
| -version_file = os.path.join(os.path.dirname(__file__), 'flask_openapi3', '__version__.py') |
10 |
| -with open(version_file, 'r', encoding='utf-8') as f: |
11 |
| - version = re.findall(r"__version__ = '(.*?)'", f.read())[0] |
| 9 | +version_file = os.path.join(os.path.dirname(__file__), "flask_openapi3", "__version__.py") |
| 10 | +with open(version_file, "r", encoding="utf-8") as f: |
| 11 | + version = re.findall(r"__version__ = \"(.*?)\"", f.read())[0] |
12 | 12 |
|
13 |
| -long_description = open('README.md', 'r', encoding='utf-8').read() |
| 13 | +long_description = open("README.md", "r", encoding="utf-8").read() |
14 | 14 |
|
15 | 15 | install_requires = []
|
16 |
| -with open(os.path.join(os.path.dirname(__file__), 'requirements.txt'), 'r', encoding='utf-8') as f: |
| 16 | +with open(os.path.join(os.path.dirname(__file__), "requirements.txt"), "r", encoding="utf-8") as f: |
17 | 17 | for line in f.readlines():
|
18 | 18 | line = line.strip()
|
19 | 19 | if line:
|
|
22 | 22 | setup(
|
23 | 23 | name="flask-openapi3",
|
24 | 24 | version=version,
|
25 |
| - url='https://github.com/luolingchun/flask-openapi3', |
26 |
| - description='Generate REST API and OpenAPI documentation for your Flask project.', |
| 25 | + url="https://github.com/luolingchun/flask-openapi3", |
| 26 | + description="Generate REST API and OpenAPI documentation for your Flask project.", |
27 | 27 | long_description=long_description,
|
28 |
| - long_description_content_type='text/markdown', |
29 |
| - license='MIT', |
30 |
| - license_files='LICENSE.rst', |
31 |
| - author='llc', |
32 |
| - author_email='luolingchun@outlook.com', |
| 28 | + long_description_content_type="text/markdown", |
| 29 | + license="MIT", |
| 30 | + license_files="LICENSE.rst", |
| 31 | + author="llc", |
| 32 | + author_email="luolingchun@outlook.com", |
33 | 33 | packages=find_packages(),
|
34 | 34 | include_package_data=True,
|
35 | 35 | python_requires=">=3.7",
|
36 | 36 | zip_safe=False,
|
37 |
| - platforms='any', |
| 37 | + platforms="any", |
38 | 38 | install_requires=install_requires,
|
39 |
| - extras_require={'yaml': ['pyyaml']}, |
| 39 | + extras_require={"yaml": ["pyyaml"]}, |
40 | 40 | classifiers=[
|
41 |
| - # 'Development Status :: 1 - Planning', |
42 |
| - # 'Development Status :: 2 - Pre-Alpha', |
43 |
| - # 'Development Status :: 3 - Alpha ', |
44 |
| - # 'Development Status :: 4 - Beta', |
45 |
| - 'Development Status :: 5 - Production/Stable', |
46 |
| - # 'Development Status :: 6 - Mature', |
47 |
| - # 'Development Status :: 7 - Inactive', |
48 |
| - 'Environment :: Web Environment', |
49 |
| - 'Framework :: Flask', |
50 |
| - 'Intended Audience :: Developers', |
51 |
| - 'License :: OSI Approved :: MIT License', |
52 |
| - 'Operating System :: OS Independent', |
53 |
| - 'Programming Language :: Python', |
54 |
| - 'Programming Language :: Python :: 3', |
55 |
| - 'Programming Language :: Python :: 3 :: Only', |
56 |
| - 'Programming Language :: Python :: 3.7', |
57 |
| - 'Programming Language :: Python :: 3.8', |
58 |
| - 'Programming Language :: Python :: 3.9', |
59 |
| - 'Programming Language :: Python :: 3.10' |
| 41 | + # "Development Status :: 1 - Planning", |
| 42 | + # "Development Status :: 2 - Pre-Alpha", |
| 43 | + # "Development Status :: 3 - Alpha ", |
| 44 | + # "Development Status :: 4 - Beta", |
| 45 | + "Development Status :: 5 - Production/Stable", |
| 46 | + # "Development Status :: 6 - Mature", |
| 47 | + # "Development Status :: 7 - Inactive", |
| 48 | + "Environment :: Web Environment", |
| 49 | + "Framework :: Flask", |
| 50 | + "Intended Audience :: Developers", |
| 51 | + "License :: OSI Approved :: MIT License", |
| 52 | + "Operating System :: OS Independent", |
| 53 | + "Programming Language :: Python", |
| 54 | + "Programming Language :: Python :: 3", |
| 55 | + "Programming Language :: Python :: 3 :: Only", |
| 56 | + "Programming Language :: Python :: 3.7", |
| 57 | + "Programming Language :: Python :: 3.8", |
| 58 | + "Programming Language :: Python :: 3.9", |
| 59 | + "Programming Language :: Python :: 3.10" |
60 | 60 | ]
|
61 | 61 | )
|
0 commit comments