From 7c85f95a4dfb0e6bbf425b1d22dd69c6c27cf98e Mon Sep 17 00:00:00 2001 From: fselmo Date: Mon, 21 Nov 2022 17:27:18 -0700 Subject: [PATCH] Do not invoke ``setup.py`` directly - It is not recommended to invoke ``setup.py`` directly, instead opting for ``python -m build`` for the commands in this commit (see: https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html) - Add newsfragment for #70 --- Makefile | 6 +++--- newsfragments/70.internal.rst | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 newsfragments/70.internal.rst diff --git a/Makefile b/Makefile index 541c166d..9ec20499 100644 --- a/Makefile +++ b/Makefile @@ -28,7 +28,7 @@ clean-pyc: find . -name '__pycache__' -exec rm -rf {} + lint: - tox -elint + tox -e lint lint-roll: isort --recursive tests @@ -83,11 +83,11 @@ release: check-bump clean git config commit.gpgSign true bumpversion $(bump) git push upstream && git push upstream --tags - python setup.py sdist bdist_wheel + python -m build twine upload dist/* git config commit.gpgSign "$(CURRENT_SIGN_SETTING)" dist: clean - python setup.py sdist bdist_wheel + python -m build ls -l dist diff --git a/newsfragments/70.internal.rst b/newsfragments/70.internal.rst new file mode 100644 index 00000000..2e2fd5f9 --- /dev/null +++ b/newsfragments/70.internal.rst @@ -0,0 +1 @@ +Do not invoke ``setup.py`` directly. Minor cleanup and refactors in newsfragment ``README.md`` and newsfragment validation. Minot cleanup in ``Makefile``.