-
-
Notifications
You must be signed in to change notification settings - Fork 553
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
Upgrade pplpy to 0.8.9 #36161
Upgrade pplpy to 0.8.9 #36161
Conversation
Lots of test failures |
Indeed. I do not know what happens. It looks like that the Cython compilation happened with language_level=2. |
Many of the failures have nothing to do with cython, it's an actual bug in pplpy introduced in sagemath/pplpy@5fa3580 More precisely, in the |
Indeed, |
The failures in |
Hmm... this should have been catched by the pplpy doctest (https://github.com/sagemath/pplpy/blob/master/ppl/linear_algebra.pyx#L1192) >>> from ppl import Variable
>>> from gmpy2 import mpz
>>> x = Variable(0)
>>> mpz(3) * x * mpz(5) |
I indeed misinterpreted https://cython.readthedocs.io/en/latest/src/userguide/special_methods.html#arithmetic-methods (which affects |
This was correctly interpreted, but works only with Cython>=3.0.0 which is not the default version in sage. This explains why doctests pass in conda. |
Hopefully fixed in sagemath/pplpy#27 |
Can confirm that it fixes all issues in the downstream Arch sagemath package |
64a11a8
to
525dedd
Compare
Documentation preview for this PR (built with commit 525dedd; changes) is ready! 🎉 |
sagemathgh-36161: Upgrade pplpy to 0.8.9 Upgrade the standard package pplpy to version 0.8.9 (released on PyPI https://pypi.org/project/pplpy/0.8.9/) ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> <!-- If your change requires a documentation PR, please link it appropriately --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> <!-- Feel free to remove irrelevant items. --> - [x] The title is concise, informative, and self-explanatory. - [x] The description explains in detail what this PR is about. - [ ] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation accordingly. URL: sagemath#36161 Reported by: Vincent Delecroix Reviewer(s):
Upgrade the standard package pplpy to version 0.8.9 (released on PyPI https://pypi.org/project/pplpy/0.8.9/)
📝 Checklist