-
-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #568 from ThomasWaldmann/pyproject.toml
move from setup.py to pyproject.toml
- Loading branch information
Showing
6 changed files
with
71 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,69 @@ | ||
[project] | ||
name = "nsupdate" | ||
dynamic = ["version"] | ||
authors = [{name="The nsupdate.info Team (see AUTHORS)", email="[email protected]"}, ] | ||
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', | ||
'License :: OSI Approved :: BSD License', | ||
'Operating System :: OS Independent', | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.8', | ||
'Programming Language :: Python :: 3.9', | ||
'Programming Language :: Python :: 3.10', | ||
'Programming Language :: Python :: 3.11', | ||
'Programming Language :: Python :: 3.12', | ||
'Topic :: Internet :: Name Service (DNS)', | ||
] | ||
license = {text="BSD"} | ||
requires-python = ">=3.8, <3.13" | ||
dependencies = [ | ||
'dnspython', | ||
'netaddr', | ||
'django >=4.2.0, <4.3.0', | ||
'django-bootstrap-form', | ||
'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", "setuptools-scm"] | ||
requires = ["setuptools", "setuptools_scm[toml]>=6.2"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools_scm] | ||
write_to = "src/nsupdate/_version.py" | ||
|
||
[tool.pytest.ini_options] | ||
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'] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ pytest | |
pytest-django | ||
pytest-cov | ||
tox | ||
build | ||
wheel | ||
pylint | ||
pylint-django | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,7 @@ | ||
[egg_info] | ||
tag_build = | ||
tag_date = 0 | ||
tag_svn_revision = 0 | ||
|
||
[bdist_rpm] | ||
release=1 | ||
doc_files= | ||
README.rst | ||
LICENSE | ||
PKG-INFO | ||
docs/ | ||
requires=python | ||
build_requires=python | ||
|
||
[build_sphinx] | ||
source-dir = docs/ | ||
build-dir = docs/_build | ||
all_files = 1 | ||
|
||
[upload_sphinx] | ||
upload-dir = docs/_build/html | ||
|
||
[tool:pytest] | ||
DJANGO_SETTINGS_MODULE = nsupdate.settings.dev | ||
markers = | ||
requires_sequential | ||
|
||
[flake8] | ||
max_line_length = 120 | ||
exclude = build,dist,.git,.idea,.cache,.tox,docs,migrations | ||
ignore = | ||
E124 | ||
E125 | ||
E129 | ||
E402 | ||
E501 | ||
E722 | ||
E731 | ||
F401 | ||
F403 | ||
F405 | ||
F811 | ||
F841 | ||
W503 | ||
W504 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,4 +19,5 @@ skip_install=true | |
changedir = | ||
deps = | ||
flake8 | ||
flake8-pyproject | ||
commands = flake8 src scripts conftest.py |