Skip to content

release: hiagent-api 3.1.1rc1 - #65

Merged
hallucigenia merged 4 commits into
mainfrom
release-3.1.1rc1
Dec 1, 2026
Merged

hallucigenia merged 4 commits into
mainfrom
release-3.1.1rc1

Conversation

@hallucigenia

@hallucigenia hallucigenia commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

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.

  • dfd8e60 fix(api): build wheels with only the hiagent_api package. The wheel config said packages = ["."], so every file went in under a ./ prefix. Installing the wheel also put pyproject.toml, README.md, .gitignore, PKG-INFO and a top-level tests package 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.
  • 7fb70f5 release: sets version 3.1.1rc1 in libs/api/pyproject.toml, in VERSION in hiagent_api/base.py (which goes into the User-Agent), and on the hiagent-api line of uv.lock. I edited only that lock line so the lockfile keeps its existing format revision; uv lock --check passes.
  • f028803 fix(api): ship license metadata and keep test names unique.
    • Adds libs/api/LICENSE, license = "Apache-2.0", license-files, hatchling>=1.27.0 and 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.
    • Merges the two distribution tests into test_api_distribution.py. The old file names were the same as the tests release-3.2.1 adds under libs/observe/tests, and with neither directory having an __init__.py, merging that branch made pytest libs stop with "import file mismatch".
  • 9a9e1db test(api): build distributions in-process with the locked hatchling. The test no longer runs uv build --offline as a subprocess. It calls hatchling's PEP 517 build_wheel and build_sdist hooks from the package's own directory, and hatchling>=1.27.0 is now in the root dev group, so uv.lock pins 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. Running uv lock also rewrote the lockfile to format revision 5 and normalized a few markers. No existing package changed version.

The other packages' hiagent-api>=3.1.0 lower bounds are unchanged.

Tests

  • libs/api/tests/test_api_distribution.py builds the package in-process with the locked hatchling and checks the wheel and the sdist. It passes with an empty uv cache and no uv on PATH, and from an unpacked sdist. Both of those failed before the last commit.
    • Wheel: contains only hiagent_api/ and hiagent_api-<VERSION>.dist-info/, with normalized paths. In its metadata, Version equals base.VERSION, Summary is set, License-Expression is Apache-2.0, and the packaged LICENSE is byte-identical to the source copy.
    • Sdist: has a single root directory, normalized paths, includes LICENSE, and leaves out examples/.
    • It failed before each fix, and fails again if base.VERSION is changed so it no longer matches the version in pyproject.toml.
  • pytest libs -m "not e2e": 163 passed, 3 skipped, 1 deselected.
  • agent-harness: 52 passed.
  • In a scratch worktree where release-3.2.1 was merged on top of this branch, pytest libs --collect-only collects with no errors.
  • uv build --package hiagent-api and twine check: both pass.
  • I installed the wheel into a clean Python 3.10 environment. hiagent_api.up imports, VERSION and the installed metadata both say 3.1.1rc1, and site-packages gains only hiagent_api and its dist-info besides 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

  • Tag the release and publish hiagent-api==3.1.1rc1 to PyPI (manual).
  • Smoke-test UpService against a UP that has anonymous access disabled, using the published rc.
  • Separately: merge release-3.2.1 back into main. Until then, main still has observe at 3.1.0 with packages = ["."].

sai-bot 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
hallucigenia marked this pull request as ready for review December 1, 2026 06:23
@hallucigenia
hallucigenia merged commit dd7220f into main Dec 1, 2026
4 checks passed
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.

1 participant