Skip to content

Commit

Permalink
Drop deprecated setup.py
Browse files Browse the repository at this point in the history
Prefer the declarative syntax of setup.cfg. To package the project:

```
pip install build
python -m build
```

https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html
  • Loading branch information
francoisfreitag committed Oct 21, 2021
1 parent da22a37 commit 3015de9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ requires = [
"wheel",
"setuptools_scm[toml]>=3.4",
]
build-backend = "setuptools.build_meta:__legacy__"

[tool.setuptools_scm]
write_to = "django_auth_ldap/version.py"
3 changes: 0 additions & 3 deletions setup.py

This file was deleted.

6 changes: 5 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ envlist =
django31
django32
djangomain
isolated_build = true

[testenv]
commands = {envpython} -Wa -b -m django test --settings tests.settings
Expand All @@ -33,6 +34,7 @@ commands = isort --check --diff .
skip_install = true

[testenv:docs]
isolated_build = true
deps =
readme_renderer
sphinx
Expand All @@ -42,9 +44,11 @@ whitelist_externals = make

[testenv:packaging]
deps =
build
setuptools
twine
wheel
skip_install = true
commands =
python setup.py sdist bdist_wheel
python -m build
twine check dist/*

0 comments on commit 3015de9

Please sign in to comment.