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

update to cython 3 #390

Merged
merged 4 commits into from
May 9, 2024
Merged

update to cython 3 #390

merged 4 commits into from
May 9, 2024

Conversation

emlys
Copy link
Member

@emlys emlys commented May 7, 2024

Update to Cython 3. Also fixes the github actions workflow for the new mac runners.

@@ -8,8 +8,7 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, macos-latest]
python-version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12"]
python-arch: [x64]
Copy link
Member Author

Choose a reason for hiding this comment

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

python-arch isn't needed here, and it caused an issue with the new ARM64 mac runners.

Copy link
Member

Choose a reason for hiding this comment

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

I bet this is a holdover from when we were still doing x86 builds. Makes sense to remove!

@@ -8,8 +8,7 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, macos-latest]
python-version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12"]
Copy link
Member Author

Choose a reason for hiding this comment

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

python 3.7 is end-of-life, we already removed it from the test workflow. And setup-python couldn't find an ARM64 python 3.7 distribution.

@emlys emlys requested a review from phargogh May 8, 2024 21:27
@emlys emlys self-assigned this May 8, 2024
@emlys emlys marked this pull request as ready for review May 8, 2024 21:27
Copy link
Member

@phargogh phargogh left a comment

Choose a reason for hiding this comment

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

Looks great to me, I just had one comment about dropping explicit support for python 3.7.

@@ -8,8 +8,7 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, macos-latest]
python-version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12"]
python-arch: [x64]
Copy link
Member

Choose a reason for hiding this comment

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

I bet this is a holdover from when we were still doing x86 builds. Makes sense to remove!

@@ -10,6 +10,7 @@ Unreleased Changes
called with an invalid resampling algorithm. We now fall back to the
underlying GDAL functions' error messages.
https://github.com/natcap/pygeoprocessing/issues/387
* Updated to Cython 3.
Copy link
Member

Choose a reason for hiding this comment

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

If we are removing testing/wheel-building support for python 3.7, should that also be noted here in HISTORY and also removed from the setup.py trove classifiers?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ooh you're right

@emlys emlys requested a review from phargogh May 9, 2024 00:05
Copy link
Member

@phargogh phargogh left a comment

Choose a reason for hiding this comment

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

Code changes look good to me, thanks @emlys ! Just waiting for the tests to pass.

@phargogh phargogh merged commit 1e2de27 into natcap:main May 9, 2024
90 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