-
Notifications
You must be signed in to change notification settings - Fork 14
/
pyproject.toml
224 lines (186 loc) · 7.12 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
[project]
name = "django-for-runners"
dynamic = ["version"]
description = "Store your GPX tracks of your running (or other sports activity) in django."
license = {text = "GPL-3.0-or-later"}
readme = "README.md"
authors = [
{name = 'Jens Diemer', email = 'django-for-runners@jensdiemer.de'}
]
requires-python = ">=3.11"
dependencies = [
"django", # https://docs.djangoproject.com
"colorlog", # https://github.com/borntyping/python-colorlog
"gunicorn", # https://github.com/benoimyproject.wsgitc/gunicorn
"django-processinfo", # https://github.com/jedie/django-processinfo/
"django-debug-toolbar", # http://django-debug-toolbar.readthedocs.io/en/stable/changes.html
"django-tools>=0.56.2", # https://github.com/jedie/django-tools/
"django-import-export", # https://github.com/django-import-export/django-import-export
"django-admin-sortable2", # https://github.com/jrief/django-admin-sortable2
"autotask", # https://github.com/kbr/autotask
"gpxpy", # https://github.com/tkrajina/gpxpy
"matplotlib", # http://matplotlib.org/
"svgwrite", # http://github.com/mozman/svgwrite.git
"geopy", # https://github.com/geopy/geopy
"lxml",
"django-dbbackup", # https://github.com/django-dbbackup/django-dbbackup
"requests", # https://github.com/psf/requests
"requests-cache", # https://github.com/requests-cache/requests-cache
"retry-requests", # https://github.com/bustawin/retry-requests
"bx_py_utils", # https://github.com/boxine/bx_py_utils
"bx_django_utils", # https://github.com/boxine/bx_django_utils
"django-axes", # https://github.com/jazzband/django-axes
"django-rich", # https://github.com/adamchainz/django-rich
]
[project.optional-dependencies]
dev = [
"manage_django_project>=0.7.1", # https://github.com/jedie/manage_django_project
"tblib", # https://github.com/ionelmc/python-tblib
"pip-tools", # https://github.com/jazzband/pip-tools/
"tox", # https://github.com/tox-dev/tox
"coverage", # https://github.com/nedbat/coveragepy
"autopep8", # https://github.com/hhatto/autopep8
"pyupgrade", # https://github.com/asottile/pyupgrade
"flake8", # https://github.com/pycqa/flake8
"flake8-bugbear", # https://github.com/PyCQA/flake8-bugbear
"pyflakes", # https://github.com/PyCQA/pyflakes
"codespell", # https://github.com/codespell-project/codespell
"EditorConfig", # https://github.com/editorconfig/editorconfig-core-py
"pip-audit", # https://github.com/pypa/pip-audit
"mypy", # https://github.com/python/mypy
"twine", # https://github.com/pypa/twine
"typeguard", # https://github.com/agronholm/typeguard/
"pre-commit", # https://github.com/pre-commit/pre-commit
# https://github.com/akaihola/darker
# https://github.com/ikamensh/flynt
# https://github.com/pycqa/isort
# https://github.com/pygments/pygments
"darker[flynt, isort, color]",
"tomli", # https://github.com/hukkin/tomli
"django-dynamic-fixtures", # https://github.com/Peter-Slump/django-dynamic-fixtures
"model_bakery", # https://github.com/model-bakers/model_bakery
"requests-mock",
"django-override-storage", # https://github.com/danifus/django-override-storage
# Work-a-round for:
# https://github.com/jazzband/pip-tools/issues/994
"backports.tarfile",
]
[project.urls]
Documentation = "https://github.com/jedie/django-for-runners"
Source = "https://github.com/jedie/django-for-runners"
[project.scripts]
# Must be set in ./manage.py and PROJECT_SHELL_SCRIPT:
for_runners_project = "for_runners_project.__main__:main"
[manage_django_project]
module_name="for_runners_project"
# Django settings used for all commands except test/coverage/tox:
local_settings='for_runners_project.settings.local'
# Django settings used for test/coverage/tox commands:
test_settings='for_runners_project.settings.tests'
[build-system]
requires = ["setuptools>=61.0", "setuptools_scm>=7.1"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
where = ["."]
include = ["for_runners*", "for_runners_project*"]
[tool.setuptools.dynamic]
version = {attr = "for_runners.__version__"}
[tool.cli_base]
version_module_name = "for_runners" # Used by update_readme_history()
[tool.cli_base.pip_audit]
# https://github.com/jedie/cli-base-utilities/blob/main/docs/pip_audit.md
requirements=["requirements.dev.txt"]
strict=true
require_hashes=true
ignore-vuln=[]
[tool.darker]
src = ['.']
revision = "origin/main..."
line_length = 119
color = true
skip_string_normalization = true
diff = false
check = false
stdout = false
isort = true
lint = [
"flake8",
]
log_level = "INFO"
[tool.isort]
# https://pycqa.github.io/isort/docs/configuration/config_files/#pyprojecttoml-preferred-format
atomic=true
profile='black'
skip_glob=['.*', '*/htmlcov/*','*/migrations/*']
known_first_party=['for_runners']
line_length=119
lines_after_imports=2
[tool.coverage.run]
branch = true
parallel = true
concurrency = ["multiprocessing"]
source = ['.']
command_line = '-m for_runners_project test --shuffle --parallel --buffer'
[tool.coverage.report]
omit = ['.*', '*/tests/*', '*/migrations/*']
skip_empty = true
fail_under = 30
show_missing = true
exclude_lines = [
'if self.debug:',
'pragma: no cover',
'raise NotImplementedError',
'if __name__ == .__main__.:',
]
[tool.tox] # https://tox.wiki/en/latest/config.html#pyproject-toml
legacy_tox_ini = """
[tox]
isolated_build = True
envlist = py{312,311}
skip_missing_interpreters = True
[testenv]
passenv = *
skip_install = true
commands_pre =
pip install -U pip-tools
pip-sync requirements.dev.txt
commands =
{envpython} -m coverage run --context='{envname}'
{envpython} -m coverage combine --append
{envpython} -m coverage xml
{envpython} -m coverage report
"""
[tool.mypy]
warn_unused_configs = true
ignore_missing_imports = true
allow_redefinition = true # https://github.com/python/mypy/issues/7165
show_error_codes = true
plugins = []
exclude = ['.venv', 'tests', 'migrations']
[manageprojects] # https://github.com/jedie/manageprojects
initial_revision = "01611af"
initial_date = 2023-01-25T09:47:16+01:00
cookiecutter_template = "https://github.com/jedie/cookiecutter_templates/"
cookiecutter_directory = "managed-django-project"
applied_migrations = [
"89aadc0", # 2023-03-17T09:44:50+01:00
"2281f4b", # 2023-04-02T17:40:58+02:00
"10c547a", # 2023-04-04T20:37:52+02:00
"d65b082", # 2023-12-17T12:51:22+01:00
"a66e5ae", # 2024-01-16T19:13:13+01:00
"f8be3e0", # 2024-07-16T19:35:26+02:00
"52669d0", # 2024-08-02T15:47:04+02:00
"3dac094", # 2024-08-25T15:13:50+02:00
]
[manageprojects.cookiecutter_context.cookiecutter]
full_name = "Jens Diemer"
github_username = "jedie"
author_email = "django-for-runners@jensdiemer.de"
package_name = "for_runners"
project_name = "django-for-runners"
package_version = "0.16.0rc2"
package_description = "Store your GPX tracks of your running (or other sports activity) in django."
package_url = "https://github.com/jedie/django-for-runners"
issues_url = "https://github.com/jedie/django-for-runners/issues"
license = "GPL-3.0-or-later"
_template = "https://github.com/jedie/cookiecutter_templates/"