forked from flavors/django-graphql-jwt
-
Notifications
You must be signed in to change notification settings - Fork 16
/
pyproject.toml
118 lines (107 loc) · 2.91 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
[tool.poetry]
name = "strawberry-django-jwt"
version = "0.2.3"
description = "Strawberry-graphql port of the graphene-django-jwt package"
license = "MIT"
authors = ["Vojtěch Dohnal <[email protected]>"]
maintainers = []
readme = "README.md"
classifiers = [
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Framework :: Django',
'Framework :: Django :: 3.2',
'Framework :: Django :: 4.0',
]
packages = [
{ include = "strawberry_django_jwt" }
]
[tool.poetry.dependencies]
python = "^3.7"
Django = [
{ version = ">=3.2,<4", markers = "python_version < '3.8'", optional = true },
{ version = ">=3.2,<5", markers = "python_version >= '3.8'", optional = true }
]
PyJWT = ">=1.7.1,<3.0"
strawberry-graphql = ">=0.121.1,<1.0"
strawberry-graphql-django = { version = ">=0.3", allow-prereleases = true }
django-admin-display = "^1.3.0"
packaging = ">=20.0,<30.0"
importlib-metadata = { version = ">=1.7,<5.0", python = "<=3.7" }
# For use in local tests and development, in future poetry release replace with dev-dependencies group.
uvicorn = { extras = ["standard"], version = "^0.18.2", optional = true }
[tool.poetry.group.dev.dependencies]
cryptography = ">=38.0"
coverage = { extras = ["toml"], version = "^6.4.1" }
pytest = "^7.1.3"
pytest-cov = ">=4.0"
pytest-django = "^4.0.0"
types-cryptography = "^3.3.15"
django-stubs = { extras = ["compatible-mypy"], version = "<1.12.0" }
django-mock-queries = "^2.1.7"
types-mock = "^4.0.0"
types-jwt = "^0.1.0"
types-pkg-resources = "^0.1.0"
djangorestframework-stubs = "^1.4.0"
djangorestframework = "^3.12.4"
nox-poetry = "^1.0.1"
nox = "^2022.1.7"
mock = { version = "^4.0", python = "<3.8" }
[tool.poetry.extras]
dev = ["uvicorn"]
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra -q"
testpaths = [
"tests",
]
DJANGO_SETTINGS_MODULE = "tests.example_app.settings"
python_files = "tests.py test_*.py *_tests.py"
filterwarnings = []
[tool.black]
line-length = 160
target-version = ['py38', 'py39', 'py310']
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| __pycached__
| _build
| buck-out
| build
| dist
)/
'''
[tool.isort]
profile = "black"
multi_line_output = 3
force_sort_within_sections = true
[tool.django-stubs]
django_settings_module = "strawberry_django_jwt.settings"
[tool.coverage.run]
source = ["strawberry_django_jwt"]
branch = true
omit = [".venv/**", "tests/migrations/**", "manage.py"]
[tool.coverage.report]
precision = 2
exclude_lines = [
"pragma: nocover",
"pragma:nocover",
"if TYPE_CHECKING:",
"@overload",
"@abstractmethod",
"@abc.abstractmethod",
"assert_never",
]
[tool.poetry.urls]
"Homepage" = "https://github.com/KundaPanda/strawberry-django-jwt/"
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"