Skip to content
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

chore!: bump hugr version to 0.10.0 #508

Merged
merged 7 commits into from
Jul 29, 2024

Conversation

doug-q
Copy link
Contributor

@doug-q doug-q commented Jul 25, 2024

We remove the cli of tket2-hseries, as the upstream API has changed and
we no longer expect to use this.

BREAKING CHANGE: increased minimum required version of hugr to 0.9.0

@doug-q doug-q force-pushed the doug/draft-bump-hugr-no-custom-type-arg branch from d52fe98 to ba3e2c6 Compare July 25, 2024 11:33
@doug-q doug-q changed the title Doug/draft bump hugr no custom type arg chore! bump hugr version to 0.9.0 Jul 25, 2024
@doug-q doug-q changed the title chore! bump hugr version to 0.9.0 chore!: bump hugr version to 0.9.0 Jul 25, 2024
We remove the cli of tket2-hseries, as the upstream API has changed and
we no longer expect to use this.
@doug-q doug-q force-pushed the doug/draft-bump-hugr-no-custom-type-arg branch from 70adc7a to 7f564c4 Compare July 25, 2024 11:37
.gitignore Show resolved Hide resolved
tket2-hseries/src/cli.rs Outdated Show resolved Hide resolved
return Err(serde_yaml::Error::custom(
"Opaque TKET1 operation did not have a yaml-encoded type argument.",
)
.into());
};
let op = serde_yaml::from_value(arg.value.clone())?;
let op = serde_yaml::from_str(arg)?;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
let op = serde_yaml::from_str(arg)?;
let op = serde_json::from_str(arg)?;

You will also have to replace _yaml by _json in the custom error a couple lines above, and serde_yaml::Error with serde_json::Error in the OpConvertError definition on serialize/pytket.rs:213

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After that we should be able to drop the serde_yaml dependency.

@aborgna-q
Copy link
Collaborator

We also need to recompile the included ECC sets because of the breaking serialisation version bump.

@aborgna-q aborgna-q changed the title chore!: bump hugr version to 0.9.0 chore!: bump hugr version to 0.10.0 Jul 25, 2024
@doug-q doug-q marked this pull request as ready for review July 29, 2024 13:09
@doug-q doug-q requested a review from a team as a code owner July 29, 2024 13:09
Copy link

codecov bot commented Jul 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.73%. Comparing base (e272cf7) to head (6b9a44f).

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #508       +/-   ##
===========================================
+ Coverage   83.49%   96.73%   +13.23%     
===========================================
  Files          64       17       -47     
  Lines        6648      521     -6127     
  Branches     6127        0     -6127     
===========================================
- Hits         5551      504     -5047     
+ Misses        817       17      -800     
+ Partials      280        0      -280     
Flag Coverage Δ
python 96.73% <100.00%> (ø)
rust ?

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.

Copy link
Collaborator

@aborgna-q aborgna-q left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Cargo.toml Outdated
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Drop serde_yaml from here too

@doug-q doug-q enabled auto-merge July 29, 2024 13:29
@doug-q doug-q added this pull request to the merge queue Jul 29, 2024
Merged via the queue into main with commit eca258b Jul 29, 2024
16 checks passed
@doug-q doug-q deleted the doug/draft-bump-hugr-no-custom-type-arg branch July 29, 2024 13:34
This was referenced Jul 29, 2024
github-merge-queue bot pushed a commit that referenced this pull request Aug 1, 2024
🤖 I have created a release *beep* *boop*
---


<details><summary>tket2-py: 0.2.0</summary>

##
[0.2.0](tket2-py-v0.1.0...tket2-py-v0.2.0)
(2024-08-01)


### ⚠ BREAKING CHANGES

* increased minimum required version of hugr to 0.9.0
* `.rwr` ECC files generated with older versions are no longer
supported. Please recompile them, or compress the file with `zstd`.

### Features

* Add timeout options and stats to Badger
([#496](#496))
([32a9885](32a9885))
* Compress binary ECCs using zlib
([#498](#498))
([d9a713c](d9a713c))
* Expose advanced Badger timeout options to tket2-py
([#506](#506))
([fe7d40e](fe7d40e))
* Move the compiled eccs to a separate package
([#517](#517))
([7247cc6](7247cc6))


### Bug Fixes

* Recompile ecc sets after
[#441](#441)
([#484](#484))
([1122fa4](1122fa4))


### Miscellaneous Chores

* bump hugr version to 0.10.0
([#508](#508))
([eca258b](eca258b))
</details>

<details><summary>tket2-eccs: 0.1.0</summary>

## 0.1.0 (2024-08-01)


### Features

* Move the compiled eccs to a separate package
([#517](#517))
([7247cc6](7247cc6))
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: Agustín Borgna <121866228+aborgna-q@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants