Skip to content

chore: add an update_version task and bump the version to 1.8.1 - #226

Merged
Neclow merged 2 commits into
sbhattlab:mainfrom
Neclow:chore/update-version-all
Nov 2, 2026
Merged

Neclow merged 2 commits into
sbhattlab:mainfrom
Neclow:chore/update-version-all

Conversation

@Neclow

@Neclow Neclow commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds a pixi run update_version <version> task to set the version of all packages before a release, and uses it to bump the version to 1.8.1.

Why

The version is set in five files (phylo2vec/Cargo.toml, py-phylo2vec/Cargo.toml, r-phylo2vec/src/rust/Cargo.toml, r-phylo2vec/DESCRIPTION and pixi.toml), plus Cargo.lock, and was bumped by hand (e.g., #175). Releases still get the right version because CD overwrites it from the release tag, so the repo can silently drift: it still says 1.7.0 after v1.8.0. This also means that installing from a tag (e.g., devtools::install_github("sbhattlab/phylo2vec@v1.8.0", ...)) reports 1.7.0, and the development builds published to TestPyPI from main are versioned 1.7.1-rc.N.

Changes

  • resources/update_version.py: new --all --version X.Y.Z option, which sets the version in all five files (only the version key of [package]/[workspace], keeping the quote style) and runs cargo update --workspace --offline to update Cargo.lock. The existing options used by the CD workflows (--python, --r, --extract-only, automatic -rc.N versions) are unchanged
  • pixi.toml: update_version task, e.g. pixi run update_version 1.9.0
  • docs/development.md: a "Releasing" section (run the task, merge, publish the release)
  • Version bumped to 1.8.1 with the new task (patch release: since v1.8.0, the changes are the pyo3/numpy security update, bug fixes and docs)

Once merged, the v1.8.1 release can be published from main.

Neclow and others added 2 commits November 2, 2026 10:20
The version is set in five files (the three Cargo.toml files,
r-phylo2vec/DESCRIPTION and pixi.toml), plus Cargo.lock, but
update_version.py only handled py-phylo2vec/Cargo.toml and DESCRIPTION.
Releases still got the right version because CD overwrites it from the
tag, so the repo drifted (it still says 1.7.0 after v1.8.0).

- update_version.py: add `--all --version X.Y.Z`, which sets the version
  in all five files and runs `cargo update --workspace --offline`. The
  existing options used by CD are unchanged
- pixi.toml: add an `update_version` task, e.g.
  `pixi run update_version 1.9.0`
- docs/development.md: add a "Releasing" section

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Set with `pixi run update_version 1.8.1`. The repo still said 1.7.0
after the v1.8.0 release.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Neclow
Neclow merged commit f5c2769 into sbhattlab:main Nov 2, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant