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

Fix errors after stub typing PR #994

Merged
merged 2 commits into from
Sep 1, 2023
Merged

Fix errors after stub typing PR #994

merged 2 commits into from
Sep 1, 2023

Conversation

trvto
Copy link
Contributor

@trvto trvto commented Aug 31, 2023

I made pytket.tests a package to more easily satisfy mypy, but that broke the build wheel and test CI for some reason. This makes pytket.tests not a package again. After reading up here, having tests as a package is not good practice anyway (it would be okay if we had the pytket package under src/pytket instead of just pytket).

Also there is a weird error that occurs only on MacOS 11, where the EdgeType enum takes nonsensical values within the python utils_serialization.py tests test_diag.... As a workaround, return edge type strings in the function Circuit()._dag_data instead of EdgeType enum object.

@trvto
Copy link
Contributor Author

trvto commented Aug 31, 2023

The check that this fixes the wheel build is running here: https://github.com/CQCL/tket/actions/runs/6039343076

@trvto trvto requested a review from cqc-alec August 31, 2023 15:40
Copy link
Collaborator

@cqc-alec cqc-alec left a comment

Choose a reason for hiding this comment

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

Thanks! LGTM as long as the wheel build passes.

Copy link
Collaborator

@cqc-alec cqc-alec left a comment

Choose a reason for hiding this comment

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

Seems some tests are failing, maybe missed some?

Copy link
Collaborator

@cqc-alec cqc-alec left a comment

Choose a reason for hiding this comment

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

Need to fix some other imports?

@trvto trvto force-pushed the fix-pytket-tests branch from 862e326 to e263953 Compare August 31, 2023 15:48
@trvto
Copy link
Contributor Author

trvto commented Aug 31, 2023

Yep I hope I got them all now

cqc-alec
cqc-alec previously approved these changes Aug 31, 2023
@trvto trvto changed the title make tests not a package again Fix errors after stub typing PR Sep 1, 2023
@trvto trvto merged commit ca98542 into develop Sep 1, 2023
34 checks passed
@trvto trvto deleted the fix-pytket-tests branch September 1, 2023 12:14
cqc-alec added a commit that referenced this pull request Sep 2, 2023
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