From e7fc54aa9fdf356f087f3d8b576e796e8ebf2be5 Mon Sep 17 00:00:00 2001 From: "Michael R. Crusoe" Date: Mon, 16 Oct 2023 15:53:00 +0200 Subject: [PATCH] release: set version via SCM variable --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 59b731021..29716b820 100644 --- a/Makefile +++ b/Makefile @@ -201,14 +201,15 @@ release-test: check-python3 FORCE git diff-index --quiet HEAD -- || ( echo You have uncommitted changes, please commit them and try again; false ) ./release-test.sh -release: release-test - git tag ${VERSION} +release: + export SETUPTOOLS_SCM_PRETEND_VERSION_FOR_CWLTOOL=${VERSION} && \ + ./release-test.sh && \ . testenv2/bin/activate && \ pip install build && \ python -m build testenv2/src/${MODULE} && \ pip install twine && \ twine upload testenv2/src/${MODULE}/dist/* && \ - git push --tags + git tag ${VERSION} && git push --tags flake8: $(PYSOURCES) flake8 $^