Skip to content

Commit e7fc54a

Browse files
committed
release: set version via SCM variable
1 parent b0c8dda commit e7fc54a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Makefile

+4-3
Original file line numberDiff line numberDiff line change
@@ -201,14 +201,15 @@ release-test: check-python3 FORCE
201201
git diff-index --quiet HEAD -- || ( echo You have uncommitted changes, please commit them and try again; false )
202202
./release-test.sh
203203

204-
release: release-test
205-
git tag ${VERSION}
204+
release:
205+
export SETUPTOOLS_SCM_PRETEND_VERSION_FOR_CWLTOOL=${VERSION} && \
206+
./release-test.sh && \
206207
. testenv2/bin/activate && \
207208
pip install build && \
208209
python -m build testenv2/src/${MODULE} && \
209210
pip install twine && \
210211
twine upload testenv2/src/${MODULE}/dist/* && \
211-
git push --tags
212+
git tag ${VERSION} && git push --tags
212213

213214
flake8: $(PYSOURCES)
214215
flake8 $^

0 commit comments

Comments
 (0)