diff options
author | Universebenzene | 2023-11-04 01:39:29 +0800 |
---|---|---|
committer | Universebenzene | 2023-11-04 01:39:29 +0800 |
commit | 3328a780a1410e5704c7e361c1b98b479029253f (patch) | |
tree | 638b31e1fcc0003fb6975339dcf9cda40ff7b307 /PKGBUILD | |
parent | 327609b6e99809c77bb0adee22fc2c3fa6057caa (diff) | |
download | aur-python-spherical_geometry.tar.gz |
Update to version 1.2.23
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 26 |
1 files changed, 16 insertions, 10 deletions
@@ -2,25 +2,30 @@ pkgbase=python-spherical_geometry _pyname=${pkgbase#python-} pkgname=("python-${_pyname}" "python-${_pyname}-doc") -pkgver=1.2.22 +pkgver=1.2.23 pkgrel=1 pkgdesc="Python based tools for spherical geometry" arch=('i686' 'x86_64') url="http://www.stsci.edu/resources/software_hardware/stsci_python" license=('BSD') makedepends=('python-setuptools-scm' + 'python-wheel' + 'python-build' + 'python-installer' + 'qd>=2.3.24' 'python-numpy' - 'qd>=2.3.7' 'python-sphinx-automodapi' 'python-numpydoc') checkdepends=('python-pytest' 'python-astropy') source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz" 'fix_typo.patch' - 'fix_doc_warning.patch') -md5sums=('8537874297c128da8933416284356e68' + 'fix_doc_warning.patch' + 'revert-inside-png-path.patch') +md5sums=('ad72571c6f83a80b49e033685a24d8c0' '376f76ebdf3c52048a113c386c091210' - 'fed5395d45a2275ccd5e0d63956ecddf') + 'fed5395d45a2275ccd5e0d63956ecddf' + 'ad61482f989d4df861753edc5af0f920') get_pyver() { python -c "import sys; print('$1'.join(map(str, sys.version_info[:2])))" @@ -31,12 +36,14 @@ prepare() { # patch -Np1 -i "${srcdir}/fix_doc_warning.patch" patch -Np1 -i "${srcdir}/fix_typo.patch" + patch -Np1 -i "${srcdir}/revert-inside-png-path.patch" + sed -i "/oldest-supported-numpy/s/, \"oldest-supported-numpy\"//" pyproject.toml export USE_SYSTEM_QD=1 } build() { cd ${srcdir}/${_pyname}-${pkgver} - python setup.py build + python -m build --wheel --no-isolation msg "Building Docs" NUMPY_EXPERIMENTAL_DTYPE_API=1 PYTHONPATH="../build/lib.linux-${CARCH}-cpython-$(get_pyver)" \ @@ -48,19 +55,18 @@ check() { cp "build/lib.linux-${CARCH}-cpython-$(get_pyver)/${_pyname}/math_util.cpython-$(get_pyver)-${CARCH}-linux-gnu.so" "${_pyname}" NUMPY_EXPERIMENTAL_DTYPE_API=1 pytest \ - --deselect=spherical_geometry/tests/test_union.py::test_difficult_unions || warning "Tests failed" # -vv --color=yes -# NUMPY_EXPERIMENTAL_DTYPE_API=1 PYTHONPATH="build/lib.linux-${CARCH}-cpython-$(get_pyver)" pytest -vv --color=yes #"build/lib.linux-${CARCH}-cpython-$(get_pyver)" #\ + --deselect=spherical_geometry/tests/test_union.py::test_difficult_unions || warning "Tests failed" # -vv -l -ra --color=yes -o console_output_style=count } package_python-spherical_geometry() { - depends=('python>=3.6' 'python-numpy>=1.10.0' 'qd>=2.3.7' 'python-astropy>=0.4') + depends=('python>=3.8' 'python-numpy>=1.18' 'qd>=2.3.24' 'python-astropy>=5.0.4') optdepends=('python-spherical_geometry-doc: Documentation for Spherical Geometry Toolkit') cd ${srcdir}/${_pyname}-${pkgver} install -d -m755 "${pkgdir}/usr/share/licenses/${pkgname}/" install -m644 -t "${pkgdir}/usr/share/licenses/${pkgname}/" licenses/* install -D -m644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}" - python setup.py install --root=${pkgdir} --prefix=/usr --optimize=1 + python -m installer --destdir="${pkgdir}" dist/*.whl } package_python-spherical_geometry-doc() { |