Skip to content

Commit 8be9349

Browse files
authored
create separate environment files for python=3.11 (#7469)
* add new environment files for python 3.11 These should be deleted after all the remaining dependencies (cdms2, numba, numbagg, sparse) support python 3.11. * enable python 3.11 * use the special environment files for python 3.11 * officially support `python=3.11`
1 parent 02e6933 commit 8be9349

File tree

4 files changed

+101
-2
lines changed

4 files changed

+101
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
matrix:
4343
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
4444
# Bookend python versions
45-
python-version: ["3.8", "3.10"]
45+
python-version: ["3.8", "3.10", "3.11"]
4646
env: [""]
4747
include:
4848
# Minimum python version:
@@ -67,7 +67,13 @@ jobs:
6767
run: |
6868
echo "TODAY=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
6969
70-
if [[ ${{ matrix.os }} == windows* ]] ;
70+
if [[ "${{matrix.python-version}}" == "3.11" ]]; then
71+
if [[ ${{matrix.os}} == windows* ]]; then
72+
echo "CONDA_ENV_FILE=ci/requirements/environment-windows-py311.yml" >> $GITHUB_ENV
73+
else
74+
echo "CONDA_ENV_FILE=ci/requirements/environment-py311.yml" >> $GITHUB_ENV
75+
fi
76+
elif [[ ${{ matrix.os }} == windows* ]] ;
7177
then
7278
echo "CONDA_ENV_FILE=ci/requirements/environment-windows.yml" >> $GITHUB_ENV
7379
elif [[ "${{ matrix.env }}" != "" ]] ;

ci/requirements/environment-py311.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: xarray-tests
2+
channels:
3+
- conda-forge
4+
- nodefaults
5+
dependencies:
6+
- aiobotocore
7+
- boto3
8+
- bottleneck
9+
- cartopy
10+
# - cdms2
11+
- cfgrib
12+
- cftime
13+
- dask-core
14+
- distributed
15+
- flox
16+
- fsspec!=2021.7.0
17+
- h5netcdf
18+
- h5py
19+
- hdf5
20+
- hypothesis
21+
- iris
22+
- lxml # Optional dep of pydap
23+
- matplotlib-base
24+
- nc-time-axis
25+
- netcdf4
26+
# - numba
27+
# - numbagg
28+
- numexpr
29+
- numpy
30+
- packaging
31+
- pandas
32+
- pint
33+
- pip
34+
- pooch
35+
- pre-commit
36+
- pseudonetcdf
37+
- pydap
38+
- pytest
39+
- pytest-cov
40+
- pytest-env
41+
- pytest-xdist
42+
- rasterio
43+
- scipy
44+
- seaborn
45+
# - sparse
46+
- toolz
47+
- typing_extensions
48+
- zarr
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: xarray-tests
2+
channels:
3+
- conda-forge
4+
dependencies:
5+
- boto3
6+
- bottleneck
7+
- cartopy
8+
# - cdms2 # Not available on Windows
9+
# - cfgrib # Causes Python interpreter crash on Windows: https://github.com/pydata/xarray/pull/3340
10+
- cftime
11+
- dask-core
12+
- distributed
13+
- flox
14+
- fsspec!=2021.7.0
15+
- h5netcdf
16+
- h5py
17+
- hdf5
18+
- hypothesis
19+
- iris
20+
- lxml # Optional dep of pydap
21+
- matplotlib-base
22+
- nc-time-axis
23+
- netcdf4
24+
# - numba
25+
# - numbagg
26+
- numpy
27+
- packaging
28+
- pandas
29+
- pint
30+
- pip
31+
- pre-commit
32+
- pseudonetcdf
33+
- pydap
34+
- pytest
35+
- pytest-cov
36+
- pytest-env
37+
- pytest-xdist
38+
- rasterio
39+
- scipy
40+
- seaborn
41+
# - sparse
42+
- toolz
43+
- typing_extensions
44+
- zarr

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ classifiers =
6767
Programming Language :: Python :: 3.8
6868
Programming Language :: Python :: 3.9
6969
Programming Language :: Python :: 3.10
70+
Programming Language :: Python :: 3.11
7071
Topic :: Scientific/Engineering
7172

7273
[options]

0 commit comments

Comments
 (0)