File tree Expand file tree Collapse file tree 4 files changed +20
-3
lines changed
Expand file tree Collapse file tree 4 files changed +20
-3
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " stack-graphs-python-bindings"
3- version = " 0.0.8 "
3+ version = " 0.0.10 "
44edition = " 2021"
55
66# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Original file line number Diff line number Diff line change @@ -40,11 +40,28 @@ validate-tag:
4040
4141# Usage: make release TAG=1.0.0
4242release : validate-tag
43+ # Check if the current branch is main
4344 $(eval CURRENT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD) )
4445 @if [ " $( CURRENT_BRANCH) " != " main" ]; then \
4546 echo " Release can only be performed from the main branch. Current branch is $( CURRENT_BRANCH) ." ; \
4647 exit 1; \
4748 fi
49+ # Check if we are up to date with the remote
50+ git fetch
51+ $(eval LOCAL := $(shell git rev-parse @) )
52+ $(eval REMOTE := $(shell git rev-parse @{u}) )
53+ @if [ " $( LOCAL) " = " $( REMOTE) " ]; then \
54+ echo " Local branch is up to date with the remote." ; \
55+ else \
56+ echo " Local branch is not up to date with the remote. Please pull changes before releasing." ; \
57+ exit 1; \
58+ fi
59+
60+ @if [ "$(LOCAL)" != "$(REMOTE)" ]; then \
61+ echo "Local branch is not up to date with the remote. Please pull changes before releasing."; \
62+ exit 1; \
63+ fi
64+ # Check if the latest tag is the same as the current version
4865 $(eval LATEST_TAG := $(shell git describe --tags --abbrev=0))
4966 @if [ "$(LATEST_TAG)" = "$(VERSION_PY)" ]; then \
5067 echo "No version bump detected. Current version $(VERSION_PY) matches the latest tag $(LATEST_TAG)."; \
Original file line number Diff line number Diff line change @@ -10,6 +10,6 @@ classifiers = [
1010 " Programming Language :: Python :: Implementation :: CPython" ,
1111 " Programming Language :: Python :: Implementation :: PyPy" ,
1212]
13- version = " 0.0.8 "
13+ version = " 0.0.10 "
1414[tool .maturin ]
1515features = [" pyo3/extension-module" ]
You can’t perform that action at this time.
0 commit comments