summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorIyán Méndez Veiga2023-12-04 21:07:22 +0100
committerIyán Méndez Veiga2023-12-04 21:07:22 +0100
commit8ec409f37c4fea1e396f58fce8f3ea292aa69597 (patch)
tree96cad9568f6e133c7e20c639f909f2bce48985cd
parentc16ce59e6ba3df45513f641a0a6e8ba097424313 (diff)
downloadaur-8ec409f37c4fea1e396f58fce8f3ea292aa69597.tar.gz
upgpkg: python-ibm-platform-services 0.47.1-1
upstream release add check()
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD15
2 files changed, 18 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 1134ae2356bb..5d4bfaf8e70c 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,17 +1,19 @@
pkgbase = python-ibm-platform-services
pkgdesc = Python client library for IBM Cloud Platform Services
- pkgver = 0.47.0
+ pkgver = 0.47.1
pkgrel = 1
url = https://github.com/IBM/platform-services-python-sdk
arch = any
license = Apache
+ checkdepends = python-pytest
+ checkdepends = python-responses
makedepends = python-build
makedepends = python-installer
makedepends = python-setuptools
makedepends = python-wheel
depends = python
depends = python-ibm-cloud-sdk-core
- source = platform-services-python-sdk-0.47.0.tar.gz::https://github.com/IBM/platform-services-python-sdk/archive/refs/tags/v0.47.0.tar.gz
- b2sums = 6b00e2c4d606e305b76ebdaff40f571326a4da33ef4758bf7741a7ec9c725409e017c81dc192ce6dad5331394627596e1846fc97601c6c68ecbc4e78266fd41c
+ source = platform-services-python-sdk-0.47.1.tar.gz::https://github.com/IBM/platform-services-python-sdk/archive/refs/tags/v0.47.1.tar.gz
+ b2sums = 76a33b09ce4a73c48644d1cfd8782dbf09de2199ff08e3c749926c6e05d3d692636cedec7a05092521f1a5ec296894c0626208e293a046805f190497fdc2ed2b
pkgname = python-ibm-platform-services
diff --git a/PKGBUILD b/PKGBUILD
index 16073a41958f..5f9997563887 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Iyán Méndez Veiga <me (at) iyanmv (dot) com>
_pkgname=platform-services-python-sdk
pkgname=python-ibm-platform-services
-pkgver=0.47.0
+pkgver=0.47.1
pkgrel=1
pkgdesc="Python client library for IBM Cloud Platform Services"
arch=('any')
@@ -17,14 +17,25 @@ makedepends=(
'python-setuptools'
'python-wheel'
)
+checkdepends=(
+ 'python-pytest'
+ 'python-responses'
+)
source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/IBM/${_pkgname}/archive/refs/tags/v${pkgver}.tar.gz")
-b2sums=('6b00e2c4d606e305b76ebdaff40f571326a4da33ef4758bf7741a7ec9c725409e017c81dc192ce6dad5331394627596e1846fc97601c6c68ecbc4e78266fd41c')
+b2sums=('76a33b09ce4a73c48644d1cfd8782dbf09de2199ff08e3c749926c6e05d3d692636cedec7a05092521f1a5ec296894c0626208e293a046805f190497fdc2ed2b')
build() {
cd "${srcdir}/${_pkgname}-${pkgver}"
python -m build --wheel --no-isolation
}
+check() {
+ local _site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+ cd "${_pkgname}-${pkgver}"
+ python -m installer --destdir=test_dir dist/*.whl
+ PYTHONPATH="test_dir/$_site_packages:$PYTHONPATH" pytest test/unit
+}
+
package() {
cd "${srcdir}/${_pkgname}-${pkgver}"
python -m installer --destdir="$pkgdir" dist/*.whl