-
Notifications
You must be signed in to change notification settings - Fork 47
/
pyproject.toml
181 lines (161 loc) · 4.56 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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "django-nyt"
description = "A pluggable notification system written for the Django framework."
readme = "README.rst"
requires-python = ">=3.8"
license = "GPL-3.0"
keywords = ["django", "alerts", "notification"]
authors = [
{ name = "Benjamin Bach", email = "[email protected]" },
]
maintainers = [
{ name = "Oscar Cortez", email = "[email protected]" },
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries :: Application Frameworks",
]
dependencies = [
"django>=2.2,<5.2",
]
dynamic = ["version"]
[project.optional-dependencies]
docs = [
"sphinx==6.2.1",
"channels==4.0.0",
"sphinx_rtd_theme==1.2.0",
]
[project.urls]
Homepage = "https://github.com/django-wiki/django-nyt"
Documentation = "https://django-nyt.readthedocs.io/en/latest/"
Tracker = "https://github.com/django-wiki/django-nyt/issues"
Source = "https://github.com/django-wiki/django-nyt"
Funding = "https://donate.pypi.org"
"Release notes" = "https://github.com/django-wiki/django-nyt/releases"
[tool.hatch.publish.index]
disable = true
[tool.hatch.version]
path = "django_nyt/__init__.py"
[tool.hatch.build.targets.sdist]
include = [
"README.rst",
"/django_nyt",
]
[tool.hatch.envs.default]
dependencies = [
"coverage[toml]",
"codecov",
"flake8>=3.7,<5.1",
"pre-commit",
]
[tool.hatch.envs.default.scripts]
clean = [
"rm -fr build/",
"rm -fr dist/",
"rm -fr *.egg-info",
"rm -fr .tox/",
"rm -f .coverage",
"rm -fr htmlcov/",
"find . -name '*.pyc' -exec rm -f {{}} +",
"find . -name '*.pyo' -exec rm -f {{}} +",
"find . -name '*~' -exec rm -f {{}} +",
]
lint = [
"flake8 --max-line-length=213 --extend-ignore=E203 --max-complexity=10 --exclude=.svn,CVS,.bzr,.hg,.git,__pycache__,.tox,.eggs,*.egg,*/*migrations,testproject django_nyt/",
"pre-commit install -f --install-hooks",
"pre-commit run --all-files --show-diff-on-failure",
]
[tool.hatch.envs.test]
dependencies = [
"flake8>=3.7,<5.1",
"pre-commit",
"pytest>=7,<8",
"pytest-cov",
"pytest-django",
"pytest-pythonpath",
]
matrix-name-format = "dj{value}"
[tool.hatch.envs.test.overrides]
matrix.django.dependencies = [
{ value = "django~={matrix:django}" },
]
[[tool.hatch.envs.test.matrix]]
python = ["3.8", "3.9"]
django = ["2.2", "3.0", "3.1", "3.2"]
[[tool.hatch.envs.test.matrix]]
python = ["3.10"]
django = ["3.2"]
[[tool.hatch.envs.test.matrix]]
python = ["3.8", "3.9", "3.10"]
django = ["4.0"]
[[tool.hatch.envs.test.matrix]]
python = ["3.8", "3.9", "3.10", "3.11"]
django = ["4.1", "4.2"]
[[tool.hatch.envs.test.matrix]]
python = ["3.10", "3.11", "3.12"]
django = ["5.0", "5.1"]
[tool.hatch.envs.test.scripts]
all = [
"sh -c 'python test-project/manage.py makemigrations --check'",
"pytest --cov=django_nyt tests/ {args}",
]
[tool.hatch.envs.docs]
dependencies = [
"sphinx==6.2.1",
"channels==4.0.0",
"sphinx_rtd_theme==1.2.0",
]
[tool.hatch.envs.docs.scripts]
clean = "rm -rf docs/_build/*"
build-html = "sphinx-build -c docs -b html -d docs/_build/doctrees -D latex_paper_size={args} docs/ docs/_build/html"
build = [
"hatch run docs:clean",
"rm -f docs/modules.rst",
"rm -f docs/django_nyt*.rst",
"sphinx-apidoc -d 10 -H 'Python Reference' -o docs/ django_nyt django_nyt/tests django_nyt/migrations",
"hatch run docs:build-html {args}",
]
link-check = "sphinx-build -b linkcheck ./docs ./docs/_build"
[tool.isort]
combine_as_imports = true
default_section = "THIRDPARTY"
include_trailing_comma = true
line_length = 160
multi_line_output = 5
not_skip = "__init__.py"
skip = "docs/conf.py"
indent = 4
[tool.pytest.ini_options]
django_find_project = false
testpaths = [
"tests",
]
pythonpath = [
"test-project"
]
norecursedirs = [
"test-project",
".svn",
"_build",
"tmp*",
"dist",
"*.egg-info",
]
DJANGO_SETTINGS_MODULE = "tests.settings"