Skip to content

Releases: stacklet/stacklet-admin

2026.03.06: chore: fix scripts/upgrade.py to work with date versioning (#108)

06 Mar 20:16
6af5cf0

Choose a tag to compare

### what

- Rewrite `scripts/upgrade.py` to read/write the version from
  `stacklet/client/platform/__init__.py` instead of `pyproject.toml`
- Replace `--bump-patch/minor/major` flags with a single optional
  `VERSION` argument: omit for a patch bump, pass `today` for today's
  date as `YYYY.MM.DD`, or pass an explicit `YYYY.MM.DD`; the latter two
  error if the result is not strictly greater than the current version
- Fix patch bump to preserve zero-padding (e.g. `06` → `07`, not `7`)
- Drop `semver` and `toml` imports in favour of stdlib `re` and
  `datetime`
- Update `just pkg-prep` to match: accepts an optional `version`
  argument (default empty = patch bump) and stages
  `stacklet/client/platform/__init__.py` instead of `pyproject.toml`
- Add unit tests for all three modes and error cases

### why

`upgrade.py` was already broken after the switch to dynamic versioning
(`dynamic = ["version"]` in `pyproject.toml`, sourced from
`__init__.py`): it attempted to read and write a `version` key that no
longer exists in `pyproject.toml`. The script also had no concept of the
date-based version scheme (`YYYY.MM.DD`) introduced with the `2026.01.0`
release.

### testing

12 unit tests covering patch bump, `today`, explicit `YYYY.MM.DD`, and
all error cases (non-bump, invalid format). All passing.

### docs

No docs changes needed.

---------------------------

🤖 Generated with [Claude Code](https://claude.com/claude-code)

2026.01.0

23 Jan 15:32
284524e

Choose a tag to compare

Release 2026.01.0

0.1.6

16 Sep 16:06
22d240c

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.1.5...0.1.6

0.1.5

13 May 22:13
77635bd

Choose a tag to compare

What's Changed

  • chore: bump versions for actions for the release pipeline by @albertodonato in #65
  • fix: make --region optional when adding an account group by @albertodonato in #66
  • chore: Use actions/upload-artifact@v4, as v3 has been removed by @wgrant in #69
  • fix: Explicitly name click objects that end with magic suffixes (ENG-5110) by @wgrant in #67
  • chore: Release 0.1.5 by @wgrant in #70

New Contributors

Full Changelog: 0.1.4...0.1.5