Skip to content

Conversation

@hugrbot
Copy link
Collaborator

@hugrbot hugrbot commented Jun 19, 2025

🤖 I have created a release beep boop

0.21.0 (2025-08-04)

⚠ BREAKING CHANGES

  • guppy.compile(foo) and guppy.check(foo) replaced with foo.check() and foo.compile()
  • default HUGR output uses compressed binary encoding.
  • guppylang.tracing.object.GuppyDefinition moved to guppylang.defs.GuppyDefinition guppylang.tracing.object.TypeVarGuppyDefinition moved and renamed to guppylang.defs.GuppyTypeVarDefinition
  • All to_hugr methods on types, arguments, and parameters now require a ToHugrContext CompileableDef.compile_outer now requires a ToHugrContext guppy.hugr_op now passes the compiler context to the function generating the op CheckedFunctionDef now implements MonomorphizableDef instead of CompileableDef CompilerContext.build_compiled_def now requires an instantiation for the definition's type parameters The ToHugrContext protocol now requires two additional methods: type_var_to_hugr and const_var_to_hugr CompilerContext.{compiled, worklist} and CompilationEngine.compiled are now indexed by a tuple of DefId and optional PartiallyMonomorphizedArgs
  • comptime code that previously used constant integers outside i64 will now fail to compile.
  • Capturing closures are now disabled by default. Enabling them requires calling guppylang.enable_experimental_features(), however note that they are not supported throughout the stack.

Features

Bug Fixes

  • Allow array comprehension syntax in comptime functions (#1068) (da8f04a), closes #1067
  • Allow struct redefinitions for Python < 3.13 (#1108) (959a4e4), closes #1107
  • Correctly detect [@custom](https://github.com/custom)_guppy_decorator in nested scopes (#1086) (678583c)
  • Fix diagnostics rendering for comptime entrypoints (#1099) (fdd2676), closes #1097
  • Fix frame lookup for Python 3.12 annotation scopes (#1120) (a69e489), closes #1116
  • Fix hugr conversion and bounds checks on numeric literals (#1100) (73d5e92)
  • Fix Jupyter notebook diagnostic rendering (#1109) (6002474)
  • Fix nested function definitions in Python 3.12 (#1064) (090f920)
  • Stop showing temporary variables in comptime diagnostics (#1112) (63854c5), closes #1111
  • support comptime entrypoint (#1079) (721e3dd)
  • Turn capturing closures into experimental feature (#1065) (a959b18)

Documentation


This PR was generated with Release Please. See documentation.

@codecov-commenter
Copy link

codecov-commenter commented Jun 19, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.99%. Comparing base (b33e065) to head (cd62567).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1042   +/-   ##
=======================================
  Coverage   92.99%   92.99%           
=======================================
  Files         116      116           
  Lines       10807    10807           
=======================================
  Hits        10050    10050           
  Misses        757      757           

☔ 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 branch 10 times, most recently from 4b902cf to 882caff Compare June 30, 2025 13:18
@hugrbot hugrbot changed the title chore(main): release 0.20.1 chore(main): release 0.21.0 Jul 1, 2025
@hugrbot hugrbot force-pushed the release-please--branches--main branch 2 times, most recently from 9062301 to bacad4c Compare July 1, 2025 15:27
@ss2165 ss2165 added this to the guppylang v0.21.0 milestone Jul 2, 2025
@hugrbot hugrbot force-pushed the release-please--branches--main branch 6 times, most recently from 97c9a66 to 80e7429 Compare July 10, 2025 16:04
@hugrbot hugrbot force-pushed the release-please--branches--main branch 6 times, most recently from 817e997 to 37b08d4 Compare July 17, 2025 17:26
@hugrbot hugrbot force-pushed the release-please--branches--main branch 2 times, most recently from 87d1067 to d9b5ba7 Compare July 24, 2025 08:08
@hugrbot hugrbot force-pushed the release-please--branches--main branch 5 times, most recently from 41f4009 to 34e2ccb Compare July 30, 2025 15:38
@hugrbot hugrbot force-pushed the release-please--branches--main branch 6 times, most recently from 1b77ce1 to c996e85 Compare August 4, 2025 15:57
@hugrbot hugrbot force-pushed the release-please--branches--main branch from c996e85 to cd62567 Compare August 4, 2025 17:11
@aborgna-q aborgna-q closed this Aug 5, 2025
@aborgna-q aborgna-q deleted the release-please--branches--main branch August 5, 2025 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

5 participants