Skip to content

Commit 13582c4

Browse files
committed
Bump version. Update tests before PyPI push and tag it on GH
1 parent 6b025b7 commit 13582c4

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

‎Makefile‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,16 @@ dist: .FORCE
3434
#$(MAKE) test
3535
python -m build
3636

37-
upload: .FORCE
37+
pypi: .FORCE
38+
validate-pyproject pyproject.toml
39+
@if ! git diff --quiet || ! git diff --cached --quiet; then \
40+
echo "Error: uncommitted changes present, aborting upload"; exit 1; \
41+
fi
42+
$(eval VERSION := $(shell grep '^version' pyproject.toml | sed 's/version = "\(.*\)"/\1/'))
43+
python -m build
3844
twine upload dist/*
45+
git tag v$(VERSION)
46+
git push origin v$(VERSION)
3947

4048
clean: .FORCE
4149
(cd docs; make clean)

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "pgraph-python"
3-
version = "0.6.3"
3+
version = "0.6.4"
44
authors = [{ name = "Peter Corke", email = "rvc@petercorke.com" }]
55
description = "Mathematical graphs for Python"
66
readme = "README.md"

0 commit comments

Comments
 (0)