Skip to content

Commit 2c2e7dc

Browse files
committed
Merge remote-tracking branch 'upstream/main' into groupby-aggs-using-numpy-groupies
* upstream/main: (23 commits) Small typing fix (pydata#6159) Drop support for python 3.7 (pydata#5892) _season_from_months can now handle np.nan (pydata#5876) Use base ImportError not MoudleNotFoundError when trying to see if the (pydata#6154) Remove numpy from mypy pre-commit (pydata#6151) Change concat dims to be Hashable (pydata#6121) Bump pypa/gh-action-pypi-publish from 1.4.2 to 1.5.0 (pydata#6147) Remove registration of pandas datetime converter in plotting (pydata#6109) Remove pd.Panel checks (pydata#6145) Remove paren from DataArray.from_dict docstring (pydata#6140) Revert "Deprecate bool(ds) (pydata#6126)" (pydata#6141) remove paren from data that is fed to 1D DataArray (pydata#6139) Check for just `...`, rather than `[...]` in `da.stack` (pydata#6132) DOC: Add "auto" to dataarray `chunk` method (pydata#6068) TST: check datetime converter is Matplotlibs (pydata#6128) New algorithm for forward filling (pydata#6118) Limit and format number of displayed dimensions in repr (pydata#5662) Add labels to dataset diagram (pydata#6076) Deprecate bool(ds) (pydata#6126) Revert "disable pytest-xdist (to check CI failure)" (pydata#6127) ...
2 parents 41e43fe + 18703ba commit 2c2e7dc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+1921
-244
lines changed

.github/workflows/ci-additional.yaml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,13 @@ jobs:
4040
os: ["ubuntu-latest"]
4141
env:
4242
[
43-
"py37-bare-minimum",
44-
"py37-min-all-deps",
45-
"py38-all-but-dask",
46-
"py38-flaky",
43+
# Minimum python version:
44+
"py38-bare-minimum",
45+
"py38-min-all-deps",
46+
47+
# Latest python version:
48+
"py39-all-but-dask",
49+
"py39-flaky",
4750
]
4851
steps:
4952
- uses: actions/checkout@v2
@@ -52,7 +55,7 @@ jobs:
5255

5356
- name: Set environment variables
5457
run: |
55-
if [[ ${{ matrix.env }} == "py38-flaky" ]] ;
58+
if [[ ${{ matrix.env }} == "py39-flaky" ]] ;
5659
then
5760
echo "CONDA_ENV_FILE=ci/requirements/environment.yml" >> $GITHUB_ENV
5861
echo "PYTEST_EXTRA_FLAGS=--run-flaky --run-network-tests" >> $GITHUB_ENV
@@ -75,7 +78,7 @@ jobs:
7578
mamba-version: "*"
7679
activate-environment: xarray-tests
7780
auto-update-conda: false
78-
python-version: 3.8
81+
python-version: 3.9
7982
use-only-tar-bz2: true
8083

8184
- name: Install conda dependencies
@@ -96,7 +99,7 @@ jobs:
9699
python -c "import xarray"
97100
- name: Run tests
98101
run: |
99-
python -m pytest \
102+
python -m pytest -n 4 \
100103
--cov=xarray \
101104
--cov-report=xml \
102105
$PYTEST_EXTRA_FLAGS
@@ -128,7 +131,7 @@ jobs:
128131
mamba-version: "*"
129132
activate-environment: xarray-tests
130133
auto-update-conda: false
131-
python-version: "3.8"
134+
python-version: "3.9"
132135

133136
- name: Install conda dependencies
134137
run: |
@@ -164,10 +167,10 @@ jobs:
164167
channel-priority: strict
165168
mamba-version: "*"
166169
auto-update-conda: false
167-
python-version: "3.8"
170+
python-version: "3.9"
168171

169172
- name: minimum versions policy
170173
run: |
171174
mamba install -y pyyaml conda python-dateutil
172-
python ci/min_deps_check.py ci/requirements/py37-bare-minimum.yml
173-
python ci/min_deps_check.py ci/requirements/py37-min-all-deps.yml
175+
python ci/min_deps_check.py ci/requirements/py38-bare-minimum.yml
176+
python ci/min_deps_check.py ci/requirements/py38-min-all-deps.yml

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
matrix:
3939
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
4040
# Bookend python versions
41-
python-version: ["3.7", "3.9"]
41+
python-version: ["3.8", "3.9"]
4242
steps:
4343
- uses: actions/checkout@v2
4444
with:
@@ -87,7 +87,7 @@ jobs:
8787
run: |
8888
python -c "import xarray"
8989
- name: Run tests
90-
run: python -m pytest
90+
run: python -m pytest -n 4
9191
--cov=xarray
9292
--cov-report=xml
9393
--junitxml=pytest.xml

.github/workflows/pypi-release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
ls -ltrh dist
6565
- name: Publish package to TestPyPI
6666
if: github.event_name == 'push'
67-
uses: pypa/gh-action-pypi-publish@v1.4.2
67+
uses: pypa/gh-action-pypi-publish@v1.5.0
6868
with:
6969
user: __token__
7070
password: ${{ secrets.TESTPYPI_TOKEN }}
@@ -89,7 +89,7 @@ jobs:
8989
name: releases
9090
path: dist
9191
- name: Publish package to PyPI
92-
uses: pypa/gh-action-pypi-publish@v1.4.2
92+
uses: pypa/gh-action-pypi-publish@v1.5.0
9393
with:
9494
user: __token__
9595
password: ${{ secrets.PYPI_TOKEN }}

.pre-commit-config.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ repos:
3232
# - id: velin
3333
# args: ["--write", "--compact"]
3434
- repo: https://github.com/pre-commit/mirrors-mypy
35-
rev: v0.930
35+
rev: v0.931
3636
hooks:
3737
- id: mypy
3838
# `properies` & `asv_bench` are copied from setup.cfg.
@@ -45,8 +45,6 @@ repos:
4545
types-PyYAML,
4646
types-pytz,
4747
typing-extensions==3.10.0.0,
48-
# Dependencies that are typed
49-
numpy,
5048
]
5149
# run this occasionally, ref discussion https://github.com/pydata/xarray/pull/3194
5250
# - repo: https://github.com/asottile/pyupgrade

ci/requirements/environment-windows.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ dependencies:
3737
- rasterio
3838
- scipy
3939
- seaborn
40-
- setuptools
4140
- sparse
4241
- toolz
4342
- typing_extensions

ci/requirements/environment.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ dependencies:
4141
- rasterio
4242
- scipy
4343
- seaborn
44-
- setuptools
4544
- sparse
4645
- toolz
4746
- typing_extensions

ci/requirements/py37-bare-minimum.yml renamed to ci/requirements/py38-bare-minimum.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ channels:
33
- conda-forge
44
- nodefaults
55
dependencies:
6-
- python=3.7
6+
- python=3.8
77
- coveralls
88
- pip
99
- pytest
@@ -12,5 +12,3 @@ dependencies:
1212
- pytest-xdist
1313
- numpy=1.18
1414
- pandas=1.1
15-
- typing_extensions=3.7
16-
- importlib-metadata=2.0

ci/requirements/py37-min-all-deps.yml renamed to ci/requirements/py38-min-all-deps.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ dependencies:
77
# Run ci/min_deps_check.py to verify that this file respects the policy.
88
# When upgrading python, numpy, or pandas, must also change
99
# doc/installing.rst and setup.py.
10-
- python=3.7
10+
- python=3.8
1111
- boto3=1.13
1212
- bottleneck=1.3
1313
# cartopy 0.18 conflicts with pynio
@@ -24,7 +24,6 @@ dependencies:
2424
- hdf5=1.10
2525
- hypothesis
2626
- iris=2.4
27-
- importlib-metadata=2.0
2827
- lxml=4.6 # Optional dep of pydap
2928
- matplotlib-base=3.3
3029
- nc-time-axis=1.2

ci/requirements/py38-all-but-dask.yml renamed to ci/requirements/py39-all-but-dask.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ channels:
33
- conda-forge
44
- nodefaults
55
dependencies:
6-
- python=3.8
6+
- python=3.9
77
- black
88
- aiobotocore
99
- boto3
@@ -38,7 +38,6 @@ dependencies:
3838
- rasterio
3939
- scipy
4040
- seaborn
41-
- setuptools
4241
- sparse
4342
- toolz
4443
- typing_extensions

doc/_static/dataset-diagram.png

-10.5 KB
Loading

0 commit comments

Comments
 (0)