From 007d3ae9f18b4d3fbc005cf62d8ea2145f7b7aae Mon Sep 17 00:00:00 2001 From: hugrbot Date: Thu, 6 Mar 2025 16:55:38 +0000 Subject: [PATCH] chore(py): release tket2-exts 0.5.0 (#790) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit :robot: I have created a release *beep* *boop* --- ## [0.5.0](https://github.com/CQCL/tket2/compare/tket2-exts-v0.4.0...tket2-exts-v0.5.0) (2025-03-04) ### ⚠ BREAKING CHANGES * To be compatible with Guppy's convention of implicitly returning `self` as the second value of the tuple, the following signatures are updated: ```diff - /// `fn random_int(RNGContext) -> (RNGContext, u32)` + /// `fn random_int(RNGContext) -> (u32, RNGContext)` - /// `fn random_float(RNGContext) -> (RNGContext, f32)` + /// `fn random_float(RNGContext) -> (f32, RNGContext)` - /// `fn random_int_bounded(RNGContext, bound: u32) -> (RNGContext, u32)` + /// `fn random_int_bounded(RNGContext, bound: u32) -> (u32, RNGContext)` ``` ### Bug Fixes * remove type argument from `RNGContext` type, swap returns ([#786](https://github.com/CQCL/tket2/issues/786)) ([633ebd7](https://github.com/CQCL/tket2/commit/633ebd74d71ba81f5b71d6db757b08ea3c959a5d)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- .release-please-manifest.json | 2 +- tket2-exts/CHANGELOG.md | 13 +++++++++++++ tket2-exts/pyproject.toml | 2 +- tket2-exts/src/tket2_exts/__init__.py | 2 +- 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 9e4f1370..d14ac5d7 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,5 +1,5 @@ { "tket2-py": "0.6.1", "tket2-eccs": "0.3.0", - "tket2-exts": "0.4.0" + "tket2-exts": "0.5.0" } diff --git a/tket2-exts/CHANGELOG.md b/tket2-exts/CHANGELOG.md index e2347059..7b28d6f5 100644 --- a/tket2-exts/CHANGELOG.md +++ b/tket2-exts/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## [0.5.0](https://github.com/CQCL/tket2/compare/tket2-exts-v0.4.0...tket2-exts-v0.5.0) (2025-03-04) + + +### ⚠ BREAKING CHANGES + +* To be compatible with Guppy's convention of implicitly returning `self` as the second value of the tuple, the following signatures are updated: ```diff + - /// `fn random_int(RNGContext) -> (RNGContext, u32)` + + /// `fn random_int(RNGContext) -> (u32, RNGContext)` + +### Bug Fixes + +* remove type argument from `RNGContext` type, swap returns ([#786](https://github.com/CQCL/tket2/issues/786)) ([633ebd7](https://github.com/CQCL/tket2/commit/633ebd74d71ba81f5b71d6db757b08ea3c959a5d)) + ## [0.4.0](https://github.com/CQCL/tket2/compare/tket2-exts-v0.3.0...tket2-exts-v0.4.0) (2025-02-20) diff --git a/tket2-exts/pyproject.toml b/tket2-exts/pyproject.toml index d8d32648..535886dc 100644 --- a/tket2-exts/pyproject.toml +++ b/tket2-exts/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "tket2-exts" -version = "0.4.0" +version = "0.5.0" requires-python = ">=3.10" description = "HUGR extension definitions for the tket2 compiler." license = { file = "LICENCE" } diff --git a/tket2-exts/src/tket2_exts/__init__.py b/tket2-exts/src/tket2_exts/__init__.py index f3714e69..5419d0e5 100644 --- a/tket2-exts/src/tket2_exts/__init__.py +++ b/tket2-exts/src/tket2_exts/__init__.py @@ -8,7 +8,7 @@ # This is updated by our release-please workflow, triggered by this # annotation: x-release-please-version -__version__ = "0.4.0" +__version__ = "0.5.0" @functools.cache