-
Notifications
You must be signed in to change notification settings - Fork 33
/
pyproject.toml
154 lines (140 loc) · 3.75 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
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "django-structlog"
description = "Structured Logging for Django"
authors = [
{ name = "Jules Robichaud-Gagnon", email = "[email protected]" },
]
readme = "README.rst"
dynamic = ["version"]
requires-python = ">=3.9"
license = { text = "MIT" }
dependencies = [
"django>=4.2",
"structlog>=21.4.0",
"asgiref>=3.6.0",
"django-ipware>=6.0.2",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: Django",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Framework :: Django :: 5.1",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: System :: Logging",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
[project.urls]
homepage = "https://github.com/jrobichaud/django-structlog"
repository = "https://github.com/jrobichaud/django-structlog"
documentation = "https://django-structlog.readthedocs.io"
tracker = "https://github.com/jrobichaud/django-structlog/issues"
changelog = "https://django-structlog.readthedocs.io/en/latest/changelog.html"
[project.optional-dependencies]
celery = [
"celery>=5.1"
]
commands = [
"django-extensions>=1.4.9"
]
[tool.setuptools.dynamic]
version = { attr = "django_structlog.__version__" }
[tool.setuptools.packages.find]
include = [
"django_structlog",
"django_structlog.*",
]
[tool.black]
line-length = 88
target-version = [
'py39',
'py310',
'py311',
'py312',
'py313',
]
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
[tool.ruff]
line-length = 88
target-version = "py313"
lint.ignore = [
'E501',
]
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "config.settings.test_demo_app"
[tool.tox]
legacy_tox_ini = """
[tox]
# Test against latest supported version of each of python for each Django version.
#
# Also, make sure that all python versions used here are included in ./github/worksflows/main.yml
envlist =
py{39,310,311}-django42-celery5{2,3}-redis{3,4}-kombu5,
py31{0,1}-django5{0,1}-celery5{3,4}-redis4-kombu5,
py312-django{42,50,51}-celery5{3,4}-redis4-kombu5,
py313-django{51}-celery5{3,4}-redis4-kombu5,
[gh-actions]
python =
3.9: py39
3.10: py310
3.11: py311
3.12: py312
3.13: py313
[testenv]
setenv =
PYTHONPATH={toxinidir}
CELERY_BROKER_URL=redis://0.0.0.0:6379
CELERY_RESULT_BACKEND=redis://0.0.0.0:6379
DJANGO_SETTINGS_MODULE=config.settings.test
pip_pre = True
deps =
redis3: redis>=3, <4
redis4: redis>=4, <5
kombu5: kombu<6
celery51: Celery >=5.1, <5.2
celery52: Celery >=5.2, <5.3
celery53: Celery >=5.3, <5.4
celery54: Celery >=5.4, <5.5
django42: Django >=4.2, <5.0
django50: Django >=5.0, <5.1
django51: Django >=5.1, <5.2
-r{toxinidir}/requirements/ci.txt
commands = pytest --cov=./test_app --cov=./django_structlog --cov-append test_app
"""
[tool.coverage.run]
branch = true
[tool.coverage.report]
precision = 2
skip_covered = true
show_missing = true
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError"
]
include = [
"./django_structlog/*",
"./django_structlog_demo_project/*",
"./test_app/*",
]