-
Notifications
You must be signed in to change notification settings - Fork 8
/
pyproject.toml
210 lines (190 loc) · 5.45 KB
/
pyproject.toml
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
[tool.poetry]
name = "flask-unchained"
version = "0.10.0a2"
description = "The quickest and easiest way to build web apps and APIs with Flask"
repository = "https://github.com/briancappello/flask-unchained"
authors = ["Brian Cappello <[email protected]>"]
readme = "README.md"
license = "MIT"
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Web Environment",
"Framework :: Flask",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
packages = [
{ include = "flask_unchained" },
{ include = "flask_mail.py" },
{ include = "unchained_config.py" },
]
include = [
{ path = "flask_unchained" },
{ path = "CHANGELOG.md", format = "sdist" },
{ path = "LICENSE", format = "sdist" },
]
[tool.poetry.scripts]
fun = "flask_unchained.cli:main"
flask = "flask_unchained.cli:main"
[tool.poetry.plugins.pytest11]
flask_unchained = "flask_unchained.pytest"
[tool.poetry.dependencies]
python = "^3.10"
blinker = "^1.4.0"
click = "^8.0"
flask = ">=2.2"
flask-babel = "^4.0.0"
flask-wtf = "^1.2.1"
py-meta-utils = "^0.8.0"
pyterminalsize = "^0.1.0"
networkx = ">=2.5"
email-validator = "^2.1.0.post1"
speaklater = "^1.3"
setuptools = "^69.0.3"
# admin extra
flask-admin = { version = "^1.6.1", optional = true }
# api extra
apispec = { version = "^6.4.0", optional = true }
apispec-webframeworks = { version = "^1.0.0", optional = true }
flask-marshmallow = { version = "^1.2.0", optional = true }
marshmallow = { version = "^3.20.2", optional = true }
marshmallow-sqlalchemy = { version = "^1.0.0", optional = true }
# quart extra
quart = { version = "^0.19.4", optional = true }
# celery extra
celery = { version = "^5.3.6", optional = true }
dill = { version = "^0.3.8", optional = true }
# graphene extra
graphql-core = { version = ">=2.3.1,<3", optional = true }
graphql-relay = { version = ">=2.0.1,<3", optional = true }
graphql-server-core = { version = ">=1.2,<2", optional = true }
flask-graphql = { version = "^2.0.1", optional = true }
graphene = { version = ">=2.1.9,<3", optional = true }
graphene-sqlalchemy = { version = ">=2.2,<3", optional = true }
# mail extra
beautifulsoup4 = { version = "^4.12.3", optional = true }
lxml = { version = "^5.1.0", optional = true }
# oauth extra
flask-oauthlib = { version = "^0.9.6", optional = true }
# security extra
bcrypt = { version = "~4.0", optional = true }
flask-login = { version = "^0.6.3", optional = true }
flask-principal = { version = "^0.4.0", optional = true }
itsdangerous = { version = "^2.1.2", optional = true }
passlib = { version = "^1.7.4", optional = true }
# session extra
flask-session = { version = "^0.6.0", optional = true }
# sqlalchemy extra
flask-migrate = { version = "^4.0.5", optional = true }
flask-sqlalchemy = { version = ">=3.0,<3.1", optional = true }
flask-sqlalchemy-unchained = { version = "^0.8.0", optional = true }
sqlalchemy = { version = ">=1.4,<2", optional = true }
wtforms-sqlalchemy = { version = "^0.4.1", optional = true }
[tool.poetry.group.dev.dependencies]
black = "^24.1.1"
ipython = "^8.21.0"
factory-boy = "^3.3.0"
pytest = "^7.0.0"
pytest-flask = "^1.3.0"
tox = "^4.12.1"
psycopg2 = "^2.9.9"
isort = "^5.13.2"
[tool.poetry.group.docs.dependencies]
ipython = "^8.21.0"
sphinx = "^7.2.6"
sphinx-click = "^5.1.0"
sphinx-material = "^0.0.36"
m2r2 = "^0.3.3.post2"
[tool.poetry.extras]
admin = [
"flask-admin",
]
api = [
"apispec",
"apispec-webframeworks",
"flask-marshmallow",
"marshmallow",
"marshmallow-sqlalchemy",
]
quart = [
"quart",
]
celery = [
"dill",
"celery",
]
graphene = [
"graphql-core",
"graphql-relay",
"graphql-server-core",
"flask-graphql",
"graphene",
"graphene-sqlalchemy",
]
mail = [
"beautifulsoup4",
"lxml",
]
oauth = [
"flask-oauthlib",
]
security = [
"bcrypt",
"flask-login",
"flask-principal",
"itsdangerous",
"passlib",
]
session = [
"dill",
"flask-session",
]
sqlalchemy = [
"flask-migrate",
"flask-sqlalchemy",
"flask-sqlalchemy-unchained",
"sqlalchemy",
"wtforms-sqlalchemy",
]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 90
target-version = ['py310']
preview = true
extend-exclude = "flask_unchained/_code_templates"
[tool.isort]
profile = "black"
include_trailing_comma = true
lines_between_types = 1
lines_after_imports = 2
multi_line_output = 3
extend_skip = [
"flask_unchained/_code_templates",
]
sections = "FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER"
known_first_party = [
"flask_sqlalchemy_unchained",
"py_meta_utils",
"sqlalchemy_unchained",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-s"
markers = [
"bundles: mark test(s) as using a specific list of bundles",
"role: mark to customize RoleFactory arguments for a single Role",
"roles: mark to customize RoleFactory arguments for multiple Roles",
"user: mark to customize UserFactory arguments for a single User",
"users: mark to customize UserFactory arguments for multiple Users",
]
filterwarnings = [
"ignore:the imp module is deprecated in favour of importlib:DeprecationWarning",
"ignore:The create_engine.convert_unicode parameter:sqlalchemy.exc.SADeprecationWarning",
"ignore:Use .persist_selectable:sqlalchemy.exc.SADeprecationWarning",
]