Skip to content
forked from pydata/xarray

Commit c83c617

Browse files
committed
Merge remote-tracking branch 'upstream/master' into groupby-plot
* upstream/master: Python 3.8 CI (pydata#3727) PKG: Explicitly add setuptools dependency (pydata#3628) update whats-new Typo in Universal Functions section (pydata#3663) Release v0.15.0 fix setup.cfg Documentation fixes (pydata#3732) Remove extra && in PR template (pydata#3730) Remove garbage text inserted in DASK_LICENSE (pydata#3729) Avoid unsafe use of pip (pydata#3726) remove PR pre-black instructions (pydata#3707) Fix whats-new for 0.15 (pydata#3723) Add isort to CI (pydata#3721) setuptools-scm (3) (pydata#3724) Fix Sphinx links on contributing doc page (pydata#3710)
2 parents e694a50 + 4c96d53 commit c83c617

37 files changed

+606
-315
lines changed

.binder/environment.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: xarray-examples
22
channels:
33
- conda-forge
44
dependencies:
5-
- python=3.7
5+
- python=3.8
66
- boto3
77
- bottleneck
88
- cartopy
@@ -31,6 +31,7 @@ dependencies:
3131
- rasterio
3232
- scipy
3333
- seaborn
34+
- setuptools
3435
- sparse
3536
- toolz
3637
- xarray

.github/PULL_REQUEST_TEMPLATE.md

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

33
- [ ] Closes #xxxx
44
- [ ] Tests added
5-
- [ ] Passes `black . && mypy . && flake8`
5+
- [ ] Passes `isort -rc . && black . && mypy . && flake8`
66
- [ ] Fully documented, including `whats-new.rst` for all changes and `api.rst` for new API

.pre-commit-config.yaml

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
# https://pre-commit.com/
2-
# https://github.com/python/black#version-control-integration
32
repos:
3+
# isort should run before black as black sometimes tweaks the isort output
4+
- repo: https://github.com/timothycrosley/isort
5+
rev: 4.3.21-2
6+
hooks:
7+
- id: isort
8+
# https://github.com/python/black#version-control-integration
49
- repo: https://github.com/python/black
510
rev: stable
611
hooks:
712
- id: black
8-
language_version: python3.7
913
- repo: https://github.com/pre-commit/pre-commit-hooks
1014
rev: v2.2.3
1115
hooks:
@@ -14,7 +18,7 @@ repos:
1418
rev: v0.761 # Must match ci/requirements/*.yml
1519
hooks:
1620
- id: mypy
17-
# run these occasionally, ref discussion https://github.com/pydata/xarray/pull/3194
21+
# run this occasionally, ref discussion https://github.com/pydata/xarray/pull/3194
1822
# - repo: https://github.com/asottile/pyupgrade
1923
# rev: v1.22.1
2024
# hooks:
@@ -23,7 +27,3 @@ repos:
2327
# - "--py3-only"
2428
# # remove on f-strings in Py3.7
2529
# - "--keep-percent-format"
26-
# - repo: https://github.com/timothycrosley/isort
27-
# rev: 4.3.21-2
28-
# hooks:
29-
# - id: isort

asv_bench/asv.conf.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
// The Pythons you'd like to test against. If not provided, defaults
4242
// to the current version of Python used to run `asv`.
43-
"pythons": ["3.6"],
43+
"pythons": ["3.8"],
4444

4545
// The matrix of dependencies to test. Each key is the name of a
4646
// package (in PyPI) and the values are version numbers. An empty

azure-pipelines.yml

+19-7
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ jobs:
2020
conda_env: py37
2121
py38:
2222
conda_env: py38
23-
py37-upstream-dev:
24-
conda_env: py37
23+
py38-upstream-dev:
24+
conda_env: py38
2525
upstream_dev: true
26-
py36-flaky:
27-
conda_env: py36
26+
py38-flaky:
27+
conda_env: py38
2828
pytest_extra_flags: --run-flaky --run-network-tests
2929
allow_failure: true
3030
pool:
@@ -35,8 +35,8 @@ jobs:
3535
- job: MacOSX
3636
strategy:
3737
matrix:
38-
py36:
39-
conda_env: py36
38+
py38:
39+
conda_env: py38
4040
pool:
4141
vmImage: 'macOS-10.13'
4242
steps:
@@ -74,7 +74,7 @@ jobs:
7474

7575
- job: TypeChecking
7676
variables:
77-
conda_env: py37
77+
conda_env: py38
7878
pool:
7979
vmImage: 'ubuntu-16.04'
8080
steps:
@@ -84,6 +84,18 @@ jobs:
8484
mypy .
8585
displayName: mypy type checks
8686
87+
- job: isort
88+
variables:
89+
conda_env: py38
90+
pool:
91+
vmImage: 'ubuntu-16.04'
92+
steps:
93+
- template: ci/azure/install.yml
94+
- bash: |
95+
source activate xarray-tests
96+
isort -rc --check .
97+
displayName: isort formatting checks
98+
8799
- job: MinimumVersionsPolicy
88100
pool:
89101
vmImage: 'ubuntu-16.04'

ci/azure/install.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,22 @@ steps:
66
- template: add-conda-to-path.yml
77

88
- bash: |
9+
conda update -y conda
910
conda env create -n xarray-tests --file ${{ parameters.env_file }}
1011
displayName: Install conda dependencies
1112

1213
- bash: |
1314
source activate xarray-tests
14-
pip install -f https://7933911d6844c6c53a7d-47bd50c35cd79bd838daf386af554a83.ssl.cf2.rackcdn.com \
15+
python -m pip install \
16+
-f https://7933911d6844c6c53a7d-47bd50c35cd79bd838daf386af554a83.ssl.cf2.rackcdn.com \
1517
--no-deps \
1618
--pre \
1719
--upgrade \
1820
matplotlib \
1921
numpy \
2022
pandas \
2123
scipy
22-
pip install \
24+
python -m pip install \
2325
--no-deps \
2426
--upgrade \
2527
git+https://github.com/dask/dask \
@@ -33,7 +35,7 @@ steps:
3335

3436
- bash: |
3537
source activate xarray-tests
36-
pip install --no-deps -e .
38+
python -m pip install --no-deps -e .
3739
displayName: Install xarray
3840

3941
- bash: |

ci/min_deps_check.py

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"coveralls",
1616
"flake8",
1717
"hypothesis",
18+
"isort",
1819
"mypy",
1920
"pip",
2021
"pytest",

ci/requirements/doc.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ channels:
33
# Don't change to pkgs/main, as it causes random timeouts in readthedocs
44
- conda-forge
55
dependencies:
6-
- python=3.7
6+
- python=3.8
77
- bottleneck
88
- cartopy
99
- cfgrib
@@ -20,6 +20,7 @@ dependencies:
2020
- pandas
2121
- rasterio
2222
- seaborn
23+
- setuptools
2324
- sphinx
2425
- sphinx_rtd_theme
2526
- zarr

ci/requirements/py36-bare-minimum.yml

+2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ channels:
44
dependencies:
55
- python=3.6
66
- coveralls
7+
- pip
78
- pytest
89
- pytest-cov
910
- pytest-env
1011
- numpy=1.15
1112
- pandas=0.25
13+
- setuptools=41.2

ci/requirements/py36-min-all-deps.yml

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ dependencies:
2323
- hdf5=1.10
2424
- hypothesis
2525
- iris=2.2
26+
- isort
2627
- lxml=4.4 # Optional dep of pydap
2728
- matplotlib=3.1
2829
- mypy=0.761 # Must match .pre-commit-config.yaml
@@ -42,6 +43,7 @@ dependencies:
4243
- rasterio=1.0
4344
- scipy=1.3
4445
- seaborn=0.9
46+
- setuptools=41.2
4547
# - sparse # See py36-min-nep18.yml
4648
- toolz=0.10
4749
- zarr=2.3

ci/requirements/py36-min-nep18.yml

+2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ dependencies:
1111
- numpy=1.17
1212
- pandas=0.25
1313
- pint=0.9 # Actually not enough as it doesn't implement __array_function__yet!
14+
- pip
1415
- pytest
1516
- pytest-cov
1617
- pytest-env
1718
- scipy=1.2
19+
- setuptools=41.2
1820
- sparse=0.8

ci/requirements/py36.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ dependencies:
1919
- hdf5
2020
- hypothesis
2121
- iris
22-
- lxml # optional dep of pydap
22+
- isort
23+
- lxml # Optional dep of pydap
2324
- matplotlib
2425
- mypy=0.761 # Must match .pre-commit-config.yaml
2526
- nc-time-axis
@@ -38,6 +39,7 @@ dependencies:
3839
- rasterio
3940
- scipy
4041
- seaborn
42+
- setuptools
4143
- sparse
4244
- toolz
4345
- zarr

ci/requirements/py37-windows.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,14 @@ dependencies:
1919
- hdf5
2020
- hypothesis
2121
- iris
22+
- isort
2223
- lxml # Optional dep of pydap
2324
- matplotlib
2425
- mypy=0.761 # Must match .pre-commit-config.yaml
2526
- nc-time-axis
2627
- netcdf4
2728
- numba
28-
- numpy<1.18 # FIXME https://github.com/pydata/xarray/issues/3409
29+
- numpy
2930
- pandas
3031
- pint
3132
- pip
@@ -38,6 +39,7 @@ dependencies:
3839
- rasterio
3940
- scipy
4041
- seaborn
42+
- setuptools
4143
- sparse
4244
- toolz
4345
- zarr

ci/requirements/py37.yml

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ dependencies:
1919
- hdf5
2020
- hypothesis
2121
- iris
22+
- isort
2223
- lxml # Optional dep of pydap
2324
- matplotlib
2425
- mypy=0.761 # Must match .pre-commit-config.yaml
@@ -38,6 +39,7 @@ dependencies:
3839
- rasterio
3940
- scipy
4041
- seaborn
42+
- setuptools
4143
- sparse
4244
- toolz
4345
- zarr

ci/requirements/py38.yml

+40-8
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,45 @@ channels:
33
- conda-forge
44
dependencies:
55
- python=3.8
6+
- black
7+
- boto3
8+
- bottleneck
9+
- cartopy
10+
- cdms2
11+
- cfgrib
12+
- cftime
13+
- coveralls
14+
- dask
15+
- distributed
16+
- flake8
17+
- h5netcdf
18+
- h5py
19+
- hdf5
20+
- hypothesis
21+
- iris
22+
- isort
23+
- lxml # Optional dep of pydap
24+
- matplotlib
25+
- mypy=0.761 # Must match .pre-commit-config.yaml
26+
- nc-time-axis
27+
- netcdf4
28+
- numba
29+
- numpy
30+
- pandas
31+
- pint
632
- pip
33+
- pseudonetcdf
34+
- pydap
35+
- pynio
36+
- pytest
37+
- pytest-cov
38+
- pytest-env
39+
- rasterio
40+
- scipy
41+
- seaborn
42+
- setuptools
43+
- sparse
44+
- toolz
45+
- zarr
746
- pip:
8-
- coveralls
9-
- dask
10-
- distributed
11-
- numpy
12-
- pandas
13-
- pytest
14-
- pytest-cov
15-
- pytest-env
47+
- numbagg

doc/api-hidden.rst

-10
Original file line numberDiff line numberDiff line change
@@ -583,15 +583,13 @@
583583
CFTimeIndex.factorize
584584
CFTimeIndex.fillna
585585
CFTimeIndex.format
586-
CFTimeIndex.get_duplicates
587586
CFTimeIndex.get_indexer
588587
CFTimeIndex.get_indexer_for
589588
CFTimeIndex.get_indexer_non_unique
590589
CFTimeIndex.get_level_values
591590
CFTimeIndex.get_loc
592591
CFTimeIndex.get_slice_bound
593592
CFTimeIndex.get_value
594-
CFTimeIndex.get_values
595593
CFTimeIndex.groupby
596594
CFTimeIndex.holds_integer
597595
CFTimeIndex.identical
@@ -603,7 +601,6 @@
603601
CFTimeIndex.is_floating
604602
CFTimeIndex.is_integer
605603
CFTimeIndex.is_interval
606-
CFTimeIndex.is_lexsorted_for_tuple
607604
CFTimeIndex.is_mixed
608605
CFTimeIndex.is_numeric
609606
CFTimeIndex.is_object
@@ -635,7 +632,6 @@
635632
CFTimeIndex.sort_values
636633
CFTimeIndex.sortlevel
637634
CFTimeIndex.strftime
638-
CFTimeIndex.summary
639635
CFTimeIndex.symmetric_difference
640636
CFTimeIndex.take
641637
CFTimeIndex.to_datetimeindex
@@ -656,16 +652,12 @@
656652
CFTimeIndex.T
657653
CFTimeIndex.array
658654
CFTimeIndex.asi8
659-
CFTimeIndex.base
660-
CFTimeIndex.data
661655
CFTimeIndex.date_type
662656
CFTimeIndex.day
663657
CFTimeIndex.dayofweek
664658
CFTimeIndex.dayofyear
665659
CFTimeIndex.dtype
666-
CFTimeIndex.dtype_str
667660
CFTimeIndex.empty
668-
CFTimeIndex.flags
669661
CFTimeIndex.has_duplicates
670662
CFTimeIndex.hasnans
671663
CFTimeIndex.hour
@@ -675,7 +667,6 @@
675667
CFTimeIndex.is_monotonic_increasing
676668
CFTimeIndex.is_monotonic_decreasing
677669
CFTimeIndex.is_unique
678-
CFTimeIndex.itemsize
679670
CFTimeIndex.microsecond
680671
CFTimeIndex.minute
681672
CFTimeIndex.month
@@ -687,7 +678,6 @@
687678
CFTimeIndex.second
688679
CFTimeIndex.shape
689680
CFTimeIndex.size
690-
CFTimeIndex.strides
691681
CFTimeIndex.values
692682
CFTimeIndex.year
693683

0 commit comments

Comments
 (0)