Skip to content

Commit

Permalink
Merge branch 'main' into fix-zarr-append
Browse files Browse the repository at this point in the history
* main:
  [skip-ci] dev whats-new (pydata#8467)
  2023.11.0 Whats-new (pydata#8461)
  migrate the other CI to python 3.11 (pydata#8416)
  preserve vlen string dtypes, allow vlen string fill_values (pydata#7869)
  Pin mypy < 1.7 (pydata#8458)
  Fix typos found by codespell (pydata#8457)
  [skip-ci] Small updates to IO docs. (pydata#8452)
  Deprecate certain cftime frequency strings following pandas (pydata#8415)
  Added driver parameter for h5netcdf (pydata#8360)
  Raise exception in to_dataset if resulting variable is also the name of a coordinate (pydata#8433)
  Automatic region detection and transpose for `to_zarr()` (pydata#8434)
  remove `cdms2` (pydata#8441)
  Remove PseudoNetCDF (pydata#8446)
  Pin pint to >=0.22 (pydata#8445)
  Remove keep_attrs from resample signature (pydata#8444)
  Rename `to_array` to `to_dataarray` (pydata#8438)
  Add missing DataArray.dt.total_seconds() method (pydata#8435)
  Declare Dataset, DataArray, Variable, GroupBy unhashable (pydata#8392)
  • Loading branch information
dcherian committed Nov 28, 2023
2 parents f472e9c + bb8511e commit 8cdce90
Show file tree
Hide file tree
Showing 69 changed files with 1,183 additions and 1,407 deletions.
8 changes: 3 additions & 5 deletions .binder/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ name: xarray-examples
channels:
- conda-forge
dependencies:
- python=3.9
- python=3.10
- boto3
- bottleneck
- cartopy
- cdms2
- cfgrib
- cftime
- coveralls
Expand All @@ -25,7 +24,7 @@ dependencies:
- numpy
- packaging
- pandas
- pint
- pint>=0.22
- pip
- pooch
- pydap
Expand All @@ -38,5 +37,4 @@ dependencies:
- toolz
- xarray
- zarr
- pip:
- numbagg
- numbagg
14 changes: 7 additions & 7 deletions .github/workflows/ci-additional.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: CI Additional
on:
push:
branches:
- "*"
- "main"
pull_request:
branches:
- "*"
- "main"
workflow_dispatch: # allows you to trigger manually

concurrency:
Expand Down Expand Up @@ -41,7 +41,7 @@ jobs:

env:
CONDA_ENV_FILE: ci/requirements/environment.yml
PYTHON_VERSION: "3.10"
PYTHON_VERSION: "3.11"

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
shell: bash -l {0}
env:
CONDA_ENV_FILE: ci/requirements/environment.yml
PYTHON_VERSION: "3.10"
PYTHON_VERSION: "3.11"

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -117,7 +117,7 @@ jobs:
python xarray/util/print_versions.py
- name: Install mypy
run: |
python -m pip install mypy --force-reinstall
python -m pip install "mypy<1.7" --force-reinstall
- name: Run mypy
run: |
Expand Down Expand Up @@ -171,7 +171,7 @@ jobs:
python xarray/util/print_versions.py
- name: Install mypy
run: |
python -m pip install mypy --force-reinstall
python -m pip install "mypy<1.7" --force-reinstall
- name: Run mypy
run: |
Expand Down Expand Up @@ -332,7 +332,7 @@ jobs:
with:
environment-name: xarray-tests
create-args: >-
python=3.10
python=3.11
pyyaml
conda
python-dateutil
Expand Down
12 changes: 3 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: CI
on:
push:
branches:
- "*"
- "main"
pull_request:
branches:
- "*"
- "main"
workflow_dispatch: # allows you to trigger manually

concurrency:
Expand Down Expand Up @@ -67,13 +67,7 @@ jobs:
run: |
echo "TODAY=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
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* ]] ;
if [[ ${{ matrix.os }} == windows* ]] ;
then
echo "CONDA_ENV_FILE=ci/requirements/environment-windows.yml" >> $GITHUB_ENV
elif [[ "${{ matrix.env }}" != "" ]] ;
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/upstream-dev-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.10"]
python-version: ["3.11"]
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -110,17 +110,17 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.10"]
python-version: ["3.11"]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for all branches and tags.
- name: Set up conda environment
uses: mamba-org/provision-with-micromamba@v15
uses: mamba-org/setup-micromamba@v1
with:
environment-file: ci/requirements/environment.yml
environment-name: xarray-tests
extra-specs: |
create-args: >-
python=${{ matrix.python-version }}
pytest-reportlog
conda
Expand Down
5 changes: 1 addition & 4 deletions ci/requirements/all-but-dask.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@ channels:
- conda-forge
- nodefaults
dependencies:
- python=3.10
- black
- aiobotocore
- boto3
- bottleneck
- cartopy
- cdms2
- cftime
- coveralls
- flox
Expand All @@ -26,9 +24,8 @@ dependencies:
- numpy
- packaging
- pandas
- pint<0.21
- pint>=0.22
- pip
- pseudonetcdf
- pydap
- pytest
- pytest-cov
Expand Down
48 changes: 0 additions & 48 deletions ci/requirements/environment-py311.yml

This file was deleted.

44 changes: 0 additions & 44 deletions ci/requirements/environment-windows-py311.yml

This file was deleted.

4 changes: 1 addition & 3 deletions ci/requirements/environment-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ dependencies:
- boto3
- bottleneck
- cartopy
# - cdms2 # Not available on Windows
- cftime
- dask-core
- distributed
Expand All @@ -25,10 +24,9 @@ dependencies:
- numpy
- packaging
- pandas
- pint<0.21
- pint>=0.22
- pip
- pre-commit
- pseudonetcdf
- pydap
- pytest
- pytest-cov
Expand Down
4 changes: 1 addition & 3 deletions ci/requirements/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ dependencies:
- boto3
- bottleneck
- cartopy
- cdms2
- cftime
- dask-core
- distributed
Expand All @@ -29,11 +28,10 @@ dependencies:
- opt_einsum
- packaging
- pandas
- pint<0.21
- pint>=0.22
- pip
- pooch
- pre-commit
- pseudonetcdf
- pydap
- pytest
- pytest-cov
Expand Down
8 changes: 3 additions & 5 deletions ci/requirements/min-all-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,16 @@ dependencies:
- boto3=1.24
- bottleneck=1.3
- cartopy=0.20
- cdms2=3.1
- cftime=1.6
- coveralls
- dask-core=2022.7
- distributed=2022.7
- flox=0.5
- h5netcdf=1.0
- h5netcdf=1.1
# h5py and hdf5 tend to cause conflicts
# for e.g. hdf5 1.12 conflicts with h5py=3.1
# prioritize bumping other packages instead
- h5py=3.6
- h5py=3.7
- hdf5=1.12
- hypothesis
- iris=3.2
Expand All @@ -35,9 +34,8 @@ dependencies:
- numpy=1.22
- packaging=21.3
- pandas=1.4
- pint=0.19
- pint=0.22
- pip
- pseudonetcdf=3.2
- pydap=3.3
- pytest
- pytest-cov
Expand Down
5 changes: 5 additions & 0 deletions doc/_static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ table.docutils td {
word-wrap: break-word;
}

div.bd-header-announcement {
background-color: unset;
color: #000;
}

/* Reduce left and right margins */

.container, .container-lg, .container-md, .container-sm, .container-xl {
Expand Down
14 changes: 0 additions & 14 deletions doc/api-hidden.rst
Original file line number Diff line number Diff line change
Expand Up @@ -591,20 +591,6 @@
backends.H5netcdfBackendEntrypoint.guess_can_open
backends.H5netcdfBackendEntrypoint.open_dataset

backends.PseudoNetCDFDataStore.close
backends.PseudoNetCDFDataStore.get_attrs
backends.PseudoNetCDFDataStore.get_dimensions
backends.PseudoNetCDFDataStore.get_encoding
backends.PseudoNetCDFDataStore.get_variables
backends.PseudoNetCDFDataStore.open
backends.PseudoNetCDFDataStore.open_store_variable
backends.PseudoNetCDFDataStore.ds

backends.PseudoNetCDFBackendEntrypoint.description
backends.PseudoNetCDFBackendEntrypoint.url
backends.PseudoNetCDFBackendEntrypoint.guess_can_open
backends.PseudoNetCDFBackendEntrypoint.open_dataset

backends.PydapDataStore.close
backends.PydapDataStore.get_attrs
backends.PydapDataStore.get_dimensions
Expand Down
Loading

0 comments on commit 8cdce90

Please sign in to comment.