Skip to content

Commit

Permalink
create separate environment files for python=3.11 (#7469)
Browse files Browse the repository at this point in the history
* 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`
  • Loading branch information
keewis authored Jan 23, 2023
1 parent 02e6933 commit 8be9349
Show file tree
Hide file tree
Showing 4 changed files with 101 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
# Bookend python versions
python-version: ["3.8", "3.10"]
python-version: ["3.8", "3.10", "3.11"]
env: [""]
include:
# Minimum python version:
Expand All @@ -67,7 +67,13 @@ jobs:
run: |
echo "TODAY=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
if [[ ${{ matrix.os }} == windows* ]] ;
if [[ "${{matrix.python-version}}" == "3.11" ]]; then
if [[ ${{matrix.os}} == windows* ]]; then
echo "CONDA_ENV_FILE=ci/requirements/environment-windows-py311.yml" >> $GITHUB_ENV
else
echo "CONDA_ENV_FILE=ci/requirements/environment-py311.yml" >> $GITHUB_ENV
fi
elif [[ ${{ matrix.os }} == windows* ]] ;
then
echo "CONDA_ENV_FILE=ci/requirements/environment-windows.yml" >> $GITHUB_ENV
elif [[ "${{ matrix.env }}" != "" ]] ;
Expand Down
48 changes: 48 additions & 0 deletions ci/requirements/environment-py311.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: xarray-tests
channels:
- conda-forge
- nodefaults
dependencies:
- aiobotocore
- boto3
- bottleneck
- cartopy
# - cdms2
- cfgrib
- cftime
- dask-core
- distributed
- flox
- fsspec!=2021.7.0
- h5netcdf
- h5py
- hdf5
- hypothesis
- iris
- lxml # Optional dep of pydap
- matplotlib-base
- nc-time-axis
- netcdf4
# - numba
# - numbagg
- numexpr
- numpy
- packaging
- pandas
- pint
- pip
- pooch
- pre-commit
- pseudonetcdf
- pydap
- pytest
- pytest-cov
- pytest-env
- pytest-xdist
- rasterio
- scipy
- seaborn
# - sparse
- toolz
- typing_extensions
- zarr
44 changes: 44 additions & 0 deletions ci/requirements/environment-windows-py311.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: xarray-tests
channels:
- conda-forge
dependencies:
- boto3
- bottleneck
- cartopy
# - cdms2 # Not available on Windows
# - cfgrib # Causes Python interpreter crash on Windows: https://github.com/pydata/xarray/pull/3340
- cftime
- dask-core
- distributed
- flox
- fsspec!=2021.7.0
- h5netcdf
- h5py
- hdf5
- hypothesis
- iris
- lxml # Optional dep of pydap
- matplotlib-base
- nc-time-axis
- netcdf4
# - numba
# - numbagg
- numpy
- packaging
- pandas
- pint
- pip
- pre-commit
- pseudonetcdf
- pydap
- pytest
- pytest-cov
- pytest-env
- pytest-xdist
- rasterio
- scipy
- seaborn
# - sparse
- toolz
- typing_extensions
- zarr
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ classifiers =
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Topic :: Scientific/Engineering

[options]
Expand Down

0 comments on commit 8be9349

Please sign in to comment.