[arch-commits] Commit in python-qiniu/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Mon Nov 4 09:40:04 UTC 2019


    Date: Monday, November 4, 2019 @ 09:40:04
  Author: foutrelis
Revision: 523933

archrelease: copy trunk to community-staging-any

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

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

Copied: python-qiniu/repos/community-staging-any/PKGBUILD (from rev 523932, python-qiniu/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-11-04 09:40:04 UTC (rev 523933)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-qiniu
+pkgver=7.2.6
+pkgrel=2
+pkgdesc="Qiniu Resource Storage SDK for Python"
+arch=('any')
+url='https://github.com/qiniu/python-sdk'
+license=('MIT')
+depends=('python-requests' 'python-setuptools')
+checkdepends=('python-pytest-runner')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/qiniu/python-sdk/archive/v$pkgver.tar.gz")
+sha512sums=('fe3c317bfff18afc4109890aa6967d446755ccaa7ff308f28ab06f6f4ba2ccceefdd8b3429c5f8867f4d5a55dfd947a8392dfdd81f00948f950b9c5cbc2992a8')
+
+build() {
+  cd python-sdk-$pkgver
+  python setup.py build
+}
+
+check() {
+  # Extracted from .travis.yml
+  export QINIU_TEST_BUCKET="pythonsdk"
+  export QINIU_TEST_DOMAIN="pythonsdk.qiniudn.com"
+  export QINIU_TEST_ENV="travis"
+
+  cd python-sdk-$pkgver
+  python setup.py pytest || warning "Tests failed"
+}
+
+package() {
+  cd python-sdk-$pkgver
+  python setup.py install -O1 --root "$pkgdir"
+
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list