xarray 2024.5.0__tar.gz → 2024.7.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- xarray-2024.7.0/.github/release.yml +5 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/.github/workflows/ci-additional.yaml +7 -10
- {xarray-2024.5.0 → xarray-2024.7.0}/.github/workflows/ci.yaml +4 -7
- {xarray-2024.5.0 → xarray-2024.7.0}/.github/workflows/hypothesis.yaml +6 -3
- {xarray-2024.5.0 → xarray-2024.7.0}/.github/workflows/pypi-release.yaml +2 -2
- {xarray-2024.5.0 → xarray-2024.7.0}/.github/workflows/upstream-dev-ci.yaml +4 -1
- {xarray-2024.5.0 → xarray-2024.7.0}/.pre-commit-config.yaml +2 -2
- {xarray-2024.5.0 → xarray-2024.7.0}/CITATION.cff +14 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/HOW_TO_RELEASE.md +5 -6
- {xarray-2024.5.0 → xarray-2024.7.0}/PKG-INFO +12 -12
- {xarray-2024.5.0 → xarray-2024.7.0}/README.md +11 -11
- xarray-2024.7.0/asv_bench/benchmarks/coding.py +18 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/asv_bench/benchmarks/dataarray_missing.py +1 -1
- {xarray-2024.5.0 → xarray-2024.7.0}/asv_bench/benchmarks/dataset_io.py +112 -1
- {xarray-2024.5.0 → xarray-2024.7.0}/ci/install-upstream-wheels.sh +17 -7
- {xarray-2024.5.0 → xarray-2024.7.0}/ci/min_deps_check.py +5 -5
- xarray-2024.7.0/ci/release_contributors.py +49 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/ci/requirements/all-but-dask.yml +1 -1
- {xarray-2024.5.0 → xarray-2024.7.0}/ci/requirements/doc.yml +2 -1
- {xarray-2024.5.0 → xarray-2024.7.0}/ci/requirements/environment-windows.yml +1 -1
- {xarray-2024.5.0 → xarray-2024.7.0}/ci/requirements/environment.yml +1 -1
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/_static/style.css +2 -5
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/api-hidden.rst +4 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/api.rst +21 -4
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/conf.py +11 -2
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/ecosystem.rst +1 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/examples/multidimensional-coords.ipynb +0 -7
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/getting-started-guide/faq.rst +2 -2
- xarray-2024.7.0/doc/help-diagram.rst +75 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/index.rst +3 -1
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/internals/how-to-add-new-backend.rst +1 -1
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/user-guide/computation.rst +3 -3
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/user-guide/dask.rst +16 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/user-guide/groupby.rst +82 -11
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/user-guide/interpolation.rst +2 -2
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/user-guide/io.rst +172 -86
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/user-guide/pandas.rst +20 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/user-guide/terminology.rst +1 -1
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/user-guide/testing.rst +3 -2
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/whats-new.rst +144 -5
- {xarray-2024.5.0 → xarray-2024.7.0}/properties/test_pandas_roundtrip.py +34 -0
- xarray-2024.7.0/properties/test_properties.py +17 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/pyproject.toml +2 -7
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/__init__.py +2 -1
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/backends/api.py +64 -41
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/backends/common.py +0 -30
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/backends/file_manager.py +2 -2
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/backends/h5netcdf_.py +65 -5
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/backends/netCDF4_.py +62 -5
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/backends/zarr.py +199 -97
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/coding/calendar_ops.py +11 -1
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/coding/cftime_offsets.py +92 -73
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/coding/cftimeindex.py +41 -24
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/coding/strings.py +3 -3
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/coding/times.py +34 -29
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/coding/variables.py +20 -6
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/conventions.py +23 -13
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/_aggregations.py +52 -104
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/_typed_ops.py +67 -67
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/alignment.py +3 -3
- xarray-2024.7.0/xarray/core/array_api_compat.py +44 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/common.py +33 -49
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/computation.py +3 -46
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/concat.py +27 -22
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/dataarray.py +127 -104
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/dataset.py +201 -89
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/datatree.py +304 -243
- xarray-2024.5.0/xarray/datatree_/datatree/io.py → xarray-2024.7.0/xarray/core/datatree_io.py +57 -20
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/datatree_render.py +6 -5
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/dtypes.py +96 -25
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/duck_array_ops.py +75 -28
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/extension_array.py +6 -8
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/formatting.py +41 -19
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/formatting_html.py +1 -1
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/groupby.py +69 -626
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/indexes.py +100 -37
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/indexing.py +23 -13
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/iterators.py +10 -9
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/missing.py +3 -1
- xarray-2024.7.0/xarray/core/npcompat.py +73 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/nputils.py +1 -1
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/pdcompat.py +0 -22
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/resample.py +18 -56
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/resample_cftime.py +18 -31
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/treenode.py +9 -7
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/types.py +31 -11
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/utils.py +19 -26
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/variable.py +5 -4
- xarray-2024.7.0/xarray/groupers.py +409 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/namedarray/_array_api.py +10 -19
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/namedarray/_typing.py +7 -4
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/namedarray/core.py +28 -5
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/namedarray/daskmanager.py +4 -4
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/plot/dataset_plot.py +10 -5
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/plot/facetgrid.py +2 -2
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/plot/utils.py +3 -3
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/static/css/style.css +1 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/testing/assertions.py +1 -1
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/testing/strategies.py +5 -1
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/__init__.py +3 -2
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_array_api.py +8 -17
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_assertions.py +5 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_backends.py +53 -7
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_backends_datatree.py +37 -5
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_calendar_ops.py +24 -1
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_cftime_offsets.py +1 -1
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_cftimeindex.py +20 -20
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_cftimeindex_resample.py +20 -93
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_coding_strings.py +2 -2
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_coding_times.py +85 -66
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_combine.py +6 -3
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_computation.py +12 -10
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_concat.py +12 -8
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_conventions.py +3 -3
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_dask.py +11 -1
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_dataarray.py +72 -56
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_dataset.py +137 -31
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_datatree.py +305 -14
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_dtypes.py +80 -4
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_duck_array_ops.py +12 -7
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_formatting.py +110 -84
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_groupby.py +172 -226
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_indexes.py +13 -12
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_missing.py +22 -31
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_namedarray.py +20 -31
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_plot.py +80 -24
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_rolling.py +14 -8
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_strategies.py +17 -8
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_units.py +5 -8
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_utils.py +5 -1
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_variable.py +36 -27
- xarray-2024.7.0/xarray/util/__init__.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/util/generate_aggregations.py +2 -28
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/util/generate_ops.py +13 -10
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray.egg-info/PKG-INFO +12 -12
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray.egg-info/SOURCES.txt +9 -2
- xarray-2024.5.0/xarray/core/npcompat.py +0 -30
- xarray-2024.5.0/xarray/datatree_/datatree/common.py +0 -104
- {xarray-2024.5.0 → xarray-2024.7.0}/.binder/environment.yml +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/.codecov.yml +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/.git-blame-ignore-revs +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/.git_archival.txt +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/.gitattributes +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/.github/FUNDING.yml +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/.github/ISSUE_TEMPLATE/bugreport.yml +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/.github/ISSUE_TEMPLATE/misc.yml +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/.github/ISSUE_TEMPLATE/newfeature.yml +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/.github/config.yml +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/.github/dependabot.yml +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/.github/stale.yml +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/.github/workflows/benchmarks-last-release.yml +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/.github/workflows/benchmarks.yml +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/.github/workflows/configure-testpypi-version.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/.github/workflows/nightly-wheels.yml +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/.github/workflows/publish-test-results.yaml +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/.gitignore +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/.pep8speaks.yml +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/.readthedocs.yaml +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/CODE_OF_CONDUCT.md +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/CONTRIBUTING.md +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/CORE_TEAM_GUIDE.md +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/LICENSE +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/MANIFEST.in +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/asv_bench/asv.conf.json +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/asv_bench/benchmarks/README_CI.md +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/asv_bench/benchmarks/__init__.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/asv_bench/benchmarks/accessors.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/asv_bench/benchmarks/alignment.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/asv_bench/benchmarks/combine.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/asv_bench/benchmarks/dataset.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/asv_bench/benchmarks/groupby.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/asv_bench/benchmarks/import.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/asv_bench/benchmarks/indexing.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/asv_bench/benchmarks/interp.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/asv_bench/benchmarks/merge.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/asv_bench/benchmarks/pandas.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/asv_bench/benchmarks/polyfit.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/asv_bench/benchmarks/reindexing.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/asv_bench/benchmarks/renaming.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/asv_bench/benchmarks/repr.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/asv_bench/benchmarks/rolling.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/asv_bench/benchmarks/unstacking.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/ci/requirements/bare-minimum.yml +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/ci/requirements/environment-3.13.yml +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/ci/requirements/environment-windows-3.13.yml +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/ci/requirements/min-all-deps.yml +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/conftest.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/design_notes/flexible_indexes_notes.md +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/design_notes/grouper_objects.md +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/design_notes/named_array_design_doc.md +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/Makefile +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/README.rst +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/_static/.gitignore +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/_static/advanced_selection_interpolation.svg +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/_static/ci.png +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/_static/dask_array.png +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/_static/dataset-diagram.png +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/_static/index_api.svg +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/_static/index_contribute.svg +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/_static/index_getting_started.svg +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/_static/index_user_guide.svg +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/_static/logos/Xarray_Icon_Final.png +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/_static/logos/Xarray_Icon_Final.svg +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/_static/logos/Xarray_Logo_FullColor_InverseRGB_Final.png +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/_static/logos/Xarray_Logo_FullColor_InverseRGB_Final.svg +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/_static/logos/Xarray_Logo_RGB_Final.png +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/_static/logos/Xarray_Logo_RGB_Final.svg +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/_static/numfocus_logo.png +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/_static/opendap-prism-tmax.png +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/_static/thumbnails/ERA5-GRIB-example.png +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/_static/thumbnails/ROMS_ocean_model.png +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/_static/thumbnails/area_weighted_temperature.png +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/_static/thumbnails/monthly-means.png +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/_static/thumbnails/multidimensional-coords.png +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/_static/thumbnails/toy-weather-data.png +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/_static/thumbnails/visualization_gallery.png +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/_static/view-docs.png +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/_templates/autosummary/accessor.rst +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/_templates/autosummary/accessor_attribute.rst +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/_templates/autosummary/accessor_callable.rst +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/_templates/autosummary/accessor_method.rst +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/contributing.rst +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/developers-meeting.rst +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/examples/ERA5-GRIB-example.ipynb +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/examples/ROMS_ocean_model.ipynb +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/examples/_code/accessor_example.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/examples/apply_ufunc_vectorize_1d.ipynb +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/examples/area_weighted_temperature.ipynb +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/examples/blank_template.ipynb +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/examples/monthly-means.ipynb +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/examples/monthly_means_output.png +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/examples/visualization_gallery.ipynb +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/examples/weather-data.ipynb +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/gallery/README.txt +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/gallery/plot_cartopy_facetgrid.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/gallery/plot_colorbar_center.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/gallery/plot_control_colorbar.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/gallery/plot_lines_from_2d.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/gallery.rst +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/gallery.yml +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/getting-started-guide/index.rst +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/getting-started-guide/installing.rst +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/getting-started-guide/quick-overview.rst +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/getting-started-guide/why-xarray.rst +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/howdoi.rst +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/internals/chunked-arrays.rst +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/internals/duck-arrays-integration.rst +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/internals/extending-xarray.rst +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/internals/how-to-create-custom-index.rst +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/internals/index.rst +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/internals/internal-design.rst +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/internals/interoperability.rst +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/internals/zarr-encoding-spec.rst +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/roadmap.rst +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/tutorials-and-videos.rst +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/user-guide/combining.rst +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/user-guide/data-structures.rst +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/user-guide/duckarrays.rst +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/user-guide/index.rst +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/user-guide/indexing.rst +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/user-guide/options.rst +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/user-guide/plotting.rst +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/user-guide/reshaping.rst +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/user-guide/time-series.rst +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/user-guide/weather-climate.rst +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/doc/videos.yml +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/licenses/ANYTREE_LICENSE +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/licenses/DASK_LICENSE +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/licenses/ICOMOON_LICENSE +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/licenses/NUMPY_LICENSE +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/licenses/PANDAS_LICENSE +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/licenses/PYTHON_LICENSE +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/licenses/SCIKIT_LEARN_LICENSE +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/licenses/SEABORN_LICENSE +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/properties/README.md +0 -0
- {xarray-2024.5.0/xarray/coding → xarray-2024.7.0/properties}/__init__.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/properties/conftest.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/properties/test_encode_decode.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/properties/test_index_manipulation.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/setup.cfg +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/setup.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/backends/__init__.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/backends/locks.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/backends/lru_cache.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/backends/memory.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/backends/netcdf3.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/backends/plugins.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/backends/pydap_.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/backends/scipy_.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/backends/store.py +0 -0
- {xarray-2024.5.0/xarray/core → xarray-2024.7.0/xarray/coding}/__init__.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/coding/frequencies.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/convert.py +0 -0
- {xarray-2024.5.0/xarray/namedarray → xarray-2024.7.0/xarray/core}/__init__.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/accessor_dt.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/accessor_str.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/arithmetic.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/combine.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/coordinates.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/dask_array_ops.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/datatree_mapping.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/datatree_ops.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/extensions.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/merge.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/nanops.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/ops.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/options.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/parallel.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/rolling.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/rolling_exp.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/weighted.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/datatree_/datatree/__init__.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/indexes/__init__.py +0 -0
- {xarray-2024.5.0/xarray/static → xarray-2024.7.0/xarray/namedarray}/__init__.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/namedarray/_aggregations.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/namedarray/dtypes.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/namedarray/parallelcompat.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/namedarray/pycompat.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/namedarray/utils.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/plot/__init__.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/plot/accessor.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/plot/dataarray_plot.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/py.typed +0 -0
- {xarray-2024.5.0/xarray/static/css → xarray-2024.7.0/xarray/static}/__init__.py +0 -0
- {xarray-2024.5.0/xarray/static/html → xarray-2024.7.0/xarray/static/css}/__init__.py +0 -0
- {xarray-2024.5.0/xarray/util → xarray-2024.7.0/xarray/static/html}/__init__.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/static/html/icons-svg-inline.html +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/testing/__init__.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/arrays.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/conftest.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/data/bears.nc +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/data/example.grib +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/data/example.ict +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/data/example.uamiv +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/data/example_1.nc +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/data/example_1.nc.gz +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_accessor_dt.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_accessor_str.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_backends_api.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_backends_common.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_backends_file_manager.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_backends_locks.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_backends_lru_cache.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_coarsen.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_coding.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_coordinates.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_cupy.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_datatree_mapping.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_deprecation_helpers.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_distributed.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_error_messages.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_extensions.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_formatting_html.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_hashable.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_indexing.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_interp.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_merge.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_nputils.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_options.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_parallelcompat.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_plugins.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_print_versions.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_sparse.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_treenode.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_tutorial.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_typed_ops.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_ufuncs.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_weighted.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tutorial.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/util/deprecation_helpers.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray/util/print_versions.py +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray.egg-info/dependency_links.txt +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray.egg-info/entry_points.txt +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray.egg-info/requires.txt +0 -0
- {xarray-2024.5.0 → xarray-2024.7.0}/xarray.egg-info/top_level.txt +0 -0
|
@@ -6,18 +6,15 @@ on:
|
|
|
6
6
|
pull_request:
|
|
7
7
|
branches:
|
|
8
8
|
- "main"
|
|
9
|
-
paths:
|
|
10
|
-
- 'ci/**'
|
|
11
|
-
- '.github/**'
|
|
12
|
-
- '/*' # covers files such as `pyproject.toml`
|
|
13
|
-
- 'properties/**'
|
|
14
|
-
- 'xarray/**'
|
|
15
9
|
workflow_dispatch: # allows you to trigger manually
|
|
16
10
|
|
|
17
11
|
concurrency:
|
|
18
12
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
19
13
|
cancel-in-progress: true
|
|
20
14
|
|
|
15
|
+
env:
|
|
16
|
+
FORCE_COLOR: 3
|
|
17
|
+
|
|
21
18
|
jobs:
|
|
22
19
|
detect-ci-trigger:
|
|
23
20
|
name: detect ci trigger
|
|
@@ -133,7 +130,7 @@ jobs:
|
|
|
133
130
|
python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report xarray/
|
|
134
131
|
|
|
135
132
|
- name: Upload mypy coverage to Codecov
|
|
136
|
-
uses: codecov/codecov-action@v4.
|
|
133
|
+
uses: codecov/codecov-action@v4.5.0
|
|
137
134
|
with:
|
|
138
135
|
file: mypy_report/cobertura.xml
|
|
139
136
|
flags: mypy
|
|
@@ -187,7 +184,7 @@ jobs:
|
|
|
187
184
|
python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report xarray/
|
|
188
185
|
|
|
189
186
|
- name: Upload mypy coverage to Codecov
|
|
190
|
-
uses: codecov/codecov-action@v4.
|
|
187
|
+
uses: codecov/codecov-action@v4.5.0
|
|
191
188
|
with:
|
|
192
189
|
file: mypy_report/cobertura.xml
|
|
193
190
|
flags: mypy39
|
|
@@ -248,7 +245,7 @@ jobs:
|
|
|
248
245
|
python -m pyright xarray/
|
|
249
246
|
|
|
250
247
|
- name: Upload pyright coverage to Codecov
|
|
251
|
-
uses: codecov/codecov-action@v4.
|
|
248
|
+
uses: codecov/codecov-action@v4.5.0
|
|
252
249
|
with:
|
|
253
250
|
file: pyright_report/cobertura.xml
|
|
254
251
|
flags: pyright
|
|
@@ -307,7 +304,7 @@ jobs:
|
|
|
307
304
|
python -m pyright xarray/
|
|
308
305
|
|
|
309
306
|
- name: Upload pyright coverage to Codecov
|
|
310
|
-
uses: codecov/codecov-action@v4.
|
|
307
|
+
uses: codecov/codecov-action@v4.5.0
|
|
311
308
|
with:
|
|
312
309
|
file: pyright_report/cobertura.xml
|
|
313
310
|
flags: pyright39
|
|
@@ -6,18 +6,15 @@ on:
|
|
|
6
6
|
pull_request:
|
|
7
7
|
branches:
|
|
8
8
|
- "main"
|
|
9
|
-
paths:
|
|
10
|
-
- 'ci/**'
|
|
11
|
-
- '.github/**'
|
|
12
|
-
- '/*' # covers files such as `pyproject.toml`
|
|
13
|
-
- 'properties/**'
|
|
14
|
-
- 'xarray/**'
|
|
15
9
|
workflow_dispatch: # allows you to trigger manually
|
|
16
10
|
|
|
17
11
|
concurrency:
|
|
18
12
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
19
13
|
cancel-in-progress: true
|
|
20
14
|
|
|
15
|
+
env:
|
|
16
|
+
FORCE_COLOR: 3
|
|
17
|
+
|
|
21
18
|
jobs:
|
|
22
19
|
detect-ci-trigger:
|
|
23
20
|
name: detect ci trigger
|
|
@@ -162,7 +159,7 @@ jobs:
|
|
|
162
159
|
path: pytest.xml
|
|
163
160
|
|
|
164
161
|
- name: Upload code coverage to Codecov
|
|
165
|
-
uses: codecov/codecov-action@v4.
|
|
162
|
+
uses: codecov/codecov-action@v4.5.0
|
|
166
163
|
with:
|
|
167
164
|
file: ./coverage.xml
|
|
168
165
|
flags: unittests
|
|
@@ -11,6 +11,9 @@ on:
|
|
|
11
11
|
- cron: "0 0 * * *" # Daily “At 00:00” UTC
|
|
12
12
|
workflow_dispatch: # allows you to trigger manually
|
|
13
13
|
|
|
14
|
+
env:
|
|
15
|
+
FORCE_COLOR: 3
|
|
16
|
+
|
|
14
17
|
jobs:
|
|
15
18
|
detect-ci-trigger:
|
|
16
19
|
name: detect ci trigger
|
|
@@ -36,9 +39,9 @@ jobs:
|
|
|
36
39
|
if: |
|
|
37
40
|
always()
|
|
38
41
|
&& (
|
|
39
|
-
|
|
40
|
-
||
|
|
41
|
-
|
|
42
|
+
needs.detect-ci-trigger.outputs.triggered == 'false'
|
|
43
|
+
&& ( (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')
|
|
44
|
+
|| contains( github.event.pull_request.labels.*.name, 'run-slow-hypothesis'))
|
|
42
45
|
)
|
|
43
46
|
defaults:
|
|
44
47
|
run:
|
|
@@ -88,7 +88,7 @@ jobs:
|
|
|
88
88
|
path: dist
|
|
89
89
|
- name: Publish package to TestPyPI
|
|
90
90
|
if: github.event_name == 'push'
|
|
91
|
-
uses: pypa/gh-action-pypi-publish@v1.
|
|
91
|
+
uses: pypa/gh-action-pypi-publish@v1.9.0
|
|
92
92
|
with:
|
|
93
93
|
repository_url: https://test.pypi.org/legacy/
|
|
94
94
|
verbose: true
|
|
@@ -111,6 +111,6 @@ jobs:
|
|
|
111
111
|
name: releases
|
|
112
112
|
path: dist
|
|
113
113
|
- name: Publish package to PyPI
|
|
114
|
-
uses: pypa/gh-action-pypi-publish@v1.
|
|
114
|
+
uses: pypa/gh-action-pypi-publish@v1.9.0
|
|
115
115
|
with:
|
|
116
116
|
verbose: true
|
|
@@ -15,6 +15,9 @@ concurrency:
|
|
|
15
15
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
16
16
|
cancel-in-progress: true
|
|
17
17
|
|
|
18
|
+
env:
|
|
19
|
+
FORCE_COLOR: 3
|
|
20
|
+
|
|
18
21
|
jobs:
|
|
19
22
|
detect-ci-trigger:
|
|
20
23
|
name: detect upstream-dev ci trigger
|
|
@@ -143,7 +146,7 @@ jobs:
|
|
|
143
146
|
run: |
|
|
144
147
|
python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report
|
|
145
148
|
- name: Upload mypy coverage to Codecov
|
|
146
|
-
uses: codecov/codecov-action@v4.
|
|
149
|
+
uses: codecov/codecov-action@v4.5.0
|
|
147
150
|
with:
|
|
148
151
|
file: mypy_report/cobertura.xml
|
|
149
152
|
flags: mypy
|
|
@@ -13,7 +13,7 @@ repos:
|
|
|
13
13
|
- id: mixed-line-ending
|
|
14
14
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
15
15
|
# Ruff version.
|
|
16
|
-
rev: 'v0.
|
|
16
|
+
rev: 'v0.5.0'
|
|
17
17
|
hooks:
|
|
18
18
|
- id: ruff
|
|
19
19
|
args: ["--fix", "--show-fixes"]
|
|
@@ -30,7 +30,7 @@ repos:
|
|
|
30
30
|
additional_dependencies: ["black==24.4.2"]
|
|
31
31
|
- id: blackdoc-autoupdate-black
|
|
32
32
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
33
|
-
rev: v1.10.
|
|
33
|
+
rev: v1.10.1
|
|
34
34
|
hooks:
|
|
35
35
|
- id: mypy
|
|
36
36
|
# Copied from setup.cfg
|
|
@@ -11,6 +11,7 @@ authors:
|
|
|
11
11
|
orcid: "https://orcid.org/0000-0001-7479-8439"
|
|
12
12
|
- family-names: "Magin"
|
|
13
13
|
given-names: "Justus"
|
|
14
|
+
orcid: "https://orcid.org/0000-0002-4254-8002"
|
|
14
15
|
- family-names: "Cherian"
|
|
15
16
|
given-names: "Deepak"
|
|
16
17
|
orcid: "https://orcid.org/0000-0002-6861-8734"
|
|
@@ -75,6 +76,19 @@ authors:
|
|
|
75
76
|
- family-names: "Wolfram"
|
|
76
77
|
given-names: "Phillip J."
|
|
77
78
|
orcid: "https://orcid.org/0000-0001-5971-4241"
|
|
79
|
+
- family-names: "Henderson"
|
|
80
|
+
given-names: "Scott"
|
|
81
|
+
orcid: "https://orcid.org/0000-0003-0624-4965"
|
|
82
|
+
- family-names: "Awowale"
|
|
83
|
+
given-names: "Eniola Olufunke"
|
|
84
|
+
- family-names: "Scheick"
|
|
85
|
+
given-names: "Jessica"
|
|
86
|
+
orcid: "https://orcid.org/0000-0002-3421-4459"
|
|
87
|
+
- family-names: "Savoie"
|
|
88
|
+
given-names: "Matthew"
|
|
89
|
+
orcid: "https://orcid.org/0000-0002-8881-2550"
|
|
90
|
+
- family-names: "Littlejohns"
|
|
91
|
+
given-names: "Owen"
|
|
78
92
|
title: "xarray"
|
|
79
93
|
abstract: "N-D labeled arrays and datasets in Python."
|
|
80
94
|
license: Apache-2.0
|
|
@@ -23,14 +23,13 @@ upstream https://github.com/pydata/xarray (push)
|
|
|
23
23
|
```sh
|
|
24
24
|
git fetch upstream --tags
|
|
25
25
|
```
|
|
26
|
-
|
|
26
|
+
Then run
|
|
27
27
|
```sh
|
|
28
|
-
|
|
29
|
-
```
|
|
30
|
-
This will return the total number of contributors:
|
|
31
|
-
```sh
|
|
32
|
-
git log "$(git tag --sort=v:refname | tail -1).." --format=%aN | sort -u | wc -l
|
|
28
|
+
python ci/release_contributors.py
|
|
33
29
|
```
|
|
30
|
+
(needs `gitpython` and `toolz` / `cytoolz`)
|
|
31
|
+
|
|
32
|
+
and copy the output.
|
|
34
33
|
3. Write a release summary: ~50 words describing the high level features. This
|
|
35
34
|
will be used in the release emails, tweets, GitHub release notes, etc.
|
|
36
35
|
4. Look over whats-new.rst and the docs. Make sure "What's New" is complete
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: xarray
|
|
3
|
-
Version: 2024.
|
|
3
|
+
Version: 2024.7.0
|
|
4
4
|
Summary: N-D labeled arrays and datasets in Python
|
|
5
5
|
Author-email: xarray Developers <xarray@googlegroups.com>
|
|
6
6
|
License: Apache-2.0
|
|
@@ -70,7 +70,7 @@ Requires-Dist: nc-time-axis; extra == "viz"
|
|
|
70
70
|
[](https://pypi.python.org/pypi/xarray/)
|
|
71
71
|
[](https://github.com/python/black)
|
|
72
72
|
[](http://mypy-lang.org/)
|
|
73
|
-
[](https://doi.org/10.5281/zenodo.11183201)
|
|
74
74
|
[](https://mybinder.org/v2/gh/pydata/xarray/main?urlpath=lab/tree/doc/examples/weather-data.ipynb)
|
|
75
75
|
[](https://twitter.com/xarray_dev)
|
|
76
76
|
|
|
@@ -109,15 +109,15 @@ provide a powerful and concise interface. For example:
|
|
|
109
109
|
|
|
110
110
|
- Apply operations over dimensions by name: `x.sum('time')`.
|
|
111
111
|
- Select values by label instead of integer location:
|
|
112
|
-
|
|
112
|
+
`x.loc['2014-01-01']` or `x.sel(time='2014-01-01')`.
|
|
113
113
|
- Mathematical operations (e.g., `x - y`) vectorize across multiple
|
|
114
|
-
|
|
114
|
+
dimensions (array broadcasting) based on dimension names, not shape.
|
|
115
115
|
- Flexible split-apply-combine operations with groupby:
|
|
116
|
-
|
|
116
|
+
`x.groupby('time.dayofyear').mean()`.
|
|
117
117
|
- Database like alignment based on coordinate labels that smoothly
|
|
118
|
-
|
|
118
|
+
handles missing values: `x, y = xr.align(x, y, join='outer')`.
|
|
119
119
|
- Keep track of arbitrary metadata in the form of a Python dictionary:
|
|
120
|
-
|
|
120
|
+
`x.attrs`.
|
|
121
121
|
|
|
122
122
|
## Documentation
|
|
123
123
|
|
|
@@ -136,12 +136,12 @@ page](https://docs.xarray.dev/en/stable/contributing.html).
|
|
|
136
136
|
## Get in touch
|
|
137
137
|
|
|
138
138
|
- Ask usage questions ("How do I?") on
|
|
139
|
-
|
|
139
|
+
[GitHub Discussions](https://github.com/pydata/xarray/discussions).
|
|
140
140
|
- Report bugs, suggest features or view the source code [on
|
|
141
|
-
|
|
141
|
+
GitHub](https://github.com/pydata/xarray).
|
|
142
142
|
- For less well defined questions or ideas, or to announce other
|
|
143
|
-
|
|
144
|
-
|
|
143
|
+
projects of interest to xarray users, use the [mailing
|
|
144
|
+
list](https://groups.google.com/forum/#!forum/xarray).
|
|
145
145
|
|
|
146
146
|
## NumFOCUS
|
|
147
147
|
|
|
@@ -177,7 +177,7 @@ Licensed under the Apache License, Version 2.0 (the "License"); you
|
|
|
177
177
|
may not use this file except in compliance with the License. You may
|
|
178
178
|
obtain a copy of the License at
|
|
179
179
|
|
|
180
|
-
|
|
180
|
+
<https://www.apache.org/licenses/LICENSE-2.0>
|
|
181
181
|
|
|
182
182
|
Unless required by applicable law or agreed to in writing, software
|
|
183
183
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
[](https://pypi.python.org/pypi/xarray/)
|
|
8
8
|
[](https://github.com/python/black)
|
|
9
9
|
[](http://mypy-lang.org/)
|
|
10
|
-
[](https://doi.org/10.5281/zenodo.11183201)
|
|
11
11
|
[](https://mybinder.org/v2/gh/pydata/xarray/main?urlpath=lab/tree/doc/examples/weather-data.ipynb)
|
|
12
12
|
[](https://twitter.com/xarray_dev)
|
|
13
13
|
|
|
@@ -46,15 +46,15 @@ provide a powerful and concise interface. For example:
|
|
|
46
46
|
|
|
47
47
|
- Apply operations over dimensions by name: `x.sum('time')`.
|
|
48
48
|
- Select values by label instead of integer location:
|
|
49
|
-
|
|
49
|
+
`x.loc['2014-01-01']` or `x.sel(time='2014-01-01')`.
|
|
50
50
|
- Mathematical operations (e.g., `x - y`) vectorize across multiple
|
|
51
|
-
|
|
51
|
+
dimensions (array broadcasting) based on dimension names, not shape.
|
|
52
52
|
- Flexible split-apply-combine operations with groupby:
|
|
53
|
-
|
|
53
|
+
`x.groupby('time.dayofyear').mean()`.
|
|
54
54
|
- Database like alignment based on coordinate labels that smoothly
|
|
55
|
-
|
|
55
|
+
handles missing values: `x, y = xr.align(x, y, join='outer')`.
|
|
56
56
|
- Keep track of arbitrary metadata in the form of a Python dictionary:
|
|
57
|
-
|
|
57
|
+
`x.attrs`.
|
|
58
58
|
|
|
59
59
|
## Documentation
|
|
60
60
|
|
|
@@ -73,12 +73,12 @@ page](https://docs.xarray.dev/en/stable/contributing.html).
|
|
|
73
73
|
## Get in touch
|
|
74
74
|
|
|
75
75
|
- Ask usage questions ("How do I?") on
|
|
76
|
-
|
|
76
|
+
[GitHub Discussions](https://github.com/pydata/xarray/discussions).
|
|
77
77
|
- Report bugs, suggest features or view the source code [on
|
|
78
|
-
|
|
78
|
+
GitHub](https://github.com/pydata/xarray).
|
|
79
79
|
- For less well defined questions or ideas, or to announce other
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
projects of interest to xarray users, use the [mailing
|
|
81
|
+
list](https://groups.google.com/forum/#!forum/xarray).
|
|
82
82
|
|
|
83
83
|
## NumFOCUS
|
|
84
84
|
|
|
@@ -114,7 +114,7 @@ Licensed under the Apache License, Version 2.0 (the "License"); you
|
|
|
114
114
|
may not use this file except in compliance with the License. You may
|
|
115
115
|
obtain a copy of the License at
|
|
116
116
|
|
|
117
|
-
|
|
117
|
+
<https://www.apache.org/licenses/LICENSE-2.0>
|
|
118
118
|
|
|
119
119
|
Unless required by applicable law or agreed to in writing, software
|
|
120
120
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import numpy as np
|
|
2
|
+
|
|
3
|
+
import xarray as xr
|
|
4
|
+
|
|
5
|
+
from . import parameterized
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
@parameterized(["calendar"], [("standard", "noleap")])
|
|
9
|
+
class EncodeCFDatetime:
|
|
10
|
+
def setup(self, calendar):
|
|
11
|
+
self.units = "days since 2000-01-01"
|
|
12
|
+
self.dtype = np.dtype("int64")
|
|
13
|
+
self.times = xr.date_range(
|
|
14
|
+
"2000", freq="D", periods=10000, calendar=calendar
|
|
15
|
+
).values
|
|
16
|
+
|
|
17
|
+
def time_encode_cf_datetime(self, calendar):
|
|
18
|
+
xr.coding.times.encode_cf_datetime(self.times, self.units, calendar, self.dtype)
|
|
@@ -7,6 +7,8 @@ import numpy as np
|
|
|
7
7
|
import pandas as pd
|
|
8
8
|
|
|
9
9
|
import xarray as xr
|
|
10
|
+
from xarray.backends.api import open_datatree
|
|
11
|
+
from xarray.core.datatree import DataTree
|
|
10
12
|
|
|
11
13
|
from . import _skip_slow, parameterized, randint, randn, requires_dask
|
|
12
14
|
|
|
@@ -16,7 +18,6 @@ try:
|
|
|
16
18
|
except ImportError:
|
|
17
19
|
pass
|
|
18
20
|
|
|
19
|
-
|
|
20
21
|
os.environ["HDF5_USE_FILE_LOCKING"] = "FALSE"
|
|
21
22
|
|
|
22
23
|
_ENGINES = tuple(xr.backends.list_engines().keys() - {"store"})
|
|
@@ -469,6 +470,116 @@ def create_delayed_write():
|
|
|
469
470
|
return ds.to_netcdf("file.nc", engine="netcdf4", compute=False)
|
|
470
471
|
|
|
471
472
|
|
|
473
|
+
class IONestedDataTree:
|
|
474
|
+
"""
|
|
475
|
+
A few examples that benchmark reading/writing a heavily nested netCDF datatree with
|
|
476
|
+
xarray
|
|
477
|
+
"""
|
|
478
|
+
|
|
479
|
+
timeout = 300.0
|
|
480
|
+
repeat = 1
|
|
481
|
+
number = 5
|
|
482
|
+
|
|
483
|
+
def make_datatree(self, nchildren=10):
|
|
484
|
+
# multiple Dataset
|
|
485
|
+
self.ds = xr.Dataset()
|
|
486
|
+
self.nt = 1000
|
|
487
|
+
self.nx = 90
|
|
488
|
+
self.ny = 45
|
|
489
|
+
self.nchildren = nchildren
|
|
490
|
+
|
|
491
|
+
self.block_chunks = {
|
|
492
|
+
"time": self.nt / 4,
|
|
493
|
+
"lon": self.nx / 3,
|
|
494
|
+
"lat": self.ny / 3,
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
self.time_chunks = {"time": int(self.nt / 36)}
|
|
498
|
+
|
|
499
|
+
times = pd.date_range("1970-01-01", periods=self.nt, freq="D")
|
|
500
|
+
lons = xr.DataArray(
|
|
501
|
+
np.linspace(0, 360, self.nx),
|
|
502
|
+
dims=("lon",),
|
|
503
|
+
attrs={"units": "degrees east", "long_name": "longitude"},
|
|
504
|
+
)
|
|
505
|
+
lats = xr.DataArray(
|
|
506
|
+
np.linspace(-90, 90, self.ny),
|
|
507
|
+
dims=("lat",),
|
|
508
|
+
attrs={"units": "degrees north", "long_name": "latitude"},
|
|
509
|
+
)
|
|
510
|
+
self.ds["foo"] = xr.DataArray(
|
|
511
|
+
randn((self.nt, self.nx, self.ny), frac_nan=0.2),
|
|
512
|
+
coords={"lon": lons, "lat": lats, "time": times},
|
|
513
|
+
dims=("time", "lon", "lat"),
|
|
514
|
+
name="foo",
|
|
515
|
+
attrs={"units": "foo units", "description": "a description"},
|
|
516
|
+
)
|
|
517
|
+
self.ds["bar"] = xr.DataArray(
|
|
518
|
+
randn((self.nt, self.nx, self.ny), frac_nan=0.2),
|
|
519
|
+
coords={"lon": lons, "lat": lats, "time": times},
|
|
520
|
+
dims=("time", "lon", "lat"),
|
|
521
|
+
name="bar",
|
|
522
|
+
attrs={"units": "bar units", "description": "a description"},
|
|
523
|
+
)
|
|
524
|
+
self.ds["baz"] = xr.DataArray(
|
|
525
|
+
randn((self.nx, self.ny), frac_nan=0.2).astype(np.float32),
|
|
526
|
+
coords={"lon": lons, "lat": lats},
|
|
527
|
+
dims=("lon", "lat"),
|
|
528
|
+
name="baz",
|
|
529
|
+
attrs={"units": "baz units", "description": "a description"},
|
|
530
|
+
)
|
|
531
|
+
|
|
532
|
+
self.ds.attrs = {"history": "created for xarray benchmarking"}
|
|
533
|
+
|
|
534
|
+
self.oinds = {
|
|
535
|
+
"time": randint(0, self.nt, 120),
|
|
536
|
+
"lon": randint(0, self.nx, 20),
|
|
537
|
+
"lat": randint(0, self.ny, 10),
|
|
538
|
+
}
|
|
539
|
+
self.vinds = {
|
|
540
|
+
"time": xr.DataArray(randint(0, self.nt, 120), dims="x"),
|
|
541
|
+
"lon": xr.DataArray(randint(0, self.nx, 120), dims="x"),
|
|
542
|
+
"lat": slice(3, 20),
|
|
543
|
+
}
|
|
544
|
+
root = {f"group_{group}": self.ds for group in range(self.nchildren)}
|
|
545
|
+
nested_tree1 = {
|
|
546
|
+
f"group_{group}/subgroup_1": xr.Dataset() for group in range(self.nchildren)
|
|
547
|
+
}
|
|
548
|
+
nested_tree2 = {
|
|
549
|
+
f"group_{group}/subgroup_2": xr.DataArray(np.arange(1, 10)).to_dataset(
|
|
550
|
+
name="a"
|
|
551
|
+
)
|
|
552
|
+
for group in range(self.nchildren)
|
|
553
|
+
}
|
|
554
|
+
nested_tree3 = {
|
|
555
|
+
f"group_{group}/subgroup_2/sub-subgroup_1": self.ds
|
|
556
|
+
for group in range(self.nchildren)
|
|
557
|
+
}
|
|
558
|
+
dtree = root | nested_tree1 | nested_tree2 | nested_tree3
|
|
559
|
+
self.dtree = DataTree.from_dict(dtree)
|
|
560
|
+
|
|
561
|
+
|
|
562
|
+
class IOReadDataTreeNetCDF4(IONestedDataTree):
|
|
563
|
+
def setup(self):
|
|
564
|
+
# TODO: Lazily skipped in CI as it is very demanding and slow.
|
|
565
|
+
# Improve times and remove errors.
|
|
566
|
+
_skip_slow()
|
|
567
|
+
|
|
568
|
+
requires_dask()
|
|
569
|
+
|
|
570
|
+
self.make_datatree()
|
|
571
|
+
self.format = "NETCDF4"
|
|
572
|
+
self.filepath = "datatree.nc4.nc"
|
|
573
|
+
dtree = self.dtree
|
|
574
|
+
dtree.to_netcdf(filepath=self.filepath)
|
|
575
|
+
|
|
576
|
+
def time_load_datatree_netcdf4(self):
|
|
577
|
+
open_datatree(self.filepath, engine="netcdf4").load()
|
|
578
|
+
|
|
579
|
+
def time_open_datatree_netcdf4(self):
|
|
580
|
+
open_datatree(self.filepath, engine="netcdf4")
|
|
581
|
+
|
|
582
|
+
|
|
472
583
|
class IOWriteNetCDFDask:
|
|
473
584
|
timeout = 60
|
|
474
585
|
repeat = 1
|
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
|
|
3
|
+
if which micromamba >/dev/null; then
|
|
4
|
+
conda=micromamba
|
|
5
|
+
elif which mamba >/dev/null; then
|
|
6
|
+
conda=mamba
|
|
7
|
+
else
|
|
8
|
+
conda=conda
|
|
9
|
+
fi
|
|
10
|
+
|
|
3
11
|
# temporarily (?) remove numbagg and numba
|
|
4
|
-
|
|
12
|
+
$conda remove -y numba numbagg sparse
|
|
5
13
|
# temporarily remove numexpr
|
|
6
|
-
|
|
14
|
+
$conda remove -y numexpr
|
|
7
15
|
# temporarily remove backends
|
|
8
|
-
|
|
16
|
+
$conda remove -y pydap
|
|
9
17
|
# forcibly remove packages to avoid artifacts
|
|
10
|
-
|
|
18
|
+
$conda remove -y --force \
|
|
11
19
|
numpy \
|
|
12
20
|
scipy \
|
|
13
21
|
pandas \
|
|
@@ -19,6 +27,7 @@ micromamba remove -y --force \
|
|
|
19
27
|
bottleneck \
|
|
20
28
|
flox
|
|
21
29
|
# pint
|
|
30
|
+
|
|
22
31
|
# to limit the runtime of Upstream CI
|
|
23
32
|
python -m pip install \
|
|
24
33
|
-i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple \
|
|
@@ -28,8 +37,7 @@ python -m pip install \
|
|
|
28
37
|
numpy \
|
|
29
38
|
scipy \
|
|
30
39
|
matplotlib \
|
|
31
|
-
pandas
|
|
32
|
-
h5py
|
|
40
|
+
pandas
|
|
33
41
|
# for some reason pandas depends on pyarrow already.
|
|
34
42
|
# Remove once a `pyarrow` version compiled with `numpy>=2.0` is on `conda-forge`
|
|
35
43
|
python -m pip install \
|
|
@@ -39,13 +47,15 @@ python -m pip install \
|
|
|
39
47
|
--pre \
|
|
40
48
|
--upgrade \
|
|
41
49
|
pyarrow
|
|
50
|
+
# manually install `pint` to pull in new dependencies
|
|
51
|
+
python -m pip install --upgrade pint
|
|
42
52
|
python -m pip install \
|
|
43
53
|
--no-deps \
|
|
44
54
|
--upgrade \
|
|
45
55
|
git+https://github.com/dask/dask \
|
|
46
56
|
git+https://github.com/dask/dask-expr \
|
|
47
57
|
git+https://github.com/dask/distributed \
|
|
48
|
-
git+https://github.com/zarr-developers/zarr \
|
|
58
|
+
git+https://github.com/zarr-developers/zarr.git@main \
|
|
49
59
|
git+https://github.com/Unidata/cftime \
|
|
50
60
|
git+https://github.com/pypa/packaging \
|
|
51
61
|
git+https://github.com/hgrecco/pint \
|
|
@@ -23,12 +23,12 @@ IGNORE_DEPS = {
|
|
|
23
23
|
"isort",
|
|
24
24
|
"mypy",
|
|
25
25
|
"pip",
|
|
26
|
-
"setuptools",
|
|
27
26
|
"pytest",
|
|
28
27
|
"pytest-cov",
|
|
29
28
|
"pytest-env",
|
|
30
|
-
"pytest-xdist",
|
|
31
29
|
"pytest-timeout",
|
|
30
|
+
"pytest-xdist",
|
|
31
|
+
"setuptools",
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
POLICY_MONTHS = {"python": 30, "numpy": 18}
|
|
@@ -162,11 +162,11 @@ def process_pkg(
|
|
|
162
162
|
status = "<"
|
|
163
163
|
elif (req_major, req_minor) > (policy_major, policy_minor):
|
|
164
164
|
status = "> (!)"
|
|
165
|
-
delta = relativedelta(datetime.now(),
|
|
165
|
+
delta = relativedelta(datetime.now(), req_published).normalized()
|
|
166
166
|
n_months = delta.years * 12 + delta.months
|
|
167
167
|
warning(
|
|
168
|
-
f"Package is too new: {pkg}={
|
|
169
|
-
f"published on {
|
|
168
|
+
f"Package is too new: {pkg}={req_major}.{req_minor} was "
|
|
169
|
+
f"published on {req_published:%Y-%m-%d} "
|
|
170
170
|
f"which was {n_months} months ago (policy is {policy_months} months)"
|
|
171
171
|
)
|
|
172
172
|
else:
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import re
|
|
2
|
+
import textwrap
|
|
3
|
+
|
|
4
|
+
import git
|
|
5
|
+
from tlz.itertoolz import last, unique
|
|
6
|
+
|
|
7
|
+
co_author_re = re.compile(r"Co-authored-by: (?P<name>[^<]+?) <(?P<email>.+)>")
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
def main():
|
|
11
|
+
repo = git.Repo(".")
|
|
12
|
+
|
|
13
|
+
most_recent_release = last(repo.tags)
|
|
14
|
+
|
|
15
|
+
# extract information from commits
|
|
16
|
+
contributors = {}
|
|
17
|
+
for commit in repo.iter_commits(f"{most_recent_release.name}.."):
|
|
18
|
+
matches = co_author_re.findall(commit.message)
|
|
19
|
+
if matches:
|
|
20
|
+
contributors.update({email: name for name, email in matches})
|
|
21
|
+
contributors[commit.author.email] = commit.author.name
|
|
22
|
+
|
|
23
|
+
# deduplicate and ignore
|
|
24
|
+
# TODO: extract ignores from .github/release.yml
|
|
25
|
+
ignored = ["dependabot", "pre-commit-ci"]
|
|
26
|
+
unique_contributors = unique(
|
|
27
|
+
contributor
|
|
28
|
+
for contributor in contributors.values()
|
|
29
|
+
if contributor.removesuffix("[bot]") not in ignored
|
|
30
|
+
)
|
|
31
|
+
|
|
32
|
+
sorted_ = sorted(unique_contributors)
|
|
33
|
+
if len(sorted_) > 1:
|
|
34
|
+
names = f"{', '.join(sorted_[:-1])} and {sorted_[-1]}"
|
|
35
|
+
else:
|
|
36
|
+
names = "".join(sorted_)
|
|
37
|
+
|
|
38
|
+
statement = textwrap.dedent(
|
|
39
|
+
f"""\
|
|
40
|
+
Thanks to the {len(sorted_)} contributors to this release:
|
|
41
|
+
{names}
|
|
42
|
+
""".rstrip()
|
|
43
|
+
)
|
|
44
|
+
|
|
45
|
+
print(statement)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
if __name__ == "__main__":
|
|
49
|
+
main()
|