Rename the PyPI distribution from hud-python to hud#490
Merged
Conversation
The import name and CLI were always hud; now the package name matches. hud-python becomes an empty shim that depends on hud (with pass-through extras and entry points), published in lockstep by the release workflow so existing installs, lockfiles, and uv tool setups keep working. hud/__init__ warns when a pre-rename hud-python sits alongside hud, since both ship the same top-level package and overwrite each other. Co-authored-by: Cursor <cursoragent@cursor.com>
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
Co-authored-by: Cursor <cursoragent@cursor.com>
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
We now own the
hudname on PyPI. The import (import hud) and the CLI (hud) have always beenhud— this makes the distribution name match. Follows the standard PEP 423 rename pattern (publish under the new name; old name becomes a forwarding shim).pyproject.toml: distribution renamed tohud, version bumped to 0.6.9 (first release under the new name; must sort above every publishedhud-pythonrelease so bare installs of the old name resolve to the shim).shim/: an emptyhud-pythonmetapackage that depends onhud>=0.6.9,<0.7, with pass-through extras (hud-python[robot]->hud[robot], etc.) and the same console scripts souv tool install/upgrade hud-pythonkeeps producing working executables.release.ymlpublishes both packages in lockstep.hud/__init__.pywarns at import when a pre-renamehud-python(<0.6.9) is installed alongsidehud: both ship the same top-levelhudpackage and installers silently overwrite each other (nondeterministically under uv parallel installs).hud initproject template, optional-extra error messages/docstrings, cookbook pyprojects (tool.uv.sourceskey must match the new name), README/docs install commands.Migration notes (for the release announcement)
pip install -U hud-pythonis safe and moves users onto the shim.hudinto an env that already has oldhud-pythonshouldpip uninstall hud-pythonfirst (the import-time warning also says this).hudproject has one foreign release (0.3b2 from 2016, previous owner) that should be deleted, and the publish token must cover both projects.Test plan
uv build+uv build shimproducehud-0.6.9andhud_python-0.6.9artifactshud,import hudworks,hud --versionreports 0.6.9, no legacy warning fires (shim >= 0.6.9)ruff check/ruff format --checkcleanhud/agents/tests/test_base.pyextras-error regex,integrations/tests/test_harbor.py)origin/mainon Windows (pytest capture teardown noise, POSIX-onlyos.killpg/SIGKILLpyright errors) — pre-existing, unrelatedpip install hudandpip install hud-pythonon PyPINote
Medium Risk
Release and install paths change (two PyPI projects, version ordering for shim resolution); runtime behavior is mostly unchanged aside from a new import warning for mixed legacy installs.
Overview
Renames the PyPI distribution from
hud-pythontohud(version 0.6.9);import hudand thehudCLI are unchanged.Adds a
shim/metapackage that still publishes ashud-python, depends onhud>=0.6.9, forwards optional extras and console scripts, and is built/published alongsidehudinrelease.yml.On import,
hudwarns when a pre-0.6.9hud-pythoninstall is present alongsidehud(both ship the same top-level package). Docs, cookbooks,hud inittemplate, CLI PyPI version check, and install/extra error strings now sayhudinstead ofhud-python.Reviewed by Cursor Bugbot for commit c9e82f9. Bugbot is set up for automated code reviews on this repo. Configure here.