Skip to content

Commit

Permalink
compat: Python 3.13 (#775)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro authored Dec 16, 2024
1 parent b0618a3 commit 2df1d86
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,15 @@ jobs:
run: |
MATRIX=$(jq -nsc '{
"os": ["ubuntu-latest", "macos-latest", "windows-latest"],
"environment": ["test-310", "test-312"],
"environment": ["test-310", "test-312", "test-313"],
}')
echo "MATRIX=$MATRIX" >> $GITHUB_ENV
- name: Set test matrix with 'full' option
if: env.MATRIX_OPTION == 'full'
run: |
MATRIX=$(jq -nsc '{
"os": ["ubuntu-latest", "macos-latest", "windows-latest"],
"environment": ["test-310", "test-311", "test-312"]
"environment": ["test-310", "test-311", "test-312", "test-313"]
}')
echo "MATRIX=$MATRIX" >> $GITHUB_ENV
- name: Set test matrix with 'downstream' option
Expand Down
44 changes: 43 additions & 1 deletion pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ USE_PYGEOS = "0"
test-310 = ["py310", "test-core", "test-unit-task", "test", "example", "test-example", "download-data"]
test-311 = ["py311", "test-core", "test-unit-task", "test", "example", "test-example", "download-data"]
test-312 = ["py312", "test-core", "test-unit-task", "test", "example", "test-example", "download-data"]
test-core = ["py312", "test-unit-task", "test-core"]
test-313 = ["py313", "test-core", "test-unit-task", "test-3.13", "example-3.13", "test-example", "download-data"]
test-core = ["py313", "test-unit-task", "test-core"]
test-ui = ["py312", "test-core", "test", "test-ui", "download-data"]
docs = ["py311", "example", "doc", "download-data"]
build = ["py311", "build"]
Expand Down Expand Up @@ -45,6 +46,15 @@ python = "3.11.*"
[feature.py312.dependencies]
python = "3.12.*"

[feature.py312.activation.env]
COVERAGE_CORE = "sysmon"

[feature.py313.dependencies]
python = "3.13.*"

[feature.py313.activation.env]
COVERAGE_CORE = "sysmon"

[feature.example.dependencies]
bokeh_sampledata = "*"
datashader = "*"
Expand All @@ -60,6 +70,21 @@ shapely = "*"
xarray = "*"
xesmf = "*"

[feature."example-3.13".dependencies]
bokeh_sampledata = "*"
# datashader = "*"
fiona = "*"
geopandas-base = "*"
iris = ">=3.5"
matplotlib-base = ">2.2"
mock = "*"
netcdf4 = "*"
pandas = "*"
scipy = "*"
shapely = "*"
xarray = "*"
xesmf = "*"

[feature.download-data.tasks]
download-data = 'python scripts/download_data.py'

Expand Down Expand Up @@ -102,6 +127,23 @@ scipy = "*"
shapely = "*"
xarray = "*"

[feature."test-3.13".dependencies]
cftime = "*"
# datashader = "*"
filelock = "*"
fiona = "*"
geopandas-base = "*"
iris = ">=3.5"
matplotlib-base = ">2.2"
nbval = "*"
netcdf4 = "*"
pandas = "*"
pyviz_comms = "*"
rioxarray = "*"
scipy = "*"
shapely = "*"
xarray = "*"

[feature.test-example.tasks]
test-example = 'pytest -n logical --dist loadscope --nbval-lax examples'

Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Operating System :: OS Independent",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
Expand Down

0 comments on commit 2df1d86

Please sign in to comment.