-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
MAINT: drop Python 3.8 support #473
Merged
brendan-ward
merged 9 commits into
geopandas:main
from
jorisvandenbossche:drop-python-38
Sep 24, 2024
Merged
Changes from 1 commit
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
cbdd6d5
MAINT: drop Python 3.8 support
jorisvandenbossche 9f82eec
try installing python 3.9 with uv
jorisvandenbossche 6a1992e
try to install python 3.9 with apt and deadsnakes
jorisvandenbossche 3880892
use sudo?
jorisvandenbossche e409edc
ensure add-apt-repository is available
jorisvandenbossche 880c63e
cleanup
jorisvandenbossche 494485b
add changelog
jorisvandenbossche c04b9ed
Update CHANGES.md
jorisvandenbossche 3db6201
Merge remote-tracking branch 'upstream/main' into drop-python-38
jorisvandenbossche File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I just pulled
osgeo/gdal:ubuntu-small-3.4.3
andosgeo/gdal:ubuntu-small-3.5.3
locally and confirmed they have 3.8.10.We could use uv's python management to bootstrap Python 3.9 instead of using the system one from GDAL Docker image for these tests.
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.
Yeah, I just added the question mark so that I could comment on those lines ;)
I was also thinking doing something similar as we do in the release workflow using uv, but then indeed installing another python version.
Another option would be to use
apt
to install another python version from the deadsnakes ppa (in other projects we also use that to install a non-system-supported python version in those cases).Given we already are using uv (also in this workflow), will first give that a go.
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.
One thing I don't understand from the current failure on the docker build is why
uv
was trying to use Python 3.13.0rc2 for those older images ..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.
Maybe because it noticed from pyproject.toml that the available python 3.8 would not work for this project?
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.
OK, @brendan-ward I tried both approaches (for the gdal 3.4 vs 3.5 images), and when using uv to get python 3.9, we still get the same error (that I don't really understand) about "clang" when building pyogrio (for some reason it tries to use clang for building instead of gcc? some consequence of how the python from uv is built?)
When the python is installed with the deadsnakes ppa, it also gets picked up automatically by uv but then building goes fine
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.
(updated to have both use the ppa approach)
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.
Thanks for trying it both ways! Not sure why the uv version of python didn't work; it works properly when I try to build within these containers locally (Arm64 containers on MacOS M1 host).
Installing python via deadsnakes ppa is just fine too.