Skip to content

Commit

Permalink
Update release.mk
Browse files Browse the repository at this point in the history
  • Loading branch information
mgedmin committed Oct 9, 2024
1 parent 21047f3 commit 2a203cc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions release.mk
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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'^\#'

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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) && \
Expand Down

0 comments on commit 2a203cc

Please sign in to comment.