Skip to content
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
merged 9 commits into from
Sep 24, 2024

Conversation

jorisvandenbossche
Copy link
Member

No description provided.

- "osgeo/gdal:ubuntu-small-3.5.3" # python 3.8.10
- "osgeo/gdal:ubuntu-small-3.4.3" # python 3.8.10
- "osgeo/gdal:ubuntu-small-3.5.3" # python 3.8.10?
- "osgeo/gdal:ubuntu-small-3.4.3" # python 3.8.10?
Copy link
Member

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 and osgeo/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.

Copy link
Member Author

@jorisvandenbossche jorisvandenbossche Sep 16, 2024

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.

Copy link
Member Author

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 ..

Copy link
Member Author

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?

Copy link
Member Author

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

Copy link
Member Author

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)

Copy link
Member

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.

Copy link
Member

@brendan-ward brendan-ward left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please add a note to the changelog that Python >= 3.9 is now required?

CHANGES.md Outdated Show resolved Hide resolved
@brendan-ward
Copy link
Member

@jorisvandenbossche did you want this to go into the upcoming 0.10? It looks very close, and that would be a good time to update required python versions...

@jorisvandenbossche
Copy link
Member Author

Yes, I missed your comment, and update this now. Should indeed be ready, and I think good to include in the release.

@brendan-ward brendan-ward merged commit 5543891 into geopandas:main Sep 24, 2024
54 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants