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

Reviewed-by: stefanfoulis
  • Loading branch information
francoisfreitag committed Nov 10, 2021
1 parent 005769c commit bb8cec6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 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 = "phonenumber_field/version.py"
3 changes: 0 additions & 3 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 @@ -7,6 +7,7 @@ envlist =
dj31
dj32
djmain
isolated_build = true
minversion = 1.9

[testenv]
Expand Down

0 comments on commit bb8cec6

Please sign in to comment.