Skip to content
This repository was archived by the owner on Jan 26, 2026. It is now read-only.

Add Python 3.11#93

Merged
sgillies merged 7 commits intomainfrom
py311-take2
Oct 13, 2022
Merged

Add Python 3.11#93
sgillies merged 7 commits intomainfrom
py311-take2

Conversation

@sgillies
Copy link
Member

And upgrade GEOS to 3.11.

@sgillies sgillies self-assigned this Oct 11, 2022
Copy link
Contributor

@EwoutH EwoutH left a comment

Choose a reason for hiding this comment

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

Thanks for testing this! I have a few suggestions, left in review comments.

I would also suggest updating actions/checkout to v3 and actions/setup-python to v4.

Furthermore I think the python-version on line 45 needs to be ${{ matrix.python }}. Now it uses Python 3.9 for all jobs.

MB_PYTHON_VERSION: "${{ matrix.python }}"
MB_ML_VER: "2014"
BUILD_DEPENDS: "oldest-supported-numpy cython==0.29.28 wheel==0.34.2"
BUILD_DEPENDS: "oldest-supported-numpy cython>=0.29 wheel==0.34.2"
Copy link
Contributor

Choose a reason for hiding this comment

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

Latest Cython and wheel versions to ensure good Python 3.11 compatibility.

Suggested change
BUILD_DEPENDS: "oldest-supported-numpy cython>=0.29 wheel==0.34.2"
BUILD_DEPENDS: "oldest-supported-numpy cython>=0.29.32 wheel>=0.37"

@EwoutH
Copy link
Contributor

EwoutH commented Oct 11, 2022

As for the error on Python 3.8, it seems like numpy==1.17.3 is installed (and required) by oldest-supported-numpy, and then overridden by a second NumPy install which needs to be >=1.18. I can't see where that second >=1.18 requirement comes from, however (maybe a dependency?)

Linux: remove sudo
Macos: 10.15
@jorisvandenbossche
Copy link

I can't see where that second >=1.18 requirement comes from, however (maybe a dependency?)

That's from rasterio itself: https://github.com/rasterio/rasterio/blob/5cf71dc806adc299108543def00647845ab4fc42/setup.py#L270

@EwoutH
Copy link
Contributor

EwoutH commented Oct 13, 2022

All green! ✔️

@sgillies sgillies marked this pull request as ready for review October 13, 2022 20:25
@sgillies sgillies merged commit 0edf02f into main Oct 13, 2022
@sgillies sgillies deleted the py311-take2 branch October 13, 2022 20:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants