Skip to content

chore(main): release hugr-py 0.13.0 #2302

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hugrbot
Copy link
Collaborator

@hugrbot hugrbot commented Jun 4, 2025

🤖 I have created a release beep boop

0.13.0 (2025-07-16)

⚠ BREAKING CHANGES

  • py: EnvelopeConfig::BINARY now uses the model binary encoding. EnvelopeFormat.MODULE is now EnvelopeFormat.MODEL. EnvelopeFormat.MODULE_WITH_EXTS is now EnvelopeFormat.MODEL_WITH_EXTS
  • hugr-model: Symbol has an extra field
  • Renamed the Any type bound to Linear
  • The model CFG signature types were changed.
  • Added TypeParams and TypeArgs corresponding to floats and bytes.
  • TypeArg::Sequence needs to be replaced with
  • FuncDefns must be moved to beneath Module. Container::define_function is gone, use HugrBuilder::module_root_builder; similarly in hugr-py DefinitionBuilder (define_function -> module_root_builder().define_function). In hugr-llvm, some uses of
  • Hugrs now define an entrypoint in addition to a module root.
  • ArrayOpBuilder was moved from
  • Functions that manipulate runtime extension sets have been removed from the Rust and Python code. Extension set parameters were removed from operations. Closes Remove extension sets #1906
  • values field in Extension and ExtensionValue struct/class removed in rust and python. Use 0-input ops that return constant values.
  • Lift op in prelude replaced with a Barrier that behaves similarly except does not add any extensions.
  • Removed the extension registry argument from validate calls. Removed the extension registry argument from operation instantiation methods. Removed most extension-specific test registries. Use EMPTY_REG, PRELUDE_REGISTRY, or STD_REG instead.
  • extension_reqs field in FunctionType and Extension renamed to runtime_reqs
  • Array type and operations have been moved out of prelude and into a new collections.array extension. (py) list_type method replaced with List class. Removed Array type variant from the serialization format.
  • collections extension renamed to collections.list
  • The LoadFunction::signature field is removed. Replace uses with DataflowOpTrait::signature().
  • Array scan and repeat ops get an additional type parameter specifying the extension requirements of their input functions. Furthermore, repeat is no longer part of ArrayOpDef but is instead specified via a new ArrayScan struct.

Features

Bug Fixes

  • Cyclic import in hugr.envelope (#1981) (cff0dba)
  • Don't enable envelope compression by default (yet) (#2014) (c5423ed)
  • Escape html-like labels in DotRenderer (#2383) (eaa7dfe)
  • Export metadata in Python (#2342) (7be52db)
  • Fixed bug in python model export name mangling. (#2323) (041342f)
  • Fixed bugs in model CFG handling and improved CFG signatures (#2334) (ccd2eb2)
  • Fixed export of Call and LoadConst nodes in hugr-py. (#2429) (6a0e270)
  • Fixed invalid extension name in test. (#2319) (c58ddbf)
  • Fixed two bugs in import/export of function operations (#2324) (1ad450f)
  • handle order port case for missing dataflow ops (#2238) (dc44b81)
  • hugr-py not adding extension-reqs on custom ops (#1759) (97ba7f4)
  • hugr-py: output and delete node issues (#1971) (408517d)
  • map IntValue to unsigned repr when serializing (#2413) (26d426e), closes #2409
  • Order hints on input and output nodes. (#2422) (a31ccbc)
  • py: allow conditional cases to be defined out of order (#1599) (583d21d)
  • py: correct ConstString JSON encoding (#2325) (9649a48)
  • py: deprecate extensions sets in values (#2233) (fe98ba1)
  • py: Fix array/list value serialization (#1827) (7bf85b9)
  • Replace LoadFunction::signature with LoadFunction::instantiation (#1756) (5b50d1d)
  • Resolve types in Values and custom consts (#1779) (080eaae)
  • StaticArrayVal payload encoding, improve roundtrip checker (#2444) (1a301eb)
  • StaticArrayValue serialisation (#2009) (3fe6bf8)
  • stringify metadata before escaping in renderer (#2405) (8d67420)
  • Update number of ports for PartialOps, and sanitize orderd edges (#1635) (81a1385), closes #1625
  • use envelopes for FixedHugr encoding (#2283) (2c8cbb9), closes #2282

Performance Improvements

  • py: mutable Node to avoid linear update cost (#2288) (84fb200)

Reverts

  • Revert breaking change to StaticArrayValue (33a2b49)

Documentation


This PR was generated with Release Please. See documentation.

Copy link

codecov bot commented Jun 4, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.03%. Comparing base (1a301eb) to head (fe8a56e).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2302   +/-   ##
=======================================
  Coverage   82.03%   82.03%           
=======================================
  Files         247      247           
  Lines       46018    46018           
  Branches    41608    41608           
=======================================
  Hits        37749    37749           
  Misses       6250     6250           
  Partials     2019     2019           
Flag Coverage Δ
python 85.26% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@hugrbot hugrbot force-pushed the release-please--branches--main--components--hugr-py branch 9 times, most recently from 77ced37 to 1819d96 Compare June 11, 2025 09:24
@hugrbot hugrbot force-pushed the release-please--branches--main--components--hugr-py branch 7 times, most recently from 8747ddd to cf98b8e Compare June 18, 2025 07:30
@hugrbot hugrbot force-pushed the release-please--branches--main--components--hugr-py branch 8 times, most recently from 908b7ff to f2ee171 Compare June 30, 2025 10:34
@hugrbot hugrbot force-pushed the release-please--branches--main--components--hugr-py branch from f2ee171 to cbe5dd2 Compare July 1, 2025 14:30
@hugrbot hugrbot force-pushed the release-please--branches--main--components--hugr-py branch 9 times, most recently from f59eac4 to 7b11a59 Compare July 8, 2025 13:18
@hugrbot hugrbot force-pushed the release-please--branches--main--components--hugr-py branch 9 times, most recently from fc9df7f to 81d5329 Compare July 15, 2025 11:28
@hugrbot hugrbot force-pushed the release-please--branches--main--components--hugr-py branch from 81d5329 to bee102e Compare July 16, 2025 09:53
@hugrbot hugrbot force-pushed the release-please--branches--main--components--hugr-py branch from bee102e to fe8a56e Compare July 16, 2025 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant