From 96ec64cecc893dc446419dd6d065b5c98ac6e82d Mon Sep 17 00:00:00 2001 From: Seyon Sivarajah Date: Tue, 15 Oct 2024 16:52:03 +0100 Subject: [PATCH] chore: update tket2-py to hugr-py 0.9 --- tket2-py/pyproject.toml | 2 +- tket2-py/tket2/circuit/build.py | 3 ++- uv.lock | 8 ++++---- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/tket2-py/pyproject.toml b/tket2-py/pyproject.toml index 348e99dd..553e54bd 100644 --- a/tket2-py/pyproject.toml +++ b/tket2-py/pyproject.toml @@ -27,7 +27,7 @@ classifiers = [ dependencies = [ 'pytket >= 1.29.2, < 2', - 'hugr >= 0.8.0, < 0.9', + 'hugr >= 0.9.0, < 0.10', 'tket2_eccs >= 0.2.0, < 0.3', ] diff --git a/tket2-py/tket2/circuit/build.py b/tket2-py/tket2/circuit/build.py index 424a9fe0..0d9a540e 100644 --- a/tket2-py/tket2/circuit/build.py +++ b/tket2-py/tket2/circuit/build.py @@ -2,7 +2,8 @@ from typing import Iterable from hugr import tys, ops -from hugr.ext import Package, Extension +from hugr.package import Package +from hugr.ext import Extension from hugr.ops import ComWire, Command from hugr.std.float import FLOAT_T from hugr.build.tracked_dfg import TrackedDfg diff --git a/uv.lock b/uv.lock index cd404b6c..d8097f5e 100644 --- a/uv.lock +++ b/uv.lock @@ -156,7 +156,7 @@ wheels = [ [[package]] name = "hugr" -version = "0.8.0" +version = "0.9.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "graphviz" }, @@ -164,9 +164,9 @@ dependencies = [ { name = "pydantic-extra-types" }, { name = "semver" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/fc/6b/cf9f2d423bfe6c1fd9055b0cefe9a23d77be1cbbc91c68aba575ccae8d34/hugr-0.8.0.tar.gz", hash = "sha256:6340a5014735414115795e798723ca2fbef29b249c20c2d3cab161d3e0797145", size = 124123 } +sdist = { url = "https://files.pythonhosted.org/packages/7a/ea/faf7545e3d3ffd4bc725bfcd622c60303e8cde0e33d847b0c7bcf1a3bb7c/hugr-0.9.0.tar.gz", hash = "sha256:ddb5adc674192520499e624e8f4650f465e059ab3f9048550c9c147fc9bf239a", size = 126531 } wheels = [ - { url = "https://files.pythonhosted.org/packages/24/09/c14abb6c5b1b60c9e17c9a8781ad915e8d1813ba89dc92115ef37276b046/hugr-0.8.0-py3-none-any.whl", hash = "sha256:b059f3fe92bdeab576f60f2dd01120ff10f125eea61393e014ac18a07fe2d9ac", size = 77637 }, + { url = "https://files.pythonhosted.org/packages/08/ad/b82f6cb95452699c29582cef3daaa2c281f86efd91d1d8d88895c47bb5b8/hugr-0.9.0-py3-none-any.whl", hash = "sha256:703da84a1b2fdb192f4ddce6daf9446dac24fb2377b3b259cced6899733530a5", size = 80011 }, ] [[package]] @@ -790,7 +790,7 @@ dependencies = [ [package.metadata] requires-dist = [ - { name = "hugr", specifier = ">=0.8.0,<0.9" }, + { name = "hugr", specifier = ">=0.9.0,<0.10" }, { name = "pytket", specifier = ">=1.29.2,<2" }, { name = "tket2-eccs", editable = "tket2-eccs" }, ]