Skip to content

change name of project - #20

Merged
teeler merged 1 commit into
googlecolab:mainfrom
teeler:change-name
May 22, 2026
Merged

teeler merged 1 commit into
googlecolab:mainfrom
teeler:change-name

Conversation

@teeler

@teeler teeler commented May 22, 2026 •

Copy link
Copy Markdown
Contributor

in pyproject.toml to match upcoming pypi release (also bump uv.lock for upcoming release)

@teeler
teeler merged commit 93056cb into googlecolab:main May 22, 2026
6 checks passed
@teeler
teeler deleted the change-name branch May 22, 2026 20:13
teeler added a commit that referenced this pull request May 26, 2026
The rename in #20 (colab -> google-colab-cli) missed
get_app_version() in src/colab_cli/auto_update.py, which still asked
importlib.metadata for the old distribution name. After install from
the renamed PyPI package, the lookup raised PackageNotFoundError and
the function silently fell through to the git-rev-parse fallback;
inside an install venv with no git repo that also fails and the user
saw "Version: unknown" from `colab version` (and the same broken
value flowed into the auto-update banner's "current vs latest"
comparison).

Existing test_version.py tests mocked installed_version directly so
they didn't catch the wrong argument. Strengthen test_version_installed
with mock_version.assert_called_with("google-colab-cli") so a future
rename can't silently regress this again.

Verified by building a wheel and installing into a fresh venv:
`colab version` now prints the package version instead of "unknown".
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