Date: Friday, April 7, 2023 @ 07:34:16
  Author: felixonmars
Revision: 1440861

archrelease: copy trunk to community-staging-any

Added:
  python-qiniu/repos/community-staging-any/
  python-qiniu/repos/community-staging-any/PKGBUILD
    (from rev 1440860, python-qiniu/trunk/PKGBUILD)

----------+
 PKGBUILD |   31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

Copied: python-qiniu/repos/community-staging-any/PKGBUILD (from rev 1440860, 
python-qiniu/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-07 07:34:16 UTC (rev 1440861)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-qiniu
+pkgver=7.10.0
+pkgrel=2
+pkgdesc="Qiniu Resource Storage SDK for Python"
+arch=('any')
+url='https://github.com/qiniu/python-sdk'
+license=('MIT')
+depends=('python-requests')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest' 'python-freezegun')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/qiniu/python-sdk/archive/v$pkgver.tar.gz";)
+sha512sums=('50e3e9d2eecb6471734836db0f4cf28180735f5006dda3b62dd66df28a30ab8eea98cb316c687cac785cfc8fe42fc4d8b86f96c0014347c859625c431309cf42')
+
+build() {
+  cd python-sdk-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd python-sdk-$pkgver
+  pytest || echo "Tests failed"
+}
+
+package() {
+  cd python-sdk-$pkgver
+  python setup.py install -O1 --root "$pkgdir"
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}

Reply via email to