forked from 0b01001001/spectree
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
62 lines (56 loc) · 1.87 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
from io import open
from os import path
from setuptools import find_packages, setup
here = path.abspath(path.dirname(__file__))
with open(path.join(here, "README.md"), encoding="utf-8") as f:
readme = f.read()
with open(path.join(here, "requirements.txt"), encoding="utf-8") as f:
requires = [req.strip() for req in f if req]
setup(
name="spectree",
version="1.0.0a1",
license="Apache-2.0",
author="Keming Yang",
author_email="[email protected]",
description=(
"generate OpenAPI document and validate request&response "
"with Python annotations."
),
long_description=readme,
long_description_content_type="text/markdown",
url="https://github.com/0b01001001/spectree",
packages=find_packages(exclude=["examples*", "tests*"]),
package_data={},
classifiers=[
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
],
python_requires=">=3.6",
install_requires=requires,
extras_require={
"email": ["pydantic[email]>=1.2"],
"flask": ["flask"],
"falcon": ["falcon>=3.0.0"],
"starlette": ["starlette[full]"],
"dev": [
"pytest~=7.1",
"flake8>=4,<6",
"black~=22.3",
"isort~=5.10",
"autoflake~=1.4",
"mypy>=0.971",
],
},
zip_safe=False,
entry_points={
"console_scripts": [],
},
)