forked from spec-first/connexion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·91 lines (73 loc) · 2.61 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#!/usr/bin/env python3
import inspect
import os
from setuptools import find_packages, setup
__location__ = os.path.join(os.getcwd(), os.path.dirname(inspect.getfile(inspect.currentframe())))
def read_version(package):
with open(os.path.join(package, "__init__.py")) as fd:
for line in fd:
if line.startswith("__version__ = "):
return line.split()[-1].strip().strip('"')
version = read_version("especifico")
install_requires = [
"jsonschema>=4.0.1,<5",
"PyYAML>=5.1,<7",
"requests>=2.19.1,<3",
"inflection>=0.3.1,<0.6",
"werkzeug>=1.0,<3",
'importlib-metadata>=1 ; python_version<"3.8"',
"packaging>=20",
]
swagger_ui_require = "swagger-ui-bundle>=0.0.2,<0.1"
flask_require = [
"flask>=1.0.4,<3",
"itsdangerous>=0.24",
]
aiohttp_require = [
"aiohttp>=2.3.10,<4",
"aiohttp-jinja2>=0.14.0,<2",
"MarkupSafe>=0.23",
]
def tests_require():
return open("requirements-test.txt", encoding="utf-8").read().split("\n")
docs_require = ["sphinx-autoapi==1.8.1"]
def readme():
return open("README.md", encoding="utf-8").read()
setup(
name="especifico",
packages=find_packages(),
version=version,
description="Específico - API first applications with OpenAPI/Swagger and Flask",
long_description=readme(),
long_description_content_type="text/markdown",
author="Zalando SE & Athenian",
url="https://github.com/athenianco/especifico",
keywords="openapi oai swagger rest api oauth flask microservice framework",
license="Apache License Version 2.0",
python_requires=">=3.8",
install_requires=install_requires,
tests_require=tests_require(),
extras_require={
"cli": ["clickclick>=1.2,<21"],
"tests": tests_require(),
"flask": flask_require,
"swagger-ui": swagger_ui_require,
"aiohttp": aiohttp_require,
"docs": docs_require,
},
test_suite="tests",
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
"Topic :: Software Development :: Libraries :: Application Frameworks",
],
include_package_data=True, # needed to include swagger-ui (see MANIFEST.in)
entry_points={"console_scripts": ["especifico = especifico.cli:main"]},
)