[arch-commits] Commit in python-requests-mock/repos/community-any (PKGBUILD PKGBUILD)

Felix Yan felixonmars at archlinux.org
Sun Sep 1 12:08:04 UTC 2019


    Date: Sunday, September 1, 2019 @ 12:08:04
  Author: felixonmars
Revision: 506115

archrelease: copy trunk to community-any

Added:
  python-requests-mock/repos/community-any/PKGBUILD
    (from rev 506114, python-requests-mock/trunk/PKGBUILD)
Deleted:
  python-requests-mock/repos/community-any/PKGBUILD

----------+
 PKGBUILD |  104 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 52 insertions(+), 52 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-09-01 12:07:53 UTC (rev 506114)
+++ PKGBUILD	2019-09-01 12:08:04 UTC (rev 506115)
@@ -1,52 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-requests-mock
-pkgname=('python-requests-mock' 'python2-requests-mock')
-pkgver=1.6.0
-pkgrel=1
-pkgdesc="A mock of useful classes and functions to be used with python-requests."
-arch=('any')
-url="https://github.com/jamielennox/requests-mock"
-license=('Apache')
-makedepends=('python-pbr' 'python2-pbr' 'python-requests' 'python2-requests' 'python-six'
-             'python2-six')
-checkdepends=('python-testrepository' 'python2-testrepository' 'python-mock' 'python2-mock'
-              'python-purl' 'python2-purl')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/jamielennox/requests-mock/archive/$pkgver.tar.gz")
-sha512sums=('fd044c5a61522ea2611da66e6df46958a33880fecac56d1136bbbbc45c5618d26cc142db79250e3173e89da833ef46290c49025ad45b9fa64bffd8c4c002b969')
-
-prepare() {
-  cp -a requests-mock-$pkgver{,-py2}
-
-  export PBR_VERSION=$pkgver
-}
-
-build() {
-  cd "$srcdir"/requests-mock-$pkgver
-  python setup.py build
-
-  cd "$srcdir"/requests-mock-$pkgver-py2
-  python2 setup.py build
-}
-
-check() {
-  cd "$srcdir"/requests-mock-$pkgver
-  python setup.py testr
-
-  cd "$srcdir"/requests-mock-$pkgver-py2
-  PYTHON=python2 python2 setup.py testr
-}
-
-package_python-requests-mock() {
-  depends=('python-requests' 'python-six')
-
-  cd requests-mock-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-}
-
-package_python2-requests-mock() {
-  depends=('python2-requests' 'python2-six')
-
-  cd requests-mock-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-}

Copied: python-requests-mock/repos/community-any/PKGBUILD (from rev 506114, python-requests-mock/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-09-01 12:08:04 UTC (rev 506115)
@@ -0,0 +1,52 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-requests-mock
+pkgname=('python-requests-mock' 'python2-requests-mock')
+pkgver=1.7.0
+pkgrel=1
+pkgdesc="A mock of useful classes and functions to be used with python-requests."
+arch=('any')
+url="https://github.com/jamielennox/requests-mock"
+license=('Apache')
+makedepends=('python-pbr' 'python2-pbr' 'python-requests' 'python2-requests' 'python-six'
+             'python2-six')
+checkdepends=('python-testrepository' 'python2-testrepository' 'python-mock' 'python2-mock'
+              'python-purl' 'python2-purl')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/jamielennox/requests-mock/archive/$pkgver.tar.gz")
+sha512sums=('a5a2ccc6d23fd47f6b85b7b27c20dbdff303452bc34eef78f2b3316d020cdd21631d840fe798cb721aa1ddedc830b0284a8c042c9d18142513dc61bda1207cab')
+
+prepare() {
+  cp -a requests-mock-$pkgver{,-py2}
+
+  export PBR_VERSION=$pkgver
+}
+
+build() {
+  cd "$srcdir"/requests-mock-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/requests-mock-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/requests-mock-$pkgver
+  python setup.py testr
+
+  cd "$srcdir"/requests-mock-$pkgver-py2
+  PYTHON=python2 python2 setup.py testr
+}
+
+package_python-requests-mock() {
+  depends=('python-requests' 'python-six')
+
+  cd requests-mock-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-requests-mock() {
+  depends=('python2-requests' 'python2-six')
+
+  cd requests-mock-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}


More information about the arch-commits mailing list