Skip to content

Commit

Permalink
Merge pull request #568 from ThomasWaldmann/pyproject.toml
Browse files Browse the repository at this point in the history
move from setup.py to pyproject.toml
  • Loading branch information
ThomasWaldmann authored Oct 12, 2024
2 parents f8737aa + 4dbb088 commit 3cf472a
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 101 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
python-version: 3.12
- name: Lint with flake8
run: |
pip install flake8
pip install flake8 flake8-pyproject
flake8 src scripts conftest.py
tox:
Expand Down Expand Up @@ -64,6 +64,7 @@ jobs:

env:
TOXENV: ${{ matrix.toxenv }}
DJANGO_SETTINGS_MODULE: nsupdate.settings.dev

runs-on: ${{ matrix.os }}
timeout-minutes: 40
Expand Down
68 changes: 67 additions & 1 deletion pyproject.toml
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']

1 change: 1 addition & 0 deletions requirements.d/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ pytest
pytest-django
pytest-cov
tox
build
wheel
pylint
pylint-django
Expand Down
40 changes: 0 additions & 40 deletions setup.cfg
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

59 changes: 0 additions & 59 deletions setup.py

This file was deleted.

1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ skip_install=true
changedir =
deps =
flake8
flake8-pyproject
commands = flake8 src scripts conftest.py

0 comments on commit 3cf472a

Please sign in to comment.