Skip to content

Derive version from git tags + add ucode --version - #219

Merged
AarushiShah-db merged 2 commits into
mainfrom
aarushi/git-derived-versioning
Aug 6, 2026
Merged

Derive version from git tags + add ucode --version#219
AarushiShah-db merged 2 commits into
mainfrom
aarushi/git-derived-versioning

Conversation

@AarushiShah-db

@AarushiShah-db AarushiShah-db commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

Replaces the static 0.1.0 in pyproject.toml — which never updated, so telemetry reported the same version forever — with a git-derived version via uv-dynamic-versioning.

On a tag the version is the plain tag (e.g. 0.1.0); between tags it carries the commit distance and short hash (e.g. 0.1.0+14.g93986a8), so a reported version maps back to an exact commit for bug reports.

Also adds ucode --version / -V, wired through the existing telemetry.ucode_version() so the CLI and the outbound User-Agent report the same string.

After merge: cut the base version once with git tag v0.1.0 && git push origin v0.1.0. Until the first v* tag exists, the base is 0.0.0.

@AarushiShah-db
AarushiShah-db requested review from rohita5l and tt-le July 30, 2026 22:54
tt-le
tt-le previously approved these changes Aug 4, 2026
Replaces the static `0.1.0` in pyproject.toml (which never updated, so
telemetry reported the same version forever) with a git-derived version via
uv-dynamic-versioning. On a tag the version is the plain tag (e.g. `0.1.0`);
between tags it carries the commit distance and short hash (e.g.
`0.1.0+14.g93986a8`) so a reported version maps back to an exact commit.

Adds `ucode --version` / `-V`, wired through the existing
telemetry.ucode_version() so the CLI and the outbound User-Agent report the
same string.

Cut a release by tagging: `git tag v0.1.0 && git push origin v0.1.0`. Until the
first `v*` tag exists the base is `0.0.0`.

Co-authored-by: Isaac
@AarushiShah-db
AarushiShah-db merged commit e4e2c5a into main Aug 6, 2026
2 checks passed
@AarushiShah-db
AarushiShah-db deleted the aarushi/git-derived-versioning branch August 6, 2026 21:23
tt-le added a commit that referenced this pull request Aug 7, 2026
Two conflicts, both from main refactoring under the branch.

`is_workspace_admin` now reads SCIM `Me` through main's new `_scim_me` helper,
which #219 extracted so `get_current_user_name` could share the call. Took main's
implementation and kept this branch's docstring paragraph explaining why an
unverifiable check returns None rather than False — the API enforces the same rule
server-side, so a false negative needlessly blocks a real admin while a false
positive only surfaces the server's PERMISSION_DENIED later. That reasoning is
what `ucode setup`'s admin gate relies on.

`list_workspace_budgets` is this branch's alone; main hasn't got it, so the
deletion side of that hunk was main simply not having the code.

In tests, main's `TestIsWorkspaceAdmin` (which stubs `_scim_me`) and this branch's
cache suites are independent, so both are kept.
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.

2 participants