diff options
author | adam <adam@pkgsrc.org> | 2022-02-10 14:11:31 +0000 |
---|---|---|
committer | adam <adam@pkgsrc.org> | 2022-02-10 14:11:31 +0000 |
commit | 5cf9b42ce0b4d21cd9385975f9e42c7a7e90f456 (patch) | |
tree | 8e0a16e0f8a0b5e02332792a9d0534291e7092a8 /math/py-xarray | |
parent | 266732ae41752c7bfc877a4a0743ed1f96ae61c3 (diff) | |
download | pkgsrc-5cf9b42ce0b4d21cd9385975f9e42c7a7e90f456.tar.gz |
py-xarray: updated to 0.21.1
v0.21.1 (31 January 2022)
-------------------------
This is a bugfix release to resolve
Bug fixes
~~~~~~~~~
- Add `packaging` as a dependency to Xarray
v0.21.0 (27 January 2022)
-------------------------
New Features
~~~~~~~~~~~~
- New top-level function :py:func:`cross`.
- ``keep_attrs`` support for :py:func:`where`
- Enable the limit option for dask array in the following methods :py:meth:`DataArray.ffill`, :py:meth:`DataArray.bfill`, :py:meth:`Dataset.ffill` and :py:meth:`Dataset.bfill`
Breaking changes
~~~~~~~~~~~~~~~~
- Rely on matplotlib's default datetime converters instead of pandas'
- Improve repr readability when there are a large number of dimensions in datasets or dataarrays by
wrapping the text once the maximum display width has been exceeded.
Deprecations
~~~~~~~~~~~~
- Removed the lock kwarg from the zarr and pydap backends, completing the deprecation cycle started in :issue:`5256`.
- Support for ``python 3.7`` has been dropped.
Bug fixes
~~~~~~~~~
- Preserve chunks when creating a :py:class:`DataArray` from another :py:class:`DataArray`
- Properly support :py:meth:`DataArray.ffill`, :py:meth:`DataArray.bfill`, :py:meth:`Dataset.ffill` and :py:meth:`Dataset.bfill` along chunked dimensions
- Subclasses of ``byte`` and ``str`` (e.g. ``np.str_`` and ``np.bytes_``) will now serialise to disk rather than raising a ``ValueError: unsupported dtype for netCDF4 variable: object`` as they did previously
- Fix applying function with non-xarray arguments using :py:func:`xr.map_blocks`.
- No longer raise an error for an all-nan-but-one argument to
:py:meth:`DataArray.interpolate_na` when using `method='nearest'`
- `dt.season <https://xarray.pydata.org/en/stable/generated/xarray.DataArray.dt.season.html>`_ can now handle NaN and NaT.
- Determination of zarr chunks handles empty lists for encoding chunks or variable chunks that occurs in certain cirumstances
Internal Changes
~~~~~~~~~~~~~~~~
- Replace ``distutils.version`` with ``packaging.version``
- Removed internal checks for ``pd.Panel``
- Add ``pyupgrade`` pre-commit hook
Diffstat (limited to 'math/py-xarray')
-rw-r--r-- | math/py-xarray/Makefile | 14 | ||||
-rw-r--r-- | math/py-xarray/PLIST | 8 | ||||
-rw-r--r-- | math/py-xarray/distinfo | 8 |
3 files changed, 15 insertions, 15 deletions
diff --git a/math/py-xarray/Makefile b/math/py-xarray/Makefile index e214414b091..26ac74ab824 100644 --- a/math/py-xarray/Makefile +++ b/math/py-xarray/Makefile @@ -1,8 +1,7 @@ -# $NetBSD: Makefile,v 1.12 2022/01/04 20:54:18 wiz Exp $ +# $NetBSD: Makefile,v 1.13 2022/02/10 14:11:31 adam Exp $ -DISTNAME= xarray-0.20.2 +DISTNAME= xarray-0.21.1 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} -PKGREVISION= 1 CATEGORIES= math python MASTER_SITES= ${MASTER_SITE_PYPI:=x/xarray/} @@ -13,6 +12,7 @@ LICENSE= apache-2.0 BUILD_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm>=1.15.0:../../devel/py-setuptools_scm DEPENDS+= ${PYPKGPREFIX}-numpy>=1.18:../../math/py-numpy +DEPENDS+= ${PYPKGPREFIX}-packaging>=20.0:../../devel/py-packaging DEPENDS+= ${PYPKGPREFIX}-pandas>=1.1:../../math/py-pandas TEST_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner @@ -20,13 +20,7 @@ USE_LANGUAGES= # none PYSETUPTESTTARGET= pytest -PYTHON_VERSIONS_INCOMPATIBLE= 27 # py-pandas - -.include "../../lang/python/pyversion.mk" -.if ${_PYTHON_VERSION} < 38 -DEPENDS+= ${PYPKGPREFIX}-importlib-metadata-[0-9]*:../../devel/py-importlib-metadata -DEPENDS+= ${PYPKGPREFIX}-typing-extensions>=3.7.4:../../devel/py-typing-extensions -.endif +PYTHON_VERSIONS_INCOMPATIBLE= 27 37 .include "../../lang/python/egg.mk" .include "../../mk/bsd.pkg.mk" diff --git a/math/py-xarray/PLIST b/math/py-xarray/PLIST index 920daaea411..af12bd40981 100644 --- a/math/py-xarray/PLIST +++ b/math/py-xarray/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.5 2021/12/11 21:57:35 adam Exp $ +@comment $NetBSD: PLIST,v 1.6 2022/02/10 14:11:31 adam Exp $ ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt @@ -68,6 +68,9 @@ ${PYSITELIB}/xarray/backends/zarr.pyo ${PYSITELIB}/xarray/coding/__init__.py ${PYSITELIB}/xarray/coding/__init__.pyc ${PYSITELIB}/xarray/coding/__init__.pyo +${PYSITELIB}/xarray/coding/calendar_ops.py +${PYSITELIB}/xarray/coding/calendar_ops.pyc +${PYSITELIB}/xarray/coding/calendar_ops.pyo ${PYSITELIB}/xarray/coding/cftime_offsets.py ${PYSITELIB}/xarray/coding/cftime_offsets.pyc ${PYSITELIB}/xarray/coding/cftime_offsets.pyo @@ -285,6 +288,9 @@ ${PYSITELIB}/xarray/tests/test_backends_locks.pyo ${PYSITELIB}/xarray/tests/test_backends_lru_cache.py ${PYSITELIB}/xarray/tests/test_backends_lru_cache.pyc ${PYSITELIB}/xarray/tests/test_backends_lru_cache.pyo +${PYSITELIB}/xarray/tests/test_calendar_ops.py +${PYSITELIB}/xarray/tests/test_calendar_ops.pyc +${PYSITELIB}/xarray/tests/test_calendar_ops.pyo ${PYSITELIB}/xarray/tests/test_cftime_offsets.py ${PYSITELIB}/xarray/tests/test_cftime_offsets.pyc ${PYSITELIB}/xarray/tests/test_cftime_offsets.pyo diff --git a/math/py-xarray/distinfo b/math/py-xarray/distinfo index ed9feb61445..edcb77076f7 100644 --- a/math/py-xarray/distinfo +++ b/math/py-xarray/distinfo @@ -1,5 +1,5 @@ -$NetBSD: distinfo,v 1.8 2021/12/11 21:57:35 adam Exp $ +$NetBSD: distinfo,v 1.9 2022/02/10 14:11:31 adam Exp $ -BLAKE2s (xarray-0.20.2.tar.gz) = e8b64931d559d9dc1c6857972e8a66ea79b11d9930d7aed8fd479936c72ff960 -SHA512 (xarray-0.20.2.tar.gz) = cd292af68ffd8016e01021e30a2ea83dd36e2f79bd9c3d8e7d83adc5a98a95615091d0102a19a0e3337ae334a701f575a142f476d1465804c8d5fe259ca35f1a -Size (xarray-0.20.2.tar.gz) = 2906021 bytes +BLAKE2s (xarray-0.21.1.tar.gz) = 63eda7194746b21a187ba422b524626d1c68fe7a335a8b1839cc6959415a6afa +SHA512 (xarray-0.21.1.tar.gz) = be5d925971557f492c8ca7e90eb678a0f98cf0a670eaa8a8564bd160a02fcd8a22362a8691c5447a9baaa67b464257f2ab6954747296839b304f3e25cf13487a +Size (xarray-0.21.1.tar.gz) = 2936861 bytes |