[arch-commits] Commit in python-xarray/trunk (PKGBUILD)
Bruno Pagani
archange at archlinux.org
Tue Mar 16 11:06:00 UTC 2021
Date: Tuesday, March 16, 2021 @ 11:06:00
Author: archange
Revision: 891816
0.17.0 upgrade part 1
But currently not working correctly
Modified:
python-xarray/trunk/PKGBUILD
----------+
PKGBUILD | 42 +++++++++++++++++++++++++-----------------
1 file changed, 25 insertions(+), 17 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-03-16 11:05:54 UTC (rev 891815)
+++ PKGBUILD 2021-03-16 11:06:00 UTC (rev 891816)
@@ -2,7 +2,7 @@
_pkg=xarray
pkgname=python-${_pkg}
-pkgver=0.16.2
+pkgver=0.17.0
pkgrel=1
pkgdesc="N-D labeled arrays and datasets in Python"
arch=(any)
@@ -35,35 +35,43 @@
)
checkdepends=(
python-pytest
- python-netcdf4
- python-scipy
+ python-pytest-xdist
+ python-aiobotocore
+ python-bottleneck
+ python-boto3
python-cftime
- python-bottleneck
python-dask
python-distributed
+ python-h5py
+ python-hypothesis
+ python-lxml
python-matplotlib
+ python-netcdf4
+ python-numpy
+ python-pint
+ python-scipy
python-seaborn
- python-pint
)
source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz)
-sha256sums=('38e8439d6c91bcd5b7c0fca349daf8e0643ac68850c987262d53526e9d7d01e4')
+sha256sums=('9c2edad2a4e588f9117c666a4249920b9717fb75703b96998cf65fcd4f60551f')
build() {
- cd ${_pkg}-${pkgver}
- python setup.py build
+ cd ${_pkg}-${pkgver}
+ python setup.py build
}
check() {
- cd ${_pkg}-${pkgver}
- # https://github.com/pydata/xarray/issues/4281
- pytest --deselect xarray/tests/test_distributed.py::test_serializable_locks
+ cd ${_pkg}-${pkgver}
+ # https://github.com/pydata/xarray/issues/4281
+ pytest --deselect xarray/tests/test_distributed.py::test_serializable_locks
+ #python -c "import xarray as xr; xr.show_versions()"
}
package() {
- cd ${_pkg}-${pkgver}
- python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=1
- # Remove tests
- rm -r "${pkgdir}"$(python -c "import site; print(site.getsitepackages()[0])")/xarray/tests
- # Fix permissions
- chmod -R a+r "${pkgdir}"$(python -c "import site; print(site.getsitepackages()[0])")/xarray/
+ cd ${_pkg}-${pkgver}
+ python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=1
+ # Remove tests
+ rm -r "${pkgdir}"$(python -c "import site; print(site.getsitepackages()[0])")/xarray/tests
+ # Fix permissions
+ chmod -R a+r "${pkgdir}"$(python -c "import site; print(site.getsitepackages()[0])")/xarray/
}
More information about the arch-commits
mailing list