Closed mgorny closed 7 months ago
Oh, sorry, I was looking at the wrong argument. It's probably https://foss.heptapod.net/pypy/pypy/-/issues/3168; i.e. PyUnicode_FSConverter
not handling Path
objects.
Could you change CI to use pypy-3.10-nightly, pypy-3.9-nightly and ping me on CI failures? https://github.com/iustin/pyxattr/blob/1d0427598f3f3b310a118b1acd5f7b19eab1517b/.github/workflows/ci.yml#L35-L37
I added handling for Path
objects to latest nightlies.
I've switch to pypy-3.9-nightly and 3.10-nightly. The run passed: https://github.com/iustin/pyxattr/actions/runs/6982967019.
You can always convert a Path
object to string with str(Path(...))
and you are done.
@iustin you may want to switch back to the last stable release which contains the fix I mentioned above, since using nightlies may be noisy (no guarantee they work all the time)
@iustin you may want to switch back to the last stable release which contains the fix I mentioned above, since using nightlies may be noisy (no guarantee they work all the time)
I was actually going to ask about that, since I had to disable 3.10-nightly yesterday.
Is there a canonical list of the stable releases?
There are a few :)
The list of released downloads as a json file (consumed by the python setup github action) is here, and the downloads themselves are here
The changelogs are here, and you can see the fix for this issue in the version-specific changelog.
I've re-enabled pypy-3.10, and moved 3.9 from nightly to well, no nightly.
However, it's still not clear to me how to read the list of releases. E.g. from this snippet:
{
"pypy_version": "7.3.15",
"python_version": "3.9.18",
"stable": true,
"latest_pypy": true,
"date": "2024-01-15",
…
How do you get to a valid python-version: pypy-3.9
? Maybe more to the point, how can I subscribe and know when new stable versions are released? Is there a `pypy-latest' but stable?
I've enabled PathLib tests under pypy 3.10, which means it now runs all tests that CPython does. I'll mark this issue closed, now. Thanks all!
how can I subscribe and know when new stable versions are released
You can get notified of changes to the download site via something like https://visualping.io/
Well, yes, thanks, but I was hoping that there would be something built-in to GitHub actions marketplace, or similar. All good, I can periodically check myself.
I think the line in question is:https://github.com/iustin/pyxattr/blob/1d0427598f3f3b310a118b1acd5f7b19eab1517b/xattr.c#L439
I suppose CPython implicitly convertspathlib.Path
to a string, whereas PyPy throws an error.CC @mattip