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 1
1
[package ]
2
2
name = " stack-graphs-python-bindings"
3
- version = " 0.0.8 "
3
+ version = " 0.0.10 "
4
4
edition = " 2021"
5
5
6
6
# 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:
40
40
41
41
# Usage: make release TAG=1.0.0
42
42
release : validate-tag
43
+ # Check if the current branch is main
43
44
$(eval CURRENT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD) )
44
45
@if [ " $( CURRENT_BRANCH) " != " main" ]; then \
45
46
echo " Release can only be performed from the main branch. Current branch is $( CURRENT_BRANCH) ." ; \
46
47
exit 1; \
47
48
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
48
65
$(eval LATEST_TAG := $(shell git describe --tags --abbrev=0))
49
66
@if [ "$(LATEST_TAG)" = "$(VERSION_PY)" ]; then \
50
67
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 = [
10
10
" Programming Language :: Python :: Implementation :: CPython" ,
11
11
" Programming Language :: Python :: Implementation :: PyPy" ,
12
12
]
13
- version = " 0.0.8 "
13
+ version = " 0.0.10 "
14
14
[tool .maturin ]
15
15
features = [" pyo3/extension-module" ]
You can’t perform that action at this time.
0 commit comments