Skip to content

Commit d410404

Browse files
committed
Release 0.0.10
1 parent afd0d4f commit d410404

File tree

4 files changed

+20
-3
lines changed

4 files changed

+20
-3
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "stack-graphs-python-bindings"
3-
version = "0.0.8"
3+
version = "0.0.10"
44
edition = "2021"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Makefile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,28 @@ validate-tag:
4040

4141
# Usage: make release TAG=1.0.0
4242
release: 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)."; \

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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]
1515
features = ["pyo3/extension-module"]

0 commit comments

Comments
 (0)