chore(main): release hugr-py 0.13.0 #2302
Draft
+127
−3
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.
🤖 I have created a release beep boop
0.13.0 (2025-07-16)
⚠ BREAKING CHANGES
EnvelopeConfig::BINARY
now uses the model binary encoding.EnvelopeFormat.MODULE
is nowEnvelopeFormat.MODEL
.EnvelopeFormat.MODULE_WITH_EXTS
is nowEnvelopeFormat.MODEL_WITH_EXTS
Any
type bound toLinear
TypeParam
s andTypeArg
s corresponding to floats and bytes.TypeArg::Sequence
needs to be replaced withContainer::define_function
is gone, useHugrBuilder::module_root_builder
; similarly in hugr-pyDefinitionBuilder
(define_function
->module_root_builder().define_function
). In hugr-llvm, some uses ofentrypoint
in addition to a module root.ArrayOpBuilder
was moved fromvalues
field inExtension
andExtensionValue
struct/class removed in rust and python. Use 0-input ops that return constant values.validate
calls. Removed the extension registry argument from operation instantiation methods. Removed most extension-specific test registries. UseEMPTY_REG
,PRELUDE_REGISTRY
, orSTD_REG
instead.extension_reqs
field in FunctionType and Extension renamed toruntime_reqs
prelude
and into a newcollections.array
extension. (py)list_type
method replaced withList
class. RemovedArray
type variant from the serialization format.collections
extension renamed tocollections.list
LoadFunction::signature
field is removed. Replace uses withDataflowOpTrait::signature()
.scan
andrepeat
ops get an additional type parameter specifying the extension requirements of their input functions. Furthermore,repeat
is no longer part ofArrayOpDef
but is instead specified via a newArrayScan
struct.Package
moved to newhugr.package
moduleFeatures
instantiate
method forOpDef
(#1576) (36548ab), closes #1512BorrowArray
extension (#2395) (782687e)LoadNat
operation to enable loading genericBoundedNat
s into runtime values (#1763) (6f035d6), closes #1629MakeError
op (#2377) (909a794), closes #1863StringVal
to hugr-py (#1818) (b05a419)repeat
andscan
ops (#1633) (649589c), closes #1627Package.to_str
/to_bytes
(#1980) (44deda1)hugr-py
(#2148) (ef8ea5e)BorrowArray
inhugr-py
(#2425) (fdb675f), closes #2406StaticArray
to standard extensions (#1985) (cf860f3), closes #1984to/from_bytes/str
to Hugr, using envelopes (#2228) (9985143)Term
(#2360) (292af80)hugr-model
and envelope support. (#2026) (a16389f)hugr-model
. (#1959) (25df063)hugr-model
. (#2031) (5dd1f96)collections
extension tocollections.list
(#1764) (eef239f)extension_reqs
toruntime_reqs
(#1776) (5f5bce4)Lift
withBarrier
(#1952) (4e6b6d8)hugr-model
as metadata. (#2027) (09de9e3)TypeArg::Sequence
into tuples and lists. (#2140) (cc4997f)Bug Fixes
Call
andLoadConst
nodes inhugr-py
. (#2429) (6a0e270)LoadFunction::signature
withLoadFunction::instantiation
(#1756) (5b50d1d)Value
s and custom consts (#1779) (080eaae)FixedHugr
encoding (#2283) (2c8cbb9), closes #2282Performance Improvements
Node
to avoid linear update cost (#2288) (84fb200)Reverts
Documentation
TypeDef
example (#2268) (ede8e7b)This PR was generated with Release Please. See documentation.