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

fixed mpmath version to 1.3.0 due to incompatibility #6477

Merged
merged 5 commits into from
Feb 28, 2024

Conversation

kenya-sk
Copy link
Contributor

Dealing with CI pipeline failures following upgrades of incompatible packages. (detail issues: #6475)

The error location is Dockerfile in line 26. This one downloads the package from PyPI, but my permission do not allow me to update the package. Therefore, I have changed the version of mpmath in my local environment, and I am hoping that the test will pass.

@CirqBot CirqBot added the Size: XS <10 lines changed label Feb 26, 2024
Copy link
Collaborator

@pavoljuhas pavoljuhas left a comment

Choose a reason for hiding this comment

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

Looks good with a small change.

Please feel free to convert from draft. The main branch currently skips the failing test so the CI should pass for this PR.
Once this PR is in we can re-enable the test, because mpmath pinning will be in effect in the cirq-core pre-release.

@@ -2,6 +2,7 @@

duet>=0.2.8
matplotlib~=3.0
mpmath~=1.3.0
Copy link
Collaborator

Choose a reason for hiding this comment

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

Thank you for tracking this down!

I think we can use a less restrictive mpmath spec to be in sync with sympy requirement for mpmath>=0.19.

Suggested change
mpmath~=1.3.0
# Temporary fix for https://github.com/sympy/sympy/issues/26273
# TODO: remove once `pip install --pre sympy` works in a fresh environment
mpmath<=1.3.*

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@pavoljuhas
Thank you for comment!
I have reflected the comment and confirmed that it passes the test.

@kenya-sk kenya-sk marked this pull request as ready for review February 28, 2024 02:23
@kenya-sk kenya-sk requested review from vtomole, cduck and a team as code owners February 28, 2024 02:23
@pavoljuhas pavoljuhas enabled auto-merge (squash) February 28, 2024 07:25
Copy link

codecov bot commented Feb 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.75%. Comparing base (02d29a9) to head (c709243).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6477   +/-   ##
=======================================
  Coverage   97.75%   97.75%           
=======================================
  Files        1105     1105           
  Lines       94925    94925           
=======================================
  Hits        92793    92793           
  Misses       2132     2132           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pavoljuhas pavoljuhas merged commit e11132e into quantumlib:main Feb 28, 2024
33 of 34 checks passed
kenya-sk added a commit to kenya-sk/Cirq that referenced this pull request Feb 28, 2024
pavoljuhas added a commit to pavoljuhas/Cirq that referenced this pull request Mar 29, 2024
…quantumlib#6477)"

Not needed after quantumlib#6534 as cirq pre-releases are installed
with stable dependencies.

This reverts commit e11132e.

Related to quantumlib#6475
pavoljuhas added a commit that referenced this pull request Mar 29, 2024
Version limit on mpmath is unnecessary after #6534 because
cirq pre-releases are now installed with stable dependencies.

This reverts commit e11132e (#6477).

Related to #6475
jselig-rigetti pushed a commit to jselig-rigetti/Cirq that referenced this pull request May 28, 2024
Version limit on mpmath is unnecessary after quantumlib#6534 because
cirq pre-releases are now installed with stable dependencies.

This reverts commit e11132e (quantumlib#6477).

Related to quantumlib#6475
harry-phasecraft pushed a commit to PhaseCraft/Cirq that referenced this pull request Oct 31, 2024
Version limit on mpmath is unnecessary after quantumlib#6534 because
cirq pre-releases are now installed with stable dependencies.

This reverts commit e11132e (quantumlib#6477).

Related to quantumlib#6475
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Size: XS <10 lines changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants