Skip to content

Commit

Permalink
chore: fix bump-version
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Dec 21, 2024
1 parent 3396206 commit 7f807ce
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
16 changes: 12 additions & 4 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,6 @@ build-jupyterlite:
rm -rf dist/

ibis_dev_version="$(just bump-version)"
uvx --from=toml-cli toml set --toml-path=pyproject.toml project.version "$ibis_dev_version"
sed -i "s/__version__ = \".+\"/__version__ = \"$ibis_dev_version\"/" ibis/__init__.py
uv build --wheel

git checkout pyproject.toml ibis/__init__.py
Expand Down Expand Up @@ -303,6 +301,16 @@ docs-build-all:
chat *args:
zulip-term {{ args }}

# bump the version number to the next pre-release version
@bump-version:
# compute the next version number
@compute-version:
uv run --only-group dev python ci/release/bump_version.py

# bump the version number in necessary files
bump-version:
#!/usr/bin/env bash
ibis_dev_version="$(just compute-version)"
uvx --from=toml-cli toml set --toml-path=pyproject.toml project.version "$ibis_dev_version" > /dev/null
sed -i 's/__version__ = .\+/__version__ = "'$ibis_dev_version'"/g' ibis/__init__.py
just lock > /dev/null
echo "$ibis_dev_version"
2 changes: 1 addition & 1 deletion requirements-dev.txt

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

2 changes: 1 addition & 1 deletion uv.lock

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

0 comments on commit 7f807ce

Please sign in to comment.