summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAinola2018-09-03 00:13:18 -0600
committerAinola2018-09-03 00:13:18 -0600
commit708814a9d7632bc326b264aaffee12b9e8a8e3aa (patch)
tree655cc34849cd5c01ecab817ec3267fbacdc63d29
parenta6c1ad5b3cdc9dd85b9b2f6e82eea73ef98f8426 (diff)
downloadaur-708814a9d7632bc326b264aaffee12b9e8a8e3aa.tar.gz
sync with stable package
-rw-r--r--.SRCINFO36
-rw-r--r--PKGBUILD53
2 files changed, 73 insertions, 16 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 57fca8804b4..f8f1b666cd5 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,18 +1,42 @@
+# Generated by mksrcinfo v8
+# Mon Sep 3 06:13:13 UTC 2018
pkgbase = python-google-auth-httplib2-git
- pkgdesc = An httplib2 transport for google-auth
+ pkgdesc = Google Authentication Library: httplib2 transport
pkgver = r8.e7cd722
pkgrel = 1
url = https://github.com/GoogleCloudPlatform/google-auth-library-python-httplib2
arch = any
license = Apache
+ checkdepends = python-pytest-runner
+ checkdepends = python2-pytest-runner
+ checkdepends = python-mock
+ checkdepends = python2-mock
+ checkdepends = python-flask
+ checkdepends = python2-flask
+ checkdepends = python-pytest-localserver
+ checkdepends = python2-pytest-localserver
makedepends = python-setuptools
- depends = python
- depends = python-google-auth
- depends = python-httplib2
- depends = python-six
+ makedepends = python2-setuptools
+ makedepends = python-google-auth
+ makedepends = python2-google-auth
+ makedepends = python-httplib2
+ makedepends = python2-httplib2
+ makedepends = python-six
+ makedepends = python2-six
provides = python-google-auth-httplib2
+ provides = python2-google-auth-httplib2
+ conflicts = python-google-auth-httplib2
+ conflicts = python2-google-auth-httplib2
source = git+https://github.com/GoogleCloudPlatform/google-auth-library-python-httplib2.git
- sha256sums = SKIP
+ sha512sums = SKIP
pkgname = python-google-auth-httplib2-git
+ depends = python-google-auth
+ depends = python-httplib2
+ depends = python-six
+
+pkgname = python2-google-auth-httplib2-git
+ depends = python2-google-auth
+ depends = python2-httplib2
+ depends = python2-six
diff --git a/PKGBUILD b/PKGBUILD
index 378bc2496b8..de46a46c5ed 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,29 +1,62 @@
# Maintainer: Ainola
+# Contributor: Felix Yan <felixonmars@archlinux.org> (Stable Package)
-pkgname=python-google-auth-httplib2-git
+pkgbase=python-google-auth-httplib2-git
+pkgname=(python-google-auth-httplib2-git python2-google-auth-httplib2-git)
pkgver=r8.e7cd722
pkgrel=1
-pkgdesc="An httplib2 transport for google-auth"
-arch=('any')
+pkgdesc="Google Authentication Library: httplib2 transport"
url="https://github.com/GoogleCloudPlatform/google-auth-library-python-httplib2"
license=('Apache')
-makedepends=('python-setuptools')
-depends=('python' 'python-google-auth' 'python-httplib2' 'python-six')
-provides=('python-google-auth-httplib2')
+arch=('any')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-google-auth' 'python2-google-auth'
+ 'python-httplib2' 'python2-httplib2' 'python-six' 'python2-six')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-mock' 'python2-mock'
+ 'python-flask' 'python2-flask' 'python-pytest-localserver'
+ 'python2-pytest-localserver')
+provides=('python-google-auth-httplib2' 'python2-google-auth-httplib2')
+conflicts=('python-google-auth-httplib2' 'python2-google-auth-httplib2')
source=("git+https://github.com/GoogleCloudPlatform/google-auth-library-python-httplib2.git")
-sha256sums=('SKIP')
+sha512sums=('SKIP')
pkgver() {
- cd "$srcdir/google-auth-library-python-httplib2"
+ cd google-auth-library-python-httplib2
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
+prepare() {
+ cp -a google-auth-library-python-httplib2{,-py2}
+}
+
build() {
cd "$srcdir/google-auth-library-python-httplib2"
python setup.py build
+
+ cd "$srcdir/google-auth-library-python-httplib2-py2"
+ python2 setup.py build
}
-package() {
+check() {
+ cd "$srcdir/google-auth-library-python-httplib2"
+ python setup.py pytest
+
cd "$srcdir/google-auth-library-python-httplib2"
- python setup.py install --root="$pkgdir/" --optimize=1
+ python2 setup.py pytest
}
+
+package_python-google-auth-httplib2-git() {
+ depends=('python-google-auth' 'python-httplib2' 'python-six')
+
+ cd "google-auth-library-python-httplib2"
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-google-auth-httplib2-git() {
+ depends=('python2-google-auth' 'python2-httplib2' 'python2-six')
+
+ cd "google-auth-library-python-httplib2-py2"
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+