-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
ci: test pypy upstream #3743
base: master
Are you sure you want to change the base?
ci: test pypy upstream #3743
Conversation
Hmmm, CMake failing to find PyPy 3.9 but reporting 3.9 is a valid version was not what I was expecting. That works correctly locally. |
This is the local error:
This actually seems correct, the code has a leading indent. Not sure why PyPy < 3.9 likes it, actually. |
Okay, so we should definitely make a PR to fix that leading indent then. |
With that fix, Python tests pass, then the CMake tests fails with:
|
Nice, PyPy, 3.7 and 3.8 are working now. |
3.7 and 3.8 were always working. It's just 3.9 that's broken - via CMake on CI and by |
As far as I can tell, PyPy3.9 has the include file |
I think CMAKE is not finding the include files nor the library for PyPy3.9. |
Yes, but it is finding it for 3.8 & 3.7, AND it is finding it locally on my Mac for 3.9, even though everything should be identical - same pypy download, same cmake, etc... |
Do the tests pass? |
The normal tests pass, then the build tests fail with the error listed above. |
What would be the easiest way to run those specific tests locally? |
Got Edit: clarify which "it" I got. |
I am not seeing any failure with |
Let me revert the last commit, that should get past that test. |
tests: fix leading indent in PyPy code Update noxfile.py Co-authored-by: Matti Picus <matti.picus@gmail.com> Update tests/test_exceptions.py Co-authored-by: Matti Picus <matti.picus@gmail.com> Revert "Update tests/test_exceptions.py" This reverts commit af3061d.
7482ae9
to
89b8d8a
Compare
Ahaha, I bet this is what's breaking CMake: scikit-build/scikit-build#673 (at least it's a start) |
I have this bug in a project currently which i try porting to pypy. Is there any fix for this currently? |
@DarkWingMcQuack the indent is fixed on HEAD. You can install pybind11 from git until the fix is released: |
It should also be available in the |
The library name change in 3.9 is also likely breaking things, though, possibly including all older versions of CMake's FindPython support. I want to look into that before making a release. Might not be fixable from our end, though, for CMake. |
bummer. |
I'm also seeing this error on a CI build, for Python 3.9 [root@bbf72c22780d ~]# "${PYBIN}/pytest" --capture=sys /io/
================================================ test session starts ================================================
platform linux -- Python 3.9.10[pypy-7.3.8-final], pytest-7.1.1, pluggy-1.0.0
rootdir: /io
collecting ... terminate called after throwing an instance of 'pybind11::error_already_set'
what(): IndentationError: ('unexpected indent', ('<string>', 2, 1, ' class pybind11_static_property(property):\n', 2))
Fatal Python error: Aborted |
@nachovizzo The indent is fixed on HEAD. You can install pybind11 from git until the fix is released: pip install git+https://github.com/pybind/pybind11.git. |
Great, already try this and fix the problem. Looking forward to a new release ;) |
Description
Adding a nox test for PyPy upstream before their next release. I think this works on 3.7 and 3.8, though we should see if we still need our workarounds, and fails on PyPy 3.9, but haven't really looked into it more than just adding the tests. One test was regularly xpassing for me. CC @mattip.
Suggested changelog entry: