forked from marshmallow-code/flask-smorest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
77 lines (72 loc) · 2.11 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
#!/usr/bin/env python3
from setuptools import setup, find_packages
EXTRAS_REQUIRE = {
"tests": [
"pytest==7.2.0",
"pytest-cov==4.0.0",
"coverage==6.5.0",
"werkzeug==2.2.2",
"flask==2.2.2",
"marshmallow==3.19.0",
"webargs==8.2.0",
"apispec==6.0.2",
"PyYAML==6.0",
],
"lint": [
"flake8==6.0.0",
"flake8-bugbear==22.10.27",
"pre-commit==2.20.0",
],
}
EXTRAS_REQUIRE["dev"] = EXTRAS_REQUIRE["tests"] + EXTRAS_REQUIRE["lint"]
# Get the long description from the README file
with open("README.rst", encoding="utf-8") as f:
long_description = f.read()
setup(
name="flask-smorest",
version="0.40.0",
description="Flask/Marshmallow-based REST API framework",
long_description=long_description,
url="https://github.com/marshmallow-code/flask-smorest",
author="Jérôme Lafréchoux",
author_email="[email protected]",
license="MIT",
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Topic :: Internet :: WWW/HTTP",
"Environment :: Web Environment",
"Framework :: Flask",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3 :: Only",
],
keywords=[
"REST",
"openapi",
"swagger",
"flask",
"marshmallow",
"apispec",
"webargs",
],
packages=find_packages(exclude=["tests*"]),
include_package_data=True,
package_data={
"": ["spec/templates/*"],
},
python_requires=">=3.7",
install_requires=[
"werkzeug>=2.0,<3",
"flask>=2.0,<3",
"marshmallow>=3.18.0,<4",
"webargs>=8.0.0,<9",
"apispec[marshmallow]>=6.0.0,<7",
],
extras_require=EXTRAS_REQUIRE,
)