diff options
author | Universebenzene | 2024-01-09 15:17:22 +0800 |
---|---|---|
committer | Universebenzene | 2024-01-09 15:17:22 +0800 |
commit | aff835a8be3450c19efe960fcee53fe3efd10cf2 (patch) | |
tree | c17c512e6f4522a8b614bd7296fb475c162430bf | |
parent | 4f8f26e3c091463fd218ce0869f67032c5a618da (diff) | |
download | aur-aff835a8be3450c19efe960fcee53fe3efd10cf2.tar.gz |
Update to version 0.8.6
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 10 |
2 files changed, 11 insertions, 5 deletions
@@ -1,6 +1,6 @@ pkgbase = python-tweakwcs pkgdesc = A package for correcting alignment errors in WCS objects - pkgver = 0.8.5 + pkgver = 0.8.6 pkgrel = 1 url = https://tweakwcs.readthedocs.io arch = any @@ -13,8 +13,8 @@ pkgbase = python-tweakwcs makedepends = python-wheel makedepends = python-build makedepends = python-installer - source = https://files.pythonhosted.org/packages/source/t/tweakwcs/tweakwcs-0.8.5.tar.gz - md5sums = 4bf20233cd6964ef14f4062d843aa705 + source = https://files.pythonhosted.org/packages/source/t/tweakwcs/tweakwcs-0.8.6.tar.gz + md5sums = 09753ca67be326eec9e3e0d5b080fed9 pkgname = python-tweakwcs depends = python>=3.8 @@ -2,7 +2,7 @@ pkgbase=python-tweakwcs _pyname=${pkgbase#python-} pkgname=("python-${_pyname}") -pkgver=0.8.5 +pkgver=0.8.6 pkgrel=1 pkgdesc="A package for correcting alignment errors in WCS objects" arch=('any') @@ -18,7 +18,12 @@ checkdepends=('python-pytest' 'python-stsci.stimage') # 'python-codecov'-cov 'python-stsci.imagestats' source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz") -md5sums=('4bf20233cd6964ef14f4062d843aa705') +md5sums=('09753ca67be326eec9e3e0d5b080fed9') + +get_pyinfo() { + [[ $1 == "site" ]] && python -c "import site; print(site.getsitepackages()[0])" || \ + python -c "import sys; print('$1'.join(map(str, sys.version_info[:2])))" +} build() { cd ${srcdir}/${_pyname}-${pkgver} @@ -40,4 +45,5 @@ package_python-tweakwcs() { install -D -m644 -t "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE.txt install -D -m644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}" python -m installer --destdir="${pkgdir}" dist/*.whl + rm -r ${pkgdir}/$(get_pyinfo site)/{docs,notebooks} } |