-
Notifications
You must be signed in to change notification settings - Fork 12
/
pyproject.toml
107 lines (96 loc) · 2.85 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
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "django-pydantic-field"
version = "0.3.10"
description = "Django JSONField with Pydantic models as a Schema"
readme = "README.md"
license = { file = "LICENSE" }
authors = [
{ name = "Savva Surenkov", email = "[email protected]" },
]
keywords = ["django", "pydantic", "json", "schema"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Framework :: Django",
"Framework :: Django :: 3",
"Framework :: Django :: 3.1",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4",
"Framework :: Django :: 4.0",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Framework :: Pydantic",
"Framework :: Pydantic :: 1",
"Framework :: Pydantic :: 2",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"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.12",
]
requires-python = ">=3.7"
dependencies = [
"pydantic>=1.10,<3",
"django>=3.1,<6",
"typing_extensions",
]
[project.optional-dependencies]
openapi = ["uritemplate", "inflection"]
coreapi = ["coreapi"]
jsonform = ["django_jsonform>=2.0,<3"]
dev = [
"build",
"ruff",
"mypy",
"pre-commit",
"pytest~=7.4",
"djangorestframework>=3.11,<4",
"django-stubs[compatible-mypy]~=4.2",
"djangorestframework-stubs[compatible-mypy]~=3.14",
"pytest-django>=4.5,<5",
]
test = [
"django_pydantic_field[openapi,coreapi,jsonform]",
"dj-database-url~=2.0",
"djangorestframework>=3,<4",
"pyyaml",
"syrupy>=3,<5",
]
ci = [
'psycopg[binary]>=3.1,<4; python_version>="3.9"',
'psycopg2-binary>=2.7,<3; python_version<"3.9"',
"mysqlclient>=2.1",
]
[project.urls]
Homepage = "https://github.com/surenkov/django-pydantic-field"
Documentation = "https://github.com/surenkov/django-pydantic-field"
Source = "https://github.com/surenkov/django-pydantic-field"
Changelog = "https://github.com/surenkov/django-pydantic-field/releases"
[tool.ruff]
line-length = 120
[tool.mypy]
plugins = [
"mypy_django_plugin.main",
"mypy_drf_plugin.main"
]
exclude = [".env", ".venv", "tests"]
[tool.django-stubs]
django_settings_module = "tests.settings.django_test_settings"
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "tests.settings.django_test_settings"
addopts = "--capture=no"
pythonpath = ["."]
testpaths = ["tests"]
python_files = ["test_*.py", "*_tests.py"]
norecursedirs = [".*", "venv"]
[tool.pyright]
include = ["pydantic"]