[arch-commits] Commit in python-requests-oauthlib/repos/community-any (2 files)
Felix Yan
fyan at archlinux.org
Sat Feb 20 13:48:22 UTC 2016
Date: Saturday, February 20, 2016 @ 14:48:22
Author: fyan
Revision: 162725
archrelease: copy trunk to community-any
Added:
python-requests-oauthlib/repos/community-any/PKGBUILD
(from rev 162724, python-requests-oauthlib/trunk/PKGBUILD)
Deleted:
python-requests-oauthlib/repos/community-any/PKGBUILD
----------+
PKGBUILD | 111 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 55 insertions(+), 56 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2016-02-20 13:48:07 UTC (rev 162724)
+++ PKGBUILD 2016-02-20 13:48:22 UTC (rev 162725)
@@ -1,56 +0,0 @@
-# $Id: PKGBUILD 122344 2014-11-11 08:16:49Z fyan $
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Sebastien Leduc <sebastien at sleduc.fr>
-# Contributor: Roberto Catini <roberto.catini at gmail.com>
-
-pkgbase=python-requests-oauthlib
-pkgname=('python-requests-oauthlib' 'python2-requests-oauthlib')
-_pypiname=requests-oauthlib
-pkgver=0.6.0
-pkgrel=1
-pkgdesc="First-class OAuth library support for Requests"
-arch=('any')
-url="https://pypi.python.org/pypi/requests-oauthlib"
-license=('custom:ISC')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-requests' 'python2-requests'
- 'python-oauthlib' 'python2-oauthlib' 'git')
-checkdepends=('python-pytest' 'python2-pytest' 'python-mock' 'python2-mock'
- 'python-pyjwt' 'python2-pyjwt')
-source=("git+https://github.com/requests/requests-oauthlib.git#tag=v$pkgver")
-md5sums=('SKIP')
-
-prepare() {
- cp -a ${_pypiname}{,-py2}
-}
-
-build() {
- cd "$srcdir/${_pypiname}"
- python setup.py build
-
- cd "$srcdir/${_pypiname}-py2"
- python2 setup.py build
-}
-
-check() {
- cd "$srcdir/${_pypiname}"
- py.test
-
- cd "$srcdir/${_pypiname}-py2"
- py.test2
-}
-
-package_python-requests-oauthlib() {
- depends=('python-requests' 'python-oauthlib')
-
- cd "$srcdir/${_pypiname}"
- python setup.py install --root="$pkgdir/" --optimize=1
- install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-}
-
-package_python2-requests-oauthlib() {
- depends=('python2-requests' 'python2-oauthlib')
-
- cd "$srcdir/${_pypiname}-py2"
- python2 setup.py install --root="$pkgdir/" --optimize=1
- install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-}
Copied: python-requests-oauthlib/repos/community-any/PKGBUILD (from rev 162724, python-requests-oauthlib/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2016-02-20 13:48:22 UTC (rev 162725)
@@ -0,0 +1,55 @@
+# $Id: PKGBUILD 122344 2014-11-11 08:16:49Z fyan $
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Sebastien Leduc <sebastien at sleduc.fr>
+# Contributor: Roberto Catini <roberto.catini at gmail.com>
+
+pkgbase=python-requests-oauthlib
+pkgname=('python-requests-oauthlib' 'python2-requests-oauthlib')
+pkgver=0.6.1
+pkgrel=1
+pkgdesc="First-class OAuth library support for Requests"
+arch=('any')
+url="https://pypi.python.org/pypi/requests-oauthlib"
+license=('custom:ISC')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-requests' 'python2-requests'
+ 'python-oauthlib' 'python2-oauthlib' 'git')
+checkdepends=('python-pytest' 'python2-pytest' 'python-requests-mock' 'python2-requests-mock'
+ 'python-mock' 'python2-mock' 'python-pyjwt' 'python2-pyjwt')
+source=("git+https://github.com/requests/requests-oauthlib.git#tag=v$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+ cp -a requests-oauthlib{,-py2}
+}
+
+build() {
+ cd "$srcdir"/requests-oauthlib
+ python setup.py build
+
+ cd "$srcdir"/requests-oauthlib-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/requests-oauthlib
+ py.test
+
+ cd "$srcdir"/requests-oauthlib-py2
+ py.test2
+}
+
+package_python-requests-oauthlib() {
+ depends=('python-requests' 'python-oauthlib')
+
+ cd "$srcdir"/requests-oauthlib
+ python setup.py install --root="$pkgdir/" --optimize=1
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-requests-oauthlib() {
+ depends=('python2-requests' 'python2-oauthlib')
+
+ cd "$srcdir"/requests-oauthlib-py2
+ python2 setup.py install --root="$pkgdir/" --optimize=1
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
+}
More information about the arch-commits
mailing list