Skip to content

Commit 740bbbe

Browse files
committed
build: fix the tagging
1 parent eb65668 commit 740bbbe

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@ pypi: ## Upload the built distributions to PyPI.
3636
test_pypi: ## Upload the distributions to test PyPI.
3737
python -m twine upload --verbose --repository testpypi --password $$TWINE_TEST_PASSWORD dist/*
3838

39+
VERSION := $(shell python -c "import django_coverage_plugin as me; print(me.__version__)")
40+
3941
tag: ## Make a git tag with the version number.
40-
git tag -s -m "Version v$$(python -c 'import django_coverage_plugin; print(django_coverage_plugin.__version__)')" v$$(python -c 'import django_coverage_plugin; print(django_coverage_plugin.__version__)')
42+
git tag -s -m "Version v$(VERSION)" v$(VERSION)
4143
git push --all
4244

4345
ghrelease: ## Make a GitHub release for the latest version.

requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@ tox >= 1.8
33
build
44
scriv
55
twine
6+
7+
# We need django and coverage to be able to import ourselves to make a tag...
8+
django
9+
coverage

0 commit comments

Comments
 (0)