Repository navigation
release: hiagent-api 3.1.1rc1 - #65
Merged
Merged
Conversation
added 4 commits
November 30, 2026 19:17
packages = ["."] put every file under a ./ prefix and installed pyproject.toml, README.md, .gitignore, PKG-INFO and a top-level tests package into site-packages. Same fix hiagent-observe got in 3.2.1.
Only hiagent-api changed since 3.1.0 (UpService alignment, #63). eva, components and observe keep their versions.
- Add LICENSE, license = Apache-2.0 and a real description; workspace packages don't inherit the root LICENSE (same as hiagent-observe in #60). - Merge the two distribution tests into test_api_distribution.py: the old basenames clash with release-3.2.1's observe tests under pytest libs. - Check the built wheel's Version against base.VERSION and pin the dist-info directory, instead of the editable install's metadata.
uv build --offline failed once the uv cache was emptied (hatchling not cached), and cwd=parents[1] broke the test when run from an unpacked sdist. Call hatchling's PEP 517 hooks from the package directory instead, with hatchling>=1.27.0 pinned in the dev group. uv lock also rewrote the lockfile to revision 5; no existing package changed version.
hallucigenia
marked this pull request as ready for review
December 1, 2026 06:23
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
This PR prepares the release candidate hiagent-api 3.1.1rc1. Of the published packages, only hiagent-api has changed since 3.1.0, through the UpService alignment in #63. hiagent-eva, hiagent-components, hiagent-observe and hibot keep their current versions.
dfd8e60fix(api): build wheels with only thehiagent_apipackage. The wheel config saidpackages = ["."], so every file went in under a./prefix. Installing the wheel also putpyproject.toml,README.md,.gitignore,PKG-INFOand a top-leveltestspackage into site-packages. The published 3.1.0 wheel has this problem too. The fix is the one hiagent-observe got in 3.2.1.7fb70f5release: sets version3.1.1rc1inlibs/api/pyproject.toml, inVERSIONinhiagent_api/base.py(which goes into the User-Agent), and on the hiagent-api line ofuv.lock. I edited only that lock line so the lockfile keeps its existing format revision;uv lock --checkpasses.f028803fix(api): ship license metadata and keep test names unique.libs/api/LICENSE,license = "Apache-2.0",license-files,hatchling>=1.27.0and a real description. Workspace packages don't inherit the root LICENSE (observe fixed the same gap in fix(observe): include Apache-2.0 license in distributions #60). This goes in now so that rc1 already has the final metadata.test_api_distribution.py. The old file names were the same as the testsrelease-3.2.1adds underlibs/observe/tests, and with neither directory having an__init__.py, merging that branch madepytest libsstop with "import file mismatch".9a9e1dbtest(api): build distributions in-process with the locked hatchling. The test no longer runsuv build --offlineas a subprocess. It calls hatchling's PEP 517build_wheelandbuild_sdisthooks from the package's own directory, andhatchling>=1.27.0is now in the rootdevgroup, souv.lockpins it. Before this, the test failed whenever the uv cache had been emptied, because hatchling wasn't cached, and it also failed when run from an unpacked sdist, because the build ran from the directory two levels above the package, which only exists in the repository. Runninguv lockalso rewrote the lockfile to format revision 5 and normalized a few markers. No existing package changed version.The other packages'
hiagent-api>=3.1.0lower bounds are unchanged.Tests
libs/api/tests/test_api_distribution.pybuilds the package in-process with the locked hatchling and checks the wheel and the sdist. It passes with an empty uv cache and nouvon PATH, and from an unpacked sdist. Both of those failed before the last commit.hiagent_api/andhiagent_api-<VERSION>.dist-info/, with normalized paths. In its metadata,Versionequalsbase.VERSION,Summaryis set,License-ExpressionisApache-2.0, and the packaged LICENSE is byte-identical to the source copy.examples/.base.VERSIONis changed so it no longer matches the version inpyproject.toml.pytest libs -m "not e2e": 163 passed, 3 skipped, 1 deselected.release-3.2.1was merged on top of this branch,pytest libs --collect-onlycollects with no errors.uv build --package hiagent-apiandtwine check: both pass.hiagent_api.upimports,VERSIONand the installed metadata both say3.1.1rc1, and site-packages gains onlyhiagent_apiand itsdist-infobesides dependencies.Merge
Please squash-merge. The branch commits carry a bot author from the environment they were made in, and the squash commit takes the merger's GitHub identity, as #63 and #64 did.
After merge
hiagent-api==3.1.1rc1to PyPI (manual).release-3.2.1back intomain. Until then,mainstill has observe at 3.1.0 withpackages = ["."].