-
Notifications
You must be signed in to change notification settings - Fork 230
Add support for Python 3.13 #3490
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
Changes from 8 commits
f7462f6
92d5945
bfcec3a
f545e17
40545a0
47eaad8
642a538
6e74524
a06f906
ada48f3
90d9b42
f9fa6d7
742980e
df35168
93273cd
631444f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,7 +51,7 @@ jobs: | |
- conda-forge | ||
- nodefaults | ||
create-args: >- | ||
python=3.12 | ||
python=3.13 | ||
gmt=6.5.0 | ||
numpy | ||
pandas | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,7 +50,7 @@ jobs: | |
- conda-forge | ||
- nodefaults | ||
create-args: >- | ||
python=3.12 | ||
python=3.13 | ||
gmt=6.5.0 | ||
numpy | ||
pandas | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,36 +54,36 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ['3.10', '3.12'] | ||
python-version: ['3.10', '3.13'] | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
# Is it a draft Pull Request (true or false)? | ||
isDraft: | ||
- ${{ github.event.pull_request.draft }} | ||
# Only run two jobs (Ubuntu + Python 3.10/3.12) for draft PRs | ||
# Only run two jobs (Ubuntu + Python 3.10/3.13) for draft PRs | ||
exclude: | ||
- os: macos-latest | ||
isDraft: true | ||
- os: windows-latest | ||
isDraft: true | ||
# Pair Python 3.10 with the minimum supported versions of NumPy, pandas, Xarray | ||
# and Python 3.12 with the latest versions of NumPy, pandas, Xarray | ||
# Only install optional packages on Python 3.12 | ||
# and Python 3.13 with the latest versions of NumPy, pandas, Xarray | ||
# Only install optional packages on Python 3.13 | ||
include: | ||
- python-version: '3.10' | ||
numpy-version: '1.24' | ||
pandas-version: '=2.0' | ||
xarray-version: '=2023.04' | ||
optional-packages: '' | ||
- python-version: '3.12' | ||
- python-version: '3.13' | ||
numpy-version: '2.1' | ||
pandas-version: '' | ||
xarray-version: '' | ||
optional-packages: ' contextily geopandas ipython pyarrow rioxarray sphinx-gallery' | ||
optional-packages: ' contextily geopandas ipython rioxarray sphinx-gallery' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can't remove PyArrow in the Python 3.13 job, because we need both pandas<2.2+pyarrow (in Python 3.11) and pandas>=2.2+pyarrow (in Python 3.12 or 3.13) to test the behavior changes in pands 2.2. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I was thinking we could do (after #3606) Python 3.11+pandas=2.1+pyarrow; Python 3.12+pandas=2.2+pyarrow, but anyways, this won't work yet because
Wait for conda-forge/python-gssapi-feedstock#32. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also need to wait for conda-forge/kombu-feedstock#78:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. conda-forge/python-gssapi-feedstock#32 has been superseded by conda-forge/python-gssapi-feedstock#33. So we still need to wait for conda-forge/kombu-feedstock#78. kombu's Python 3.13 support was added in celery/kombu#2052, which first appeared in kombu v5.5.0rc2. kombu v5.5.0rc2 was released two months ago, and there is still no kombu v5.5.0 out. Not sure how long we have to wait. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok, for reference, we applied a workaround for |
||
# The job below is for testing GeoPandas v0.x on Ubuntu. | ||
# The python-version here can't be the versions in the matrix.python-version | ||
# defined above. Otherwise, other jobs will be overridden by this one. | ||
- os: 'ubuntu-latest' | ||
python-version: '3.11' # Can't be 3.10 or 3.12. | ||
python-version: '3.11' # Can't be 3.10 or 3.13. | ||
numpy-version: '1.24' | ||
pandas-version: '=2.1' | ||
xarray-version: '' | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ jobs: | |
# Setup Python environment | ||
- uses: actions/[email protected] | ||
with: | ||
python-version: '3.12' | ||
python-version: '3.13' | ||
|
||
# Install formatting tools | ||
- name: Install formatting tools | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,7 +53,7 @@ jobs: | |
- name: Set up Python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: '3.12' | ||
python-version: '3.13' | ||
|
||
- name: Install dependencies | ||
run: python -m pip install build | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ jobs: | |
- name: Set up Python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: '3.12' | ||
python-version: '3.13' | ||
|
||
- name: Install packages | ||
run: | | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,7 @@ jobs: | |
- name: Set up Python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: '3.12' | ||
python-version: '3.13' | ||
|
||
- name: Install packages | ||
run: | | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ channels: | |
- conda-forge | ||
- nodefaults | ||
dependencies: | ||
- python=3.12 | ||
- python>=3.10 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note that this has changed from |
||
# Required dependencies | ||
- gmt=6.5.0 | ||
- ghostscript=10.04.0 | ||
|
Uh oh!
There was an error while loading. Please reload this page.