Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
153 lines (134 loc) · 3.67 KB
/
Copy pathpyproject.toml
File metadata and controls
153 lines (134 loc) · 3.67 KB
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
[project]
name = "nsupdate"
dynamic = ["version"]
authors = [{name="The nsupdate.info Team (see AUTHORS)", email="info@nsupdate.info"}, ]
description = "A dynamic DNS update service"
readme = "README.rst"
keywords = ["dyndns", "ddns", "dynamic dns", "django"]
classifiers = [
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Programming Language :: Python :: 3.14',
'Topic :: Internet :: Name Service (DNS)',
]
license = "BSD-3-Clause"
requires-python = ">=3.10, <3.15"
dependencies = [
'dnspython[doh]',
'netaddr',
'django >=5.2.0, <5.3.0',
'django-bootstrap5',
'django-referrer-policy',
'django-registration-redux',
'django-extensions',
'social-auth-app-django',
'requests', # for our ddns_client
]
[project.urls]
Homepage = "https://github.com/nsupdate-info/nsupdate.info/"
[build-system]
requires = ["setuptools>=77.0.0", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
write_to = "src/nsupdate/_version.py"
[tool.pytest.ini_options]
addopts = "--color=yes"
DJANGO_SETTINGS_MODULE = "nsupdate.settings.dev"
pythonpath = ["src"]
markers = ["requires_sequential"]
[tool.flake8]
ignore = [
"E124",
"E125",
"E129",
"E402",
"E501",
"E722",
"E731",
"F401",
"F403",
"F405",
"F811",
"F841",
"W503",
"W504",
]
max_line_length = 120
exclude = ['build', 'dist', '.git', '.idea', '.cache', '.mypy_cache', '.tox', 'docs', 'migrations']
[tool.coverage.run]
branch = true
source = ["src/nsupdate"]
omit = [
"src/*/migrations/*",
"src/*/_tests/*",
"src/nsupdate/wsgi.py",
"src/nsupdate/settings/*",
]
[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover",
# Don't complain about missing debug-only code:
"def __repr__",
"if self\\.debug",
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
# Don't complain if non-runnable code isn't run:
"if 0:",
"if __name__ == .__main__.:",
]
ignore_errors = true
[tool.pylint.main]
# In error mode, messages with a category besides ERROR or FATAL are
# suppressed, and no reports are done by default. Error mode is compatible with
# disabling specific errors.
errors-only = true
# List of plugins (as comma separated values of python module names) to load,
# usually to register additional checkers.
load-plugins = ["pylint_django"]
django-settings-module = "nsupdate.settings.dev"
[tool.pylint.master]
init-hook = "import sys; sys.path.append('.')"
[tool.tox]
env_list = [
"py310",
"py311",
"py312",
"py313",
"py314",
"flake8",
]
[tool.tox.env_run_base]
# default test environment for all pyXX
package = "editable"
pass_env = ["*"]
set_env = { DNS_RESOLVER_TIMEOUT = "15.0", DNS_UPDATE_TIMEOUT = "30.0" }
deps = ["-rrequirements.d/dev.txt"]
commands = [
["pytest", "-v", "-rs", "-k", "not ddns_client", "-m", "not requires_sequential", "--cov=nsupdate", "--pyargs", "{posargs:nsupdate}"],
]
[tool.tox.env.flake8]
skip_install = true
deps = [
"flake8",
"flake8-pyproject",
]
commands = [
["flake8", "src", "scripts"],
]
[tool.sphinx]
source-dir = "docs/"
build-dir = "docs/_build"
all_files = true
[tool.sphinx.upload]
upload-dir = "docs/_build/html"