Skip to content

Add python 3.13 wheel #146

Closed
Closed

Description

@kasium

python 3.13 is planned to be released on the 2024-10-01. Some days ago the first beta release was published. Early adopters cannot consume it for now when they don't want to build grimp locally. It would be great if you could offer a 3.13 prebuild wheel

Activity

  1. self-assigned this
    on Jun 4, 2024
  2. seddonym commented on Jun 5, 2024

    @seddonym
    Collaborator

    Thanks for requesting this. I've now updated the release steps so next time I do a release, it should 🤞🏻 build a wheel for Python 3.13. I'm not planning to do a release just for that though, it'll have to come along in the next release, hopefully in the next few weeks if not sooner.

    I've also created a PR to formally support Python 3.13 but it's not possible to run the tests yet due to a downstream issue.

  3. kasium commented on Jun 5, 2024

    @kasium
    ContributorAuthor

    Sounds great, thanks a lot!

  4. seddonym commented on Jun 13, 2024

    @seddonym
    Collaborator

    I'm afraid I had to back out the release of the 3.13 wheel as Py03 (a Rust crate which we use to provide Python binding to Rust) doesn't yet support 3.13.

    Example failure.

  5. kasium commented on Jun 14, 2024

    @kasium
    ContributorAuthor

    Seems like the next release of py03 should add support? PyO3/pyo3#4038

  6. seddonym commented on Jun 14, 2024

    @seddonym
    Collaborator

    Thanks for the link. I've subscribed to that issue now so I should be able to add this once they release 0.22.

  7. kasium commented on Jul 9, 2024

    @kasium
    ContributorAuthor

    @seddonym py03 with 3.13 support was released

  8. seddonym commented on Jul 12, 2024

    @seddonym
    Collaborator

    Hmm, I just released Grimp 3.4.1 with support for Python 3.13. But for some reason the wheels are only being built for Windows. E.g. have a look in this job for linux x86_64 - it installs Python 3.13 the Build wheels step only builds wheels for the other Python versions.

    Troubleshooting this kind of thing isn't my strong point, to be perfectly honest. If anyone has any ideas I'm all ears.

  9. kasium commented on Jul 17, 2024

    @kasium
    ContributorAuthor

    I had a short look and what I can see is, that in the linux build job, the following line is logged

    🐍 Found CPython 3.8 at /usr/local/bin/python3.8, CPython 3.9 at /usr/local/bin/python3.9, CPython 3.10 at /usr/local/bin/python3.10, CPython 3.11 at /usr/local/bin/python3.11, CPython 3.12 at /usr/local/bin/python3.12, PyPy 3.9 at /usr/local/bin/pypy3.9, PyPy 3.10 at /usr/local/bin/pypy3.10
    

    In difference for windows

    🐍 Found CPython 3.13 at C:\hostedtoolcache\windows\Python\3.13.0-beta.3\x64\python.exe, CPython 3.12 at C:\hostedtoolcache\windows\Python\3.12.4\x64\python.exe, CPython 3.11 at C:\hostedtoolcache\windows\Python\3.11.9\x64\python.exe, CPython 3.10 at C:\hostedtoolcache\windows\Python\3.10.11\x64\python.exe, CPython 3.9 at C:\hostedtoolcache\windows\Python\3.9.13\x64\python.exe, CPython 3.8 at C:\hostedtoolcache\windows\Python\3.8.10\x64\python.exe
    
    

    According to PyO3/maturin#1960 (comment) and the following comments, there are some version combinations to consider; but I guess we need to wait until 3.13 is officially released

  10. kasium commented on Oct 7, 2024

    @kasium
    ContributorAuthor

    @seddonym 3.13 was released today. Can you please check if you can provide a wheel now?

  11. seddonym commented on Oct 8, 2024

    @seddonym
    Collaborator

    Thanks for the nudge, yes I'll look into this ASAP.

  12. seddonym commented on Oct 8, 2024

    @seddonym
    Collaborator

    Github automatically closed this, reopening until I can see it working!

  13. seddonym commented on Oct 8, 2024

    @seddonym
    Collaborator

    Well, I just released 3.5 and I'm afraid it still isn't including the Python 3.13 wheels, except for Windows 😞 . I'm guessing it's because the setup-python Github action doesn't yet include Python 3.13?

    If anyone has any advice I'm all ears!

    image

    Here's a link to the workflow: https://github.com/seddonym/grimp/actions/runs/11236773243

  14. kasium commented on Oct 9, 2024

    @kasium
    ContributorAuthor

    setup-python just allowed 3.13 :-)

  15. seddonym commented on Oct 9, 2024

    @seddonym
    Collaborator

    I tried setting up this PR just for the purposes of publishing the additional wheels, but no joy. Here's the release workflow.

    The setup-python step does seem to install Python 3.13.0.

    image

    But the build wheels step doesn't for some reason find it.

  16. seddonym commented on Oct 9, 2024

    @seddonym
    Collaborator

    I think the issue might be with Maturin's discovery of Python interpreters.

    The good news is, I tried explicitly setting the interpreter and the wheels have now built and published! https://pypi.org/project/grimp/3.5/#files

    But this was still a very manual process. I'm going to close this ticket for now and will keep an eye on whether it works for the next release.

  17. kasium commented on Oct 9, 2024

    @kasium
    ContributorAuthor

    Thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions