Skip to content

Commit 414b6b2

Browse files
keewisdcherian
andauthored
run CI on python=3.13 (#9681)
* don't install `dask` reason: `dask-expr` depends on `pyarrow`, which doesn't support python 3.13 yet * don't install `pydap` reason: depends on `webob`, which makes use of `cgi`, a stdlib that got removed in python 3.13 * run CI on python 3.13 * same for windows * classifier * whats-new * fix bad merge * try installing `dask` + `distributed` * move the whats-new entry * Update .github/workflows/ci.yaml * explicitly install `pyarrow` * install `numba` and packages depending on it * More to 3.13, prep for 3.14, bump all-but-dask to 3.12 * comment out sparse * fix whats-new --------- Co-authored-by: Deepak Cherian <[email protected]> Co-authored-by: Deepak Cherian <[email protected]>
1 parent 1189240 commit 414b6b2

File tree

5 files changed

+12
-9
lines changed

5 files changed

+12
-9
lines changed

.github/workflows/ci.yaml

+8-9
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
matrix:
4848
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
4949
# Bookend python versions
50-
python-version: ["3.10", "3.12"]
50+
python-version: ["3.10", "3.13"]
5151
env: [""]
5252
include:
5353
# Minimum python version:
@@ -59,14 +59,13 @@ jobs:
5959
os: ubuntu-latest
6060
# Latest python version:
6161
- env: "all-but-numba"
62-
python-version: "3.12"
62+
python-version: "3.13"
6363
os: ubuntu-latest
6464
- env: "all-but-dask"
65-
# Not 3.12 because of pint
66-
python-version: "3.11"
65+
python-version: "3.12"
6766
os: ubuntu-latest
6867
- env: "flaky"
69-
python-version: "3.12"
68+
python-version: "3.13"
7069
os: ubuntu-latest
7170
steps:
7271
- uses: actions/checkout@v4
@@ -78,10 +77,10 @@ jobs:
7877
7978
if [[ ${{ matrix.os }} == windows* ]] ;
8079
then
81-
if [[ ${{ matrix.python-version }} != "3.13" ]]; then
80+
if [[ ${{ matrix.python-version }} != "3.14" ]]; then
8281
echo "CONDA_ENV_FILE=ci/requirements/environment-windows.yml" >> $GITHUB_ENV
8382
else
84-
echo "CONDA_ENV_FILE=ci/requirements/environment-windows-3.13.yml" >> $GITHUB_ENV
83+
echo "CONDA_ENV_FILE=ci/requirements/environment-windows-3.14.yml" >> $GITHUB_ENV
8584
fi
8685
elif [[ "${{ matrix.env }}" != "" ]] ;
8786
then
@@ -98,10 +97,10 @@ jobs:
9897
echo "PYTEST_ADDOPTS=-W default" >> $GITHUB_ENV
9998
fi
10099
else
101-
if [[ ${{ matrix.python-version }} != "3.13" ]]; then
100+
if [[ ${{ matrix.python-version }} != "3.14" ]]; then
102101
echo "CONDA_ENV_FILE=ci/requirements/environment.yml" >> $GITHUB_ENV
103102
else
104-
echo "CONDA_ENV_FILE=ci/requirements/environment-3.13.yml" >> $GITHUB_ENV
103+
echo "CONDA_ENV_FILE=ci/requirements/environment-3.14.yml" >> $GITHUB_ENV
105104
fi
106105
fi
107106

ci/requirements/environment-3.13.yml ci/requirements/environment-3.14.yml

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ dependencies:
3333
- pip
3434
- pooch
3535
- pre-commit
36+
- pyarrow # pandas raises a deprecation warning without this, breaking doctests
3637
- pydap
3738
- pytest
3839
- pytest-cov

doc/whats-new.rst

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ New Features
2323
~~~~~~~~~~~~
2424
- Allow kwargs in :py:meth:`DataTree.map_over_datasets` and :py:func:`map_over_datasets` (:issue:`10009`, :pull:`10012`).
2525
By `Kai Mühlbauer <https://github.com/kmuehlbauer>`_.
26+
- support python 3.13 (no free-threading) (:issue:`9664`, :pull:`9681`)
27+
By `Justus Magin <https://github.com/keewis>`_.
2628

2729
Breaking changes
2830
~~~~~~~~~~~~~~~~

pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ classifiers = [
1212
"Programming Language :: Python :: 3.10",
1313
"Programming Language :: Python :: 3.11",
1414
"Programming Language :: Python :: 3.12",
15+
"Programming Language :: Python :: 3.13",
1516
"Topic :: Scientific/Engineering",
1617
]
1718
description = "N-D labeled arrays and datasets in Python"

0 commit comments

Comments
 (0)