-
Notifications
You must be signed in to change notification settings - Fork 428
Expand file tree
/
Copy pathpyproject.toml
More file actions
178 lines (161 loc) · 4.33 KB
/
pyproject.toml
File metadata and controls
178 lines (161 loc) · 4.33 KB
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
[project]
dynamic = ["version", "readme"]
name = "kinto"
description = "Kinto Web Service - Store, Sync, Share, and Self-Host."
license = {file = "LICENSE"}
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
"License :: OSI Approved :: Apache Software License",
]
keywords = ["web", "sync", "json", "storage", "services"]
authors = [
{name = "Mozilla Services", email = "developers@kinto-storage.org"},
]
dependencies = [
"bcrypt",
"colander",
"dockerflow",
"jsonschema",
"jsonpatch",
"logging-color-formatter",
"python-dateutil",
"pyramid",
"pyramid_multiauth",
"transaction",
"pyramid_tm",
"requests",
"waitress",
"python-rapidjson",
# pyramid still requires setuptools<82.0
"setuptools<82.0",
]
requires-python = ">=3.10"
[project.urls]
Repository = "https://github.com/Kinto/kinto"
[project.scripts]
kinto = "kinto.__main__:main"
[project.entry-points."paste.app_factory"]
main = "kinto:main"
[tool.setuptools.packages.find]
include = ["kinto*"]
[tool.setuptools.package-data]
"*" = ["*.tpl", "*.sql", "*.json", "plugins/admin/build/**", "VERSION"]
[tool.setuptools.dynamic]
readme = {file = ["README.rst", "CONTRIBUTORS.rst"]}
[tool.setuptools_scm]
# can be empty if no extra settings are needed, presence enables setuptools_scm
[build-system]
requires = ["hatchling", "uv-dynamic-versioning"]
build-backend = "hatchling.build"
[dependency-groups]
dev = [
"pytest-xdist>=3.8.0",
"ty>=0.0.19",
]
[project.optional-dependencies]
memcached = [
"python-memcached",
]
redis = [
"redis",
]
postgresql = [
"SQLAlchemy < 3",
"psycopg2-binary",
"zope.sqlalchemy",
]
monitoring = [
"newrelic",
"sentry-sdk[sqlalchemy]",
"statsd",
"werkzeug",
"prometheus-client",
]
test = [
"bravado",
"pytest",
"pytest-cache",
"pytest-cov",
"playwright",
"webtest",
]
dev = [
"build",
"ruff",
"twine",
"granian",
]
container = [
"kinto-attachment",
"kinto-emailer",
"httpie",
]
[tool.hatch.version]
source = "uv-dynamic-versioning"
[tool.uv-dynamic-versioning]
fallback-version = "0.0.0"
pattern = "default-unprefixed"
[tool.pytest.ini_options]
addopts = "-n auto --dist=loadgroup"
testpaths = ["tests"]
markers = [
"xdist_group: mark tests to run in the same xdist worker group",
]
filterwarnings = [
# Hide warnings about our own code.
"ignore:No value specified for `settings_prefix`:UserWarning",
"ignore:HTTPS is not enabled:UserWarning",
"ignore:Reuse existing PostgreSQL connection:UserWarning",
# pyramid_multiauth
"ignore:The new security policy has deprecated effective_principals:DeprecationWarning",
"ignore:Authentication and authorization policies have been deprecated:DeprecationWarning:pyramid_multiauth",
# Pyramid uses pkg_resources internally
# See https://github.com/Pylons/pyramid/issues/3731
"ignore:pkg_resources is deprecated as an API:UserWarning:pyramid",
# pkg_resources namespace packages
"ignore:Deprecated call to `pkg_resources.declare_namespace:DeprecationWarning:pkg_resources",
# bravado
"ignore:jsonschema.RefResolver is deprecated:DeprecationWarning:bravado_core",
"ignore:jsonschema.RefResolver.in_scope is deprecated:DeprecationWarning:bravado_core",
# swagger
"ignore:jsonschema.RefResolver is deprecated:DeprecationWarning:swagger_spec_validator",
# webob
"ignore:datetime.datetime.utcnow.. is deprecated:DeprecationWarning:webob",
"ignore:'cgi' is deprecated and slated for removal:DeprecationWarning:webob",
]
[tool.coverage.run]
branch = true
omit = [
"kinto/core/cornice/*",
"kinto/core/cornice_swagger/*",
]
[tool.ruff]
line-length = 99
extend-exclude = [
"__pycache__",
".venv/",
"kinto/plugins/admin/node_modules/",
]
[tool.ruff.lint]
select = [
# pycodestyle
"E", "W",
# flake8
"F",
# isort
"I",
]
ignore = [
# `format` will wrap lines.
"E501",
]
[tool.ruff.lint.isort]
lines-after-imports = 2