Skip to content

Commit

Permalink
Release 0.0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
nohehf committed May 21, 2024
1 parent afd0d4f commit d410404
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "stack-graphs-python-bindings"
version = "0.0.8"
version = "0.0.10"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
17 changes: 17 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,28 @@ validate-tag:

# Usage: make release TAG=1.0.0
release: validate-tag
# Check if the current branch is main
$(eval CURRENT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD))
@if [ "$(CURRENT_BRANCH)" != "main" ]; then \
echo "Release can only be performed from the main branch. Current branch is $(CURRENT_BRANCH)."; \
exit 1; \
fi
# Check if we are up to date with the remote
git fetch
$(eval LOCAL := $(shell git rev-parse @))
$(eval REMOTE := $(shell git rev-parse @{u}))
@if [ "$(LOCAL)" = "$(REMOTE)" ]; then \
echo "Local branch is up to date with the remote."; \
else \
echo "Local branch is not up to date with the remote. Please pull changes before releasing."; \
exit 1; \
fi

@if [ "$(LOCAL)" != "$(REMOTE)" ]; then \
echo "Local branch is not up to date with the remote. Please pull changes before releasing."; \
exit 1; \
fi
# Check if the latest tag is the same as the current version
$(eval LATEST_TAG := $(shell git describe --tags --abbrev=0))
@if [ "$(LATEST_TAG)" = "$(VERSION_PY)" ]; then \
echo "No version bump detected. Current version $(VERSION_PY) matches the latest tag $(LATEST_TAG)."; \
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ classifiers = [
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
version = "0.0.8"
version = "0.0.10"
[tool.maturin]
features = ["pyo3/extension-module"]

0 comments on commit d410404

Please sign in to comment.