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

Felix Yan felixonmars at archlinux.org
Sat May 9 06:51:34 UTC 2020


    Date: Saturday, May 9, 2020 @ 06:51:33
  Author: felixonmars
Revision: 625881

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |   63 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 32 insertions(+), 31 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-09 06:51:17 UTC (rev 625880)
+++ PKGBUILD	2020-05-09 06:51:33 UTC (rev 625881)
@@ -1,31 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=python-requests-mock
-pkgver=1.7.0
-pkgrel=4
-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')
-depends=('python-requests' 'python-six')
-makedepends=('python-pbr')
-checkdepends=('python-testrepository' 'python-mock' 'python-purl')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/jamielennox/requests-mock/archive/$pkgver.tar.gz")
-sha512sums=('a5a2ccc6d23fd47f6b85b7b27c20dbdff303452bc34eef78f2b3316d020cdd21631d840fe798cb721aa1ddedc830b0284a8c042c9d18142513dc61bda1207cab')
-
-export PBR_VERSION=$pkgver
-
-build() {
-  cd requests-mock-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd requests-mock-$pkgver
-  python setup.py testr
-}
-
-package() {
-  cd requests-mock-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-}

Copied: python-requests-mock/repos/community-any/PKGBUILD (from rev 625880, python-requests-mock/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-05-09 06:51:33 UTC (rev 625881)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-requests-mock
+pkgver=1.8.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')
+depends=('python-requests' 'python-six')
+makedepends=('python-pbr')
+checkdepends=('python-mock' 'python-purl' 'python-pytest' 'python-testrepository')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/jamielennox/requests-mock/archive/$pkgver.tar.gz")
+sha512sums=('bdcca2b751a77ae05922a6e8949494365cffd2dd3b3dc26258a87c77eb9fe956439fbd6259c133b0a847b1666d4b17db9641dcb9e1ddc9647d760b9e2f9e5ebf')
+
+export PBR_VERSION=$pkgver
+
+build() {
+  cd requests-mock-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd requests-mock-$pkgver
+  python -m pytest tests/pytest
+  python setup.py testr
+}
+
+package() {
+  cd requests-mock-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}


More information about the arch-commits mailing list