Skip to content

Commit b7c382b

Browse files
authored
Merge branch 'main' into fix/dask_indexing
2 parents 7dadbf2 + 8c5c230 commit b7c382b

File tree

144 files changed

+4335
-1761
lines changed

Some content is hidden

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

144 files changed

+4335
-1761
lines changed

.binder/environment.yml

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ dependencies:
2323
- netcdf4
2424
- numba
2525
- numpy
26+
- packaging
2627
- pandas
2728
- pint
2829
- pip

.github/ISSUE_TEMPLATE/bug-report.md

-39
This file was deleted.

.github/ISSUE_TEMPLATE/bugreport.yml

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Bug Report
2+
description: File a bug report to help us improve
3+
labels: [bug, "needs triage"]
4+
body:
5+
- type: textarea
6+
id: what-happened
7+
attributes:
8+
label: What happened?
9+
description: |
10+
Thanks for reporting a bug! Please describe what you were trying to get done.
11+
Tell us what happened, what went wrong.
12+
validations:
13+
required: true
14+
15+
- type: textarea
16+
id: what-did-you-expect-to-happen
17+
attributes:
18+
label: What did you expect to happen?
19+
description: |
20+
Describe what you expected to happen.
21+
validations:
22+
required: false
23+
24+
- type: textarea
25+
id: sample-code
26+
attributes:
27+
label: Minimal Complete Verifiable Example
28+
description: |
29+
Minimal, self-contained copy-pastable example that generates the issue if possible. Please be concise with code posted. See guidelines below on how to provide a good bug report:
30+
31+
- [Minimal Complete Verifiable Examples](https://stackoverflow.com/help/mcve)
32+
- [Craft Minimal Bug Reports](http://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports)
33+
34+
Bug reports that follow these guidelines are easier to diagnose, and so are often handled much more quickly.
35+
This will be automatically formatted into code, so no need for markdown backticks.
36+
render: python
37+
38+
- type: textarea
39+
id: log-output
40+
attributes:
41+
label: Relevant log output
42+
description: Please copy and paste any relevant output. This will be automatically formatted into code, so no need for markdown backticks.
43+
render: python
44+
45+
- type: textarea
46+
id: extra
47+
attributes:
48+
label: Anything else we need to know?
49+
description: |
50+
Please describe any other information you want to share.
51+
52+
- type: textarea
53+
id: show-versions
54+
attributes:
55+
label: Environment
56+
description: |
57+
Paste the output of `xr.show_versions()` here
58+
validations:
59+
required: true

.github/ISSUE_TEMPLATE/feature-request.md

-22
This file was deleted.

.github/ISSUE_TEMPLATE/newfeature.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Feature Request
2+
description: Suggest an idea for xarray
3+
labels: [enhancement]
4+
body:
5+
- type: textarea
6+
id: description
7+
attributes:
8+
label: Is your feature request related to a problem?
9+
description: |
10+
Please do a quick search of existing issues to make sure that this has not been asked before.
11+
Please provide a clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
validations:
13+
required: true
14+
- type: textarea
15+
id: solution
16+
attributes:
17+
label: Describe the solution you'd like
18+
description: |
19+
A clear and concise description of what you want to happen.
20+
- type: textarea
21+
id: alternatives
22+
attributes:
23+
label: Describe alternatives you've considered
24+
description: |
25+
A clear and concise description of any alternative solutions or features you've considered.
26+
validations:
27+
required: false
28+
- type: textarea
29+
id: additional-context
30+
attributes:
31+
label: Additional context
32+
description: |
33+
Add any other context about the feature request here.
34+
validations:
35+
required: false

.github/PULL_REQUEST_TEMPLATE.md

-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@
22

33
- [ ] Closes #xxxx
44
- [ ] Tests added
5-
- [ ] Passes `pre-commit run --all-files`
65
- [ ] User visible changes (including notable bug fixes) are documented in `whats-new.rst`
76
- [ ] New functions/methods are listed in `api.rst`

.github/workflows/cancel-duplicate-runs.yaml

-15
This file was deleted.

.github/workflows/ci-additional.yaml

+17-11
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
- "*"
99
workflow_dispatch: # allows you to trigger manually
1010

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
1115
jobs:
1216
detect-ci-trigger:
1317
name: detect ci trigger
@@ -40,10 +44,13 @@ jobs:
4044
os: ["ubuntu-latest"]
4145
env:
4246
[
43-
"py37-bare-minimum",
44-
"py37-min-all-deps",
45-
"py38-all-but-dask",
46-
"py38-flaky",
47+
# Minimum python version:
48+
"py38-bare-minimum",
49+
"py38-min-all-deps",
50+
51+
# Latest python version:
52+
"py39-all-but-dask",
53+
"py39-flaky",
4754
]
4855
steps:
4956
- uses: actions/checkout@v2
@@ -52,7 +59,7 @@ jobs:
5259

5360
- name: Set environment variables
5461
run: |
55-
if [[ ${{ matrix.env }} == "py38-flaky" ]] ;
62+
if [[ ${{ matrix.env }} == "py39-flaky" ]] ;
5663
then
5764
echo "CONDA_ENV_FILE=ci/requirements/environment.yml" >> $GITHUB_ENV
5865
echo "PYTEST_EXTRA_FLAGS=--run-flaky --run-network-tests" >> $GITHUB_ENV
@@ -75,7 +82,7 @@ jobs:
7582
mamba-version: "*"
7683
activate-environment: xarray-tests
7784
auto-update-conda: false
78-
python-version: 3.8
85+
python-version: 3.9
7986
use-only-tar-bz2: true
8087

8188
- name: Install conda dependencies
@@ -112,7 +119,6 @@ jobs:
112119
doctest:
113120
name: Doctests
114121
runs-on: "ubuntu-latest"
115-
if: github.repository == 'pydata/xarray'
116122
defaults:
117123
run:
118124
shell: bash -l {0}
@@ -128,7 +134,7 @@ jobs:
128134
mamba-version: "*"
129135
activate-environment: xarray-tests
130136
auto-update-conda: false
131-
python-version: "3.8"
137+
python-version: "3.9"
132138

133139
- name: Install conda dependencies
134140
run: |
@@ -164,10 +170,10 @@ jobs:
164170
channel-priority: strict
165171
mamba-version: "*"
166172
auto-update-conda: false
167-
python-version: "3.8"
173+
python-version: "3.9"
168174

169175
- name: minimum versions policy
170176
run: |
171177
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
178+
python ci/min_deps_check.py ci/requirements/py38-bare-minimum.yml
179+
python ci/min_deps_check.py ci/requirements/py38-min-all-deps.yml

.github/workflows/ci-pre-commit.yml

-17
This file was deleted.

.github/workflows/ci.yaml

+5-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
- "*"
99
workflow_dispatch: # allows you to trigger manually
1010

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
1115
jobs:
1216
detect-ci-trigger:
1317
name: detect ci trigger
@@ -38,7 +42,7 @@ jobs:
3842
matrix:
3943
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
4044
# Bookend python versions
41-
python-version: ["3.7", "3.9"]
45+
python-version: ["3.8", "3.9", "3.10"]
4246
steps:
4347
- uses: actions/checkout@v2
4448
with:

.github/workflows/publish-test-results.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
types:
99
- completed
1010

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
1115
jobs:
1216
publish-test-results:
1317
name: Publish test results

.github/workflows/pypi-release.yaml

+10-9
Original file line numberDiff line numberDiff line change
@@ -62,22 +62,23 @@ jobs:
6262
run: |
6363
ls -ltrh
6464
ls -ltrh dist
65+
66+
- name: Verify the built dist/wheel is valid
67+
if: github.event_name == 'push'
68+
run: |
69+
python -m pip install --upgrade pip
70+
python -m pip install dist/xarray*.whl
71+
python -m xarray.util.print_versions
72+
6573
- name: Publish package to TestPyPI
6674
if: github.event_name == 'push'
67-
uses: pypa/gh-action-pypi-publish@v1.4.2
75+
uses: pypa/gh-action-pypi-publish@v1.5.0
6876
with:
6977
user: __token__
7078
password: ${{ secrets.TESTPYPI_TOKEN }}
7179
repository_url: https://test.pypi.org/legacy/
7280
verbose: true
7381

74-
- name: Check uploaded package
75-
if: github.event_name == 'push'
76-
run: |
77-
sleep 3
78-
python -m pip install --upgrade pip
79-
python -m pip install --extra-index-url https://test.pypi.org/simple --upgrade xarray
80-
python -m xarray.util.print_versions
8182

8283
upload-to-pypi:
8384
needs: test-built-dist
@@ -89,7 +90,7 @@ jobs:
8990
name: releases
9091
path: dist
9192
- name: Publish package to PyPI
92-
uses: pypa/gh-action-pypi-publish@v1.4.2
93+
uses: pypa/gh-action-pypi-publish@v1.5.0
9394
with:
9495
user: __token__
9596
password: ${{ secrets.PYPI_TOKEN }}

.github/workflows/upstream-dev-ci.yaml

+6-2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on:
1010
- cron: "0 0 * * *" # Daily “At 00:00” UTC
1111
workflow_dispatch: # allows you to trigger the workflow run manually
1212

13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
1317
jobs:
1418
detect-ci-trigger:
1519
name: detect upstream-dev ci trigger
@@ -44,7 +48,7 @@ jobs:
4448
strategy:
4549
fail-fast: false
4650
matrix:
47-
python-version: ["3.9"]
51+
python-version: ["3.10"]
4852
outputs:
4953
artifacts_availability: ${{ steps.status.outputs.ARTIFACTS_AVAILABLE }}
5054
steps:
@@ -122,7 +126,7 @@ jobs:
122126
shopt -s globstar
123127
python .github/workflows/parse_logs.py logs/**/*-log
124128
- name: Report failures
125-
uses: actions/github-script@v5
129+
uses: actions/github-script@v6
126130
with:
127131
github-token: ${{ secrets.GITHUB_TOKEN }}
128132
script: |

0 commit comments

Comments
 (0)