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

Bartłomiej Piotrowski bpiotrowski at archlinux.org
Sun Dec 25 17:19:35 UTC 2016


    Date: Sunday, December 25, 2016 @ 17:19:33
  Author: bpiotrowski
Revision: 202076

archrelease: copy trunk to community-staging-any

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

----------+
 LICENSE  |   22 ++++++++++++++++++++++
 PKGBUILD |   56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 78 insertions(+)

Copied: python-qiniu/repos/community-staging-any/LICENSE (from rev 202075, python-qiniu/trunk/LICENSE)
===================================================================
--- community-staging-any/LICENSE	                        (rev 0)
+++ community-staging-any/LICENSE	2016-12-25 17:19:33 UTC (rev 202076)
@@ -0,0 +1,22 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 Qiniu, Ltd.<sdk at qiniu.com>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+

Copied: python-qiniu/repos/community-staging-any/PKGBUILD (from rev 202075, python-qiniu/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-25 17:19:33 UTC (rev 202076)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-qiniu
+pkgname=(python-qiniu python2-qiniu)
+pkgver=7.1.0
+_commit=e0c79e5070ebe2220df1ed3da73062d0fad498eb
+pkgrel=2
+pkgdesc="Qiniu Resource Storage SDK for Python"
+arch=('any')
+url='https://github.com/qiniu/python-sdk'
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-requests' 'python2-requests' 'git')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+source=("qiniu::git+https://github.com/qiniu/python-sdk#commit=$_commit")
+sha512sums=('SKIP')
+
+prepare() {
+  cp -a qiniu{,-py2}
+}
+
+check() {
+  # Extracted from .travis.yml
+  export QINIU_ACCESS_KEY="QWYn5TFQsLLU1pL5MFEmX3s5DmHdUThav9WyOWOm"
+  export QINIU_SECRET_KEY="Bxckh6FA-Fbs9Yt3i3cbKVK22UPBmAOHJcL95pGz"
+  export QINIU_TEST_BUCKET="pythonsdk"
+  export QINIU_TEST_DOMAIN="pythonsdk.qiniudn.com"
+  export QINIU_TEST_ENV="travis"
+
+  cd "$srcdir"/qiniu
+  python setup.py ptr
+
+  cd "$srcdir"/qiniu-py2
+  python2 setup.py ptr
+}
+
+package_python-qiniu() {
+  depends=('python-requests' 'python-setuptools')
+
+  cd qiniu
+  python setup.py install -O1 --root "$pkgdir"
+
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-qiniu() {
+  depends=('python2-requests' 'python2-setuptools')
+
+  cd qiniu-py2
+  python2 setup.py install -O1 --root "$pkgdir"
+
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+  # Don't conflict with python 3.x version
+  mv "$pkgdir"/usr/bin/qiniupy{,2}
+}



More information about the arch-commits mailing list