From 3d1456ac92245cb4d9cb5031d50f8662be619bd1 Mon Sep 17 00:00:00 2001 From: Marius Gedminas Date: Wed, 9 Oct 2024 15:17:25 +0300 Subject: [PATCH] Update release.mk --- release.mk | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/release.mk b/release.mk index ff09689..a79d32e 100644 --- a/release.mk +++ b/release.mk @@ -1,4 +1,4 @@ -# release.mk version 2.1 (2021-04-19) +# release.mk version 2.2.2 (2024-10-09) # # Helpful Makefile rules for releasing Python packages. # https://github.com/mgedmin/python-project-skel @@ -12,7 +12,7 @@ DISTCHECK_DIFF_OPTS ?= $(DISTCHECK_DIFF_DEFAULT_OPTS) # These should be fine PYTHON ?= python3 -PYPI_PUBLISH ?= rm -rf dist && $(PYTHON) setup.py -q sdist bdist_wheel && twine check dist/* && twine upload dist/* +PYPI_PUBLISH ?= rm -rf dist && $(PYTHON) -m build && twine check dist/* && twine upload dist/* LATEST_RELEASE_MK_URL = https://raw.githubusercontent.com/mgedmin/python-project-skel/master/release.mk DISTCHECK_DIFF_DEFAULT_OPTS = -x PKG-INFO -x setup.cfg -x '*.egg-info' -x .github -I'^\#' @@ -44,7 +44,7 @@ help: .PHONY: dist dist: - $(PYTHON) setup.py -q sdist bdist_wheel + $(PYTHON) -m build # Provide a default 'make check' to be the same as 'make test', since that's # what 80% of my projects use, but make it possible to override. Now @@ -79,7 +79,7 @@ endif .PHONY: distcheck-sdist distcheck-sdist: dist - pkg_and_version=`$(PYTHON) setup.py --name`-`$(PYTHON) setup.py --version` && \ + pkg_and_version=`$(PYTHON) setup.py --name|tr .- _`-`$(PYTHON) setup.py --version` && \ rm -rf tmp && \ mkdir tmp && \ $(VCS_EXPORT) && \