Skip to content

Commit c612c66

Browse files
committed
fix: django should be a requirement of ours, and make tagging smoother
1 parent 740bbbe commit c612c66

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

Makefile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,13 @@ 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__)")
39+
_install_e:
40+
python -m pip install -q -e .
4041

41-
tag: ## Make a git tag with the version number.
42-
git tag -s -m "Version v$(VERSION)" v$(VERSION)
43-
git push --all
42+
tag: _install_e ## Make a git tag with the version number.
43+
@export VER="$$(python -c "import django_coverage_plugin as me; print(me.__version__)")" && \
44+
echo git tag -s -m "Version v$$VER" v$$VER
45+
echo git push --all
4446

4547
ghrelease: ## Make a GitHub release for the latest version.
4648
python -m scriv github-release

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ classifiers = [
3636
requires-python = ">= 3.9"
3737
dependencies = [
3838
"coverage",
39+
"Django",
3940
]
4041
dynamic = ["version"]
4142

requirements.txt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
# To run tests, we just need tox.
2-
tox >= 1.8
1+
# To run tests, we just need tox:
2+
tox
3+
4+
# For releases:
35
build
46
scriv
57
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)