File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
- # release.mk version 2.1 (2021-04-19 )
1
+ # release.mk version 2.2.2 (2024-10-09 )
2
2
#
3
3
# Helpful Makefile rules for releasing Python packages.
4
4
# https://github.com/mgedmin/python-project-skel
@@ -12,7 +12,7 @@ DISTCHECK_DIFF_OPTS ?= $(DISTCHECK_DIFF_DEFAULT_OPTS)
12
12
13
13
# These should be fine
14
14
PYTHON ?= python3
15
- PYPI_PUBLISH ?= rm -rf dist && $(PYTHON ) setup.py -q sdist bdist_wheel && twine check dist/* && twine upload dist/*
15
+ PYPI_PUBLISH ?= rm -rf dist && $(PYTHON ) -m build && twine check dist/* && twine upload dist/*
16
16
LATEST_RELEASE_MK_URL = https://raw.githubusercontent.com/mgedmin/python-project-skel/master/release.mk
17
17
DISTCHECK_DIFF_DEFAULT_OPTS = -x PKG-INFO -x setup.cfg -x '*.egg-info' -x .github -I'^\# '
18
18
44
44
45
45
.PHONY : dist
46
46
dist :
47
- $(PYTHON ) setup.py -q sdist bdist_wheel
47
+ $(PYTHON ) -m build
48
48
49
49
# Provide a default 'make check' to be the same as 'make test', since that's
50
50
# what 80% of my projects use, but make it possible to override. Now
79
79
80
80
.PHONY : distcheck-sdist
81
81
distcheck-sdist : dist
82
- pkg_and_version=` $( PYTHON) setup.py --name` -` $( PYTHON) setup.py --version` && \
82
+ pkg_and_version=` $( PYTHON) setup.py --name| tr .- _ ` -` $( PYTHON) setup.py --version` && \
83
83
rm -rf tmp && \
84
84
mkdir tmp && \
85
85
$(VCS_EXPORT ) && \
You can’t perform that action at this time.
0 commit comments