-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
246 lines (219 loc) · 5.68 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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "django-calingen"
authors = [{name = "Mischback"}]
readme = "README.md"
license = {file = "LICENSE"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: Django :: 3.1",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
"Framework :: Django :: 4.1",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: MIT License",
"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",
"Topic :: Office/Business :: Scheduling",
"Topic :: Printing",
"Topic :: Text Processing :: Markup :: HTML",
"Topic :: Text Processing :: Markup :: LaTeX"
]
requires-python = ">=3.7"
dependencies = [
"Django >=3.1",
"python-dateutil >=2.8"
]
dynamic = ["version", "description"]
[project.urls]
Source = "https://github.com/Mischback/django-calingen"
[tool.flit.module]
name = "calingen"
[tool.flit.sdist]
exclude = [
".github/",
".vscode/",
"docs/",
"requirements/",
"tests/",
".editorconfig",
".flake8",
".gitignore",
".pre-commit-config.yaml",
"Makefile"
]
# ### COVERAGE ###
[tool.coverage.run]
branch = true
source = [
"calingen",
"tests"
]
omit = [
"*/__init__.py",
"*/contrib/layouts/simple_event_list/apps.py",
"*/migrations/*",
"*/tests/util/*",
"*/tests/runtests.py"
]
[tool.coverage.report]
precision = 1
show_missing = true
fail_under = 95
# ### DJLINT ###
[tool.djlint]
ignore = "T028,H030,H031"
# ### DOC8 ###
[tool.doc8]
# Just use doc8's default configuration
# ### ISORT ###
[tool.isort]
profile = "black"
# include_trailing_comma = true # included in profile "black" & "django"
# force_grid_wrap = true # included in profile "black"
# multi_line_output = 3 # included in profile "black"; 5 in "django"
# use_parantheses = true # included in profile "black"
# ensure_newline_before_comments = true # included in profile "black"
# line_length = 88 # included in profile "black", 79 in "django"
combine_as_imports = true # included in profile "django"
default_section = "THIRDPARTY"
known_first_party = "calingen"
known_django = "django"
sections = [
"FUTURE",
"STDLIB",
"DJANGO",
"THIRDPARTY",
"FIRSTPARTY",
"LOCALFOLDER"
]
import_heading_stdlib = "Python imports"
import_heading_django = "Django imports"
import_heading_firstparty = "app imports"
import_heading_localfolder = "local imports"
import_heading_thirdparty = "external imports"
skip_glob = [
".env",
".tox",
"*/migrations/*",
"settings_dev.py"
]
# ### TOX ###
[tool.tox]
legacy_tox_ini = """
[tox]
envlist =
# Python 3.7 is not supported by Django >= 4.0
# Python 3.7 on Windows does not provide the required SQLite extension by default
py37-django{31,32}-{linux,macos}
# Python 3.8 on Windows does not provide the required SQLite extension by default
py38-django{31,32,40,41}-{linux,macos}
py{39,310}-django{31,32,40,41}-{linux,macos,windows}
skipsdist = true
skip_missing_interpreters = true
minversion = 3.24.0
[testenv]
platform =
linux: linux
macos: darwin
windows: win32
setenv =
PYTHONDONTWRITEBYTECODE=1
deps:
-r {toxinidir}/requirements/coverage.txt
-r {toxinidir}/requirements/common.txt
django31: Django>=3.1, <3.2
django32: Django>=3.2, <4.0
django40: Django>=4.0, <4.1
django41: Django>=4.1, <4.2
commands =
coverage run --parallel tests/runtests.py -v 0
[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
[gh-actions:env]
PLATFORM =
ubuntu-latest: linux
macos-latest: macos
windows-latest: windows
[testenv:django]
basepython = python3
deps =
-r {toxinidir}/requirements/development.txt
envdir = {toxworkdir}/django
setenv =
PYTHONDONTWRITEBYTECODE=1
skip_install = true
commands =
django-admin {posargs:version} --settings=tests.util.settings_dev --pythonpath=./
[testenv:djangosuperuser]
basepython = {[testenv:django]basepython}
deps = {[testenv:django]deps}
envdir = {[testenv:django]envdir}
setenv =
PYTHONDONTWRITEBYTECODE=1
DJANGO_SUPERUSER_USERNAME=admin
DJANGO_SUPERUSER_PASSWORD=foobar
skip_install = {[testenv:django]skip_install}
commands =
django-admin createsuperuser --noinput --settings=tests.util.settings_dev --pythonpath=./
[testenv:installation]
basepython = {[testenv:util]basepython}
skip_install = true
commands =
pip install --no-index --find-links={toxinidir}/dist django-calingen
[testenv:util]
basepython = python3
deps =
-r {toxinidir}/requirements/util.txt
envdir = {toxworkdir}/util
setenv =
PYTHONDONTWRITEBYTECODE=1
FLIT_USERNAME=__token__
# FLIT_INDEX_URL=https://test.pypi.org/legacy/
passenv =
FLIT_PASSWORD
skip_install = true
commands =
{posargs:pre-commit run}
[testenv:sphinx]
basepython = {[testenv:util]basepython}
changedir = {toxinidir}/docs
deps =
-r {toxinidir}/requirements/documentation.txt
envdir = {toxworkdir}/sphinx
setenv =
PYTHONDONTWRITEBYTECODE=1
skip_install = true
whitelist_externals =
make
commands =
{posargs:make html}
[testenv:sphinx-serve]
basepython = {[testenv:sphinx]basepython}
changedir = {toxinidir}/docs/build/html
deps = {[testenv:sphinx]deps}
envdir = {[testenv:sphinx]envdir}
setenv = {[testenv:sphinx]setenv}
skip_install = {[testenv:sphinx]skip_install}
commands =
python -m http.server {posargs:8082}
[testenv:testing]
basepython = {[testenv:django]basepython}
deps =
{[testenv:django]deps}
-r {toxinidir}/requirements/coverage.txt
envdir = {toxworkdir}/testing
setenv = {[testenv:django]setenv}
skip_install = {[testenv:django]skip_install}
commands = coverage run --parallel tests/runtests.py {posargs}
"""