-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
gnatcoll-python3: upgrade from Python 3.9 to Python 3.12 #350003
Conversation
It looks like there are upstream commits to support Python 3.11 and 3.12. It’d be nice if we could use them given how far behind the release is. Possible options include |
Looks like by including an intermediate patch they might apply cleanly. I'll update the PR. |
c2430f4
to
907ab6b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wonderful, thank you! Forgive me for a couple nits; not all are essential but since the patch fetches will need touching I’ve commented with them all.
I'm not really sure this is safe to do. Upgrading the python interpreter used should be able to break user code. Since upstream says they support up to 3.10 and recommend that, it seems reasonable to upgrade to that point, but not necessarily beyond. |
The gnatcoll bindings site suggests using the highest supported Python version, which is currently 3.10. Additional patches from upstream bump the support to Python 3.12.
907ab6b
to
6f1e7c6
Compare
On the other hand, it looks like upstream just didn't push a release out. I'll let you and @emilazy tell me what you prefer. |
I have also opened AdaCore/gnatcoll-bindings#21 (comment) |
Hopefully upstream will tag a new release soon. If not, I think given that they’re clearly willing to do so with these patches but just haven’t gotten around to it yet speaks to it being okay for us to apply them; they are quite trivial in any case. Any Python bump could potentially break user code but of course CPython 3.9 will not be in Nixpkgs forever and given that upstream specifically recommends using the latest Python it seems reasonable to follow that advice. |
What do you know… https://github.com/AdaCore/gnatcoll-bindings/releases/tag/v25.0.0 I'll try and do a |
Yes, in response to my issue.
Ok, I'll let you do that since you're the maintainer, and I'll close this issue. |
The gnatcoll bindings site suggests using the highest supported Python version, which is currently 3.10. See https://github.com/AdaCore/gnatcoll-bindings/blob/master/python3/README.md. Additional patches from upstream bump the support to Python 3.12.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.