-
Notifications
You must be signed in to change notification settings - Fork 457
/
pyproject.toml
147 lines (135 loc) · 3.06 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
[tool.poetry]
name = "djoser"
version = "2.3.1"
description = "REST implementation of Django authentication system."
authors = [
"Sunscrapers <[email protected]>",
]
maintainers = [
"Tomasz Wojcik <[email protected]>",
]
license = "MIT"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: Django",
"Framework :: Django :: 3.1",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0", # 5.0b1 in Djoser test suite
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
repository = "https://github.com/sunscrapers/djoser"
documentation = "https://djoser.readthedocs.io/"
readme = "README.rst"
include = ["djoser/locale/**/*.mo"]
packages = [
{ include = "djoser" },
]
[tool.poetry.dependencies]
python = "^3.8"
djangorestframework-simplejwt = "^5.0"
social-auth-app-django = "^5.0.0"
djet = { version = "^0.3.0", optional = true }
webauthn = { version = "<1.0", optional = true }
django = ">=3.0.0"
[tool.poetry.extras]
# https://python-poetry.org/docs/pyproject/#extras
djet = ["djet"]
webauthn = ["webauthn"]
# poetry add <lib name> --group test
[tool.poetry.group.test.dependencies]
pytest = "^7.2.2"
coverage = "^7.2.2"
pytest-cov = "^4.0.0"
pytest-django = "^4.5.2"
tox = "^4.4.8"
babel = "^2.12.1"
pytest-mock = "^3.14.0"
deepdiff = "^8.0.1"
[tool.poetry.group.code-quality.dependencies]
black = "^23.1.0"
ruff = "^0.0.241"
docformatter = "^1.5.1"
pyupgrade = "^3.3.1"
pre-commit-hooks = "^4.4.0"
[tool.poetry.group.docs.dependencies]
sphinx = "^6.1.3"
toml = "^0.10.2"
sphinx-rtd-theme = "^1.2.0"
[tool.black]
line-length = 88
target-version = ["py38", "py39", "py310", "py311"]
include = '\.pyi?$'
exclude = '''
(
/(
\.cache
| \.eggs
| \.git
| \.hg
| \.mypy_cache
| \.pytest_cache
| \.tox
| \.venv
| __pycache__
| _build
| buck-out
| build
| dist
| docs
| migrations
)/
)
'''
[tool.ruff]
select = ["E", "F"]
ignore = []
fixable = ["A", "B", "C", "D", "E", "F"]
unfixable = []
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
"migrations"
]
line-length = 88
target-version = "py38"
[tool.docformatter]
recursive = true
pre-summary-newline = true
make-summary-multi-line = true
wrap-summaries = 88
wrap-descriptions = 88
in-place = true
[tool.pytest.ini_options]
minversion = "7.0"
DJANGO_SETTINGS_MODULE = "testproject.settings"
python_paths = "testproject"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"