[arch-commits] Commit in python-requests-mock/trunk (PKGBUILD)

2020-11-11 Thread Evangelos Foutras via arch-commits
Date: Wednesday, November 11, 2020 @ 15:03:43
  Author: foutrelis
Revision: 750821

upgpkg: python-requests-mock 1.8.0-3: Python 3.9 rebuild

Modified:
  python-requests-mock/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-11-11 15:03:37 UTC (rev 750820)
+++ PKGBUILD2020-11-11 15:03:43 UTC (rev 750821)
@@ -2,7 +2,7 @@
 
 pkgname=python-requests-mock
 pkgver=1.8.0
-pkgrel=2
+pkgrel=3
 pkgdesc="A mock of useful classes and functions to be used with 
python-requests."
 arch=('any')
 url="https://github.com/jamielennox/requests-mock;


[arch-commits] Commit in python-requests-mock/trunk (PKGBUILD)

2020-05-09 Thread Felix Yan via arch-commits
Date: Saturday, May 9, 2020 @ 06:51:17
  Author: felixonmars
Revision: 625880

upgpkg: python-requests-mock 1.8.0-1

Modified:
  python-requests-mock/trunk/PKGBUILD

--+
 PKGBUILD |9 +
 1 file changed, 5 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-05-09 06:50:34 UTC (rev 625879)
+++ PKGBUILD2020-05-09 06:51:17 UTC (rev 625880)
@@ -1,8 +1,8 @@
 # Maintainer: Felix Yan 
 
 pkgname=python-requests-mock
-pkgver=1.7.0
-pkgrel=4
+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;
@@ -9,9 +9,9 @@
 license=('Apache')
 depends=('python-requests' 'python-six')
 makedepends=('python-pbr')
-checkdepends=('python-testrepository' 'python-mock' 'python-purl')
+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=('a5a2ccc6d23fd47f6b85b7b27c20dbdff303452bc34eef78f2b3316d020cdd21631d840fe798cb721aa1ddedc830b0284a8c042c9d18142513dc61bda1207cab')
+sha512sums=('bdcca2b751a77ae05922a6e8949494365cffd2dd3b3dc26258a87c77eb9fe956439fbd6259c133b0a847b1666d4b17db9641dcb9e1ddc9647d760b9e2f9e5ebf')
 
 export PBR_VERSION=$pkgver
 
@@ -22,6 +22,7 @@
 
 check() {
   cd requests-mock-$pkgver
+  python -m pytest tests/pytest
   python setup.py testr
 }
 


[arch-commits] Commit in python-requests-mock/trunk (PKGBUILD)

2020-02-13 Thread Felix Yan via arch-commits
Date: Thursday, February 13, 2020 @ 15:08:40
  Author: felixonmars
Revision: 570520

upgpkg: python-requests-mock 1.7.0-4: remove python2 sibling

Modified:
  python-requests-mock/trunk/PKGBUILD

--+
 PKGBUILD |   41 ++---
 1 file changed, 10 insertions(+), 31 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-02-13 15:06:12 UTC (rev 570519)
+++ PKGBUILD2020-02-13 15:08:40 UTC (rev 570520)
@@ -1,52 +1,31 @@
 # Maintainer: Felix Yan 
 
-pkgbase=python-requests-mock
-pkgname=('python-requests-mock' 'python2-requests-mock')
+pkgname=python-requests-mock
 pkgver=1.7.0
-pkgrel=3
+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')
-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;)
+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')
 
-prepare() {
-  cp -a requests-mock-$pkgver{,-py2}
+export PBR_VERSION=$pkgver
 
-  export PBR_VERSION=$pkgver
-}
-
 build() {
-  cd "$srcdir"/requests-mock-$pkgver
+  cd requests-mock-$pkgver
   python setup.py build
-
-  cd "$srcdir"/requests-mock-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
-  cd "$srcdir"/requests-mock-$pkgver
+  cd 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')
-
+package() {
   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
-}


[arch-commits] Commit in python-requests-mock/trunk (PKGBUILD)

2019-11-01 Thread Felix Yan via arch-commits
Date: Friday, November 1, 2019 @ 13:37:01
  Author: felixonmars
Revision: 521880

Python 3.8 rebuild

Modified:
  python-requests-mock/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2019-11-01 13:36:56 UTC (rev 521879)
+++ PKGBUILD2019-11-01 13:37:01 UTC (rev 521880)
@@ -3,7 +3,7 @@
 pkgbase=python-requests-mock
 pkgname=('python-requests-mock' 'python2-requests-mock')
 pkgver=1.7.0
-pkgrel=2
+pkgrel=3
 pkgdesc="A mock of useful classes and functions to be used with 
python-requests."
 arch=('any')
 url="https://github.com/jamielennox/requests-mock;


[arch-commits] Commit in python-requests-mock/trunk (PKGBUILD)

2019-10-25 Thread Felix Yan via arch-commits
Date: Friday, October 25, 2019 @ 19:55:30
  Author: felixonmars
Revision: 519626

Python 3.8 rebuild

Modified:
  python-requests-mock/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2019-10-25 19:55:28 UTC (rev 519625)
+++ PKGBUILD2019-10-25 19:55:30 UTC (rev 519626)
@@ -3,7 +3,7 @@
 pkgbase=python-requests-mock
 pkgname=('python-requests-mock' 'python2-requests-mock')
 pkgver=1.7.0
-pkgrel=1
+pkgrel=2
 pkgdesc="A mock of useful classes and functions to be used with 
python-requests."
 arch=('any')
 url="https://github.com/jamielennox/requests-mock;


[arch-commits] Commit in python-requests-mock/trunk (PKGBUILD)

2019-09-01 Thread Felix Yan via arch-commits
Date: Sunday, September 1, 2019 @ 12:07:53
  Author: felixonmars
Revision: 506114

upgpkg: python-requests-mock 1.7.0-1

Modified:
  python-requests-mock/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2019-09-01 12:05:49 UTC (rev 506113)
+++ PKGBUILD2019-09-01 12:07:53 UTC (rev 506114)
@@ -2,7 +2,7 @@
 
 pkgbase=python-requests-mock
 pkgname=('python-requests-mock' 'python2-requests-mock')
-pkgver=1.6.0
+pkgver=1.7.0
 pkgrel=1
 pkgdesc="A mock of useful classes and functions to be used with 
python-requests."
 arch=('any')
@@ -13,7 +13,7 @@
 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=('fd044c5a61522ea2611da66e6df46958a33880fecac56d1136c45c5618d26cc142db79250e3173e89da833ef46290c49025ad45b9fa64bffd8c4c002b969')
+sha512sums=('a5a2ccc6d23fd47f6b85b7b27c20dbdff303452bc34eef78f2b3316d020cdd21631d840fe798cb721aa1ddedc830b0284a8c042c9d18142513dc61bda1207cab')
 
 prepare() {
   cp -a requests-mock-$pkgver{,-py2}


[arch-commits] Commit in python-requests-mock/trunk (PKGBUILD)

2019-04-29 Thread Felix Yan via arch-commits
Date: Monday, April 29, 2019 @ 11:50:29
  Author: felixonmars
Revision: 456039

upgpkg: python-requests-mock 1.6.0-1

Modified:
  python-requests-mock/trunk/PKGBUILD

--+
 PKGBUILD |7 ---
 1 file changed, 4 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2019-04-29 11:40:17 UTC (rev 456038)
+++ PKGBUILD2019-04-29 11:50:29 UTC (rev 456039)
@@ -2,7 +2,7 @@
 
 pkgbase=python-requests-mock
 pkgname=('python-requests-mock' 'python2-requests-mock')
-pkgver=1.5.2
+pkgver=1.6.0
 pkgrel=1
 pkgdesc="A mock of useful classes and functions to be used with 
python-requests."
 arch=('any')
@@ -10,9 +10,10 @@
 license=('Apache')
 makedepends=('python-pbr' 'python2-pbr' 'python-requests' 'python2-requests' 
'python-six'
  'python2-six')
-checkdepends=('python-testrepository' 'python2-testrepository' 'python-mock' 
'python2-mock')
+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=('df9ae5369edf312b51ce5e092264dec9ee7ff14368bff4a203f80152207521f51075ca006f832a3dbfd979baf91d172e45b95a45eeb3e15278baf49f6ede7e28')
+sha512sums=('fd044c5a61522ea2611da66e6df46958a33880fecac56d1136c45c5618d26cc142db79250e3173e89da833ef46290c49025ad45b9fa64bffd8c4c002b969')
 
 prepare() {
   cp -a requests-mock-$pkgver{,-py2}


[arch-commits] Commit in python-requests-mock/trunk (PKGBUILD)

2018-07-21 Thread Felix Yan via arch-commits
Date: Saturday, July 21, 2018 @ 07:14:57
  Author: felixonmars
Revision: 362668

upgpkg: python-requests-mock 1.5.2-1

Modified:
  python-requests-mock/trunk/PKGBUILD

--+
 PKGBUILD |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2018-07-21 07:11:47 UTC (rev 362667)
+++ PKGBUILD2018-07-21 07:14:57 UTC (rev 362668)
@@ -3,8 +3,8 @@
 
 pkgbase=python-requests-mock
 pkgname=('python-requests-mock' 'python2-requests-mock')
-pkgver=1.5.0
-pkgrel=2
+pkgver=1.5.2
+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;
@@ -13,7 +13,7 @@
  'python2-six')
 checkdepends=('python-testrepository' 'python2-testrepository' 'python-mock' 
'python2-mock')
 
source=("$pkgbase-$pkgver.tar.gz::https://github.com/jamielennox/requests-mock/archive/$pkgver.tar.gz;)
-sha512sums=('d37de8ed65f316b40b520f7d87c15711ec0ae04484695010a04c3c4c7877031c19ae6bb3e71f1d554857e6c7915af770701609634e2404ed1a9909750c3041d1')
+sha512sums=('df9ae5369edf312b51ce5e092264dec9ee7ff14368bff4a203f80152207521f51075ca006f832a3dbfd979baf91d172e45b95a45eeb3e15278baf49f6ede7e28')
 
 prepare() {
   cp -a requests-mock-$pkgver{,-py2}


[arch-commits] Commit in python-requests-mock/trunk (PKGBUILD)

2018-07-12 Thread Felix Yan via arch-commits
Date: Thursday, July 12, 2018 @ 20:50:35
  Author: felixonmars
Revision: 358205

upgpkg: python-requests-mock 1.5.0-2

Python 3.7 rebuild

Modified:
  python-requests-mock/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2018-07-12 20:48:34 UTC (rev 358204)
+++ PKGBUILD2018-07-12 20:50:35 UTC (rev 358205)
@@ -4,7 +4,7 @@
 pkgbase=python-requests-mock
 pkgname=('python-requests-mock' 'python2-requests-mock')
 pkgver=1.5.0
-pkgrel=1
+pkgrel=2
 pkgdesc="A mock of useful classes and functions to be used with 
python-requests."
 arch=('any')
 url="https://github.com/jamielennox/requests-mock;


[arch-commits] Commit in python-requests-mock/trunk (PKGBUILD)

2018-05-11 Thread Felix Yan via arch-commits
Date: Friday, May 11, 2018 @ 11:26:31
  Author: felixonmars
Revision: 320712

upgpkg: python-requests-mock 1.5.0-1

Modified:
  python-requests-mock/trunk/PKGBUILD

--+
 PKGBUILD |   28 +++-
 1 file changed, 15 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2018-05-11 11:25:57 UTC (rev 320711)
+++ PKGBUILD2018-05-11 11:26:31 UTC (rev 320712)
@@ -3,35 +3,37 @@
 
 pkgbase=python-requests-mock
 pkgname=('python-requests-mock' 'python2-requests-mock')
-pkgver=1.4.0
+pkgver=1.5.0
 pkgrel=1
 pkgdesc="A mock of useful classes and functions to be used with 
python-requests."
 arch=('any')
-url="https://github.com/openstack/requests-mock;
+url="https://github.com/jamielennox/requests-mock;
 license=('Apache')
-makedepends=('python-pbr' 'python2-pbr' 'python-requests' 'python2-requests'
- 'python-six' 'python2-six' 'git')
+makedepends=('python-pbr' 'python2-pbr' 'python-requests' 'python2-requests' 
'python-six'
+ 'python2-six')
 checkdepends=('python-testrepository' 'python2-testrepository' 'python-mock' 
'python2-mock')
-source=("git+https://github.com/openstack/requests-mock.git#tag=$pkgver;)
-sha512sums=('SKIP')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/jamielennox/requests-mock/archive/$pkgver.tar.gz;)
+sha512sums=('d37de8ed65f316b40b520f7d87c15711ec0ae04484695010a04c3c4c7877031c19ae6bb3e71f1d554857e6c7915af770701609634e2404ed1a9909750c3041d1')
 
 prepare() {
-  cp -a requests-mock{,-py2}
+  cp -a requests-mock-$pkgver{,-py2}
+
+  export PBR_VERSION=$pkgver
 }
 
 build() {
-  cd "$srcdir"/requests-mock
+  cd "$srcdir"/requests-mock-$pkgver
   python setup.py build
 
-  cd "$srcdir"/requests-mock-py2
+  cd "$srcdir"/requests-mock-$pkgver-py2
   python2 setup.py build
 }
 
 check() {
-  cd "$srcdir"/requests-mock
+  cd "$srcdir"/requests-mock-$pkgver
   python setup.py testr
 
-  cd "$srcdir"/requests-mock-py2
+  cd "$srcdir"/requests-mock-$pkgver-py2
   PYTHON=python2 python2 setup.py testr
 }
 
@@ -38,7 +40,7 @@
 package_python-requests-mock() {
   depends=('python-requests' 'python-six')
 
-  cd requests-mock
+  cd requests-mock-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
 }
 
@@ -45,6 +47,6 @@
 package_python2-requests-mock() {
   depends=('python2-requests' 'python2-six')
 
-  cd requests-mock-py2
+  cd requests-mock-$pkgver-py2
   python2 setup.py install --root="$pkgdir" --optimize=1
 }


[arch-commits] Commit in python-requests-mock/trunk (PKGBUILD)

2017-12-05 Thread Felix Yan via arch-commits
Date: Wednesday, December 6, 2017 @ 02:38:24
  Author: felixonmars
Revision: 272354

upgpkg: python-requests-mock 1.4.0-1

Modified:
  python-requests-mock/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2017-12-06 02:37:55 UTC (rev 272353)
+++ PKGBUILD2017-12-06 02:38:24 UTC (rev 272354)
@@ -3,7 +3,7 @@
 
 pkgbase=python-requests-mock
 pkgname=('python-requests-mock' 'python2-requests-mock')
-pkgver=1.3.0
+pkgver=1.4.0
 pkgrel=1
 pkgdesc="A mock of useful classes and functions to be used with 
python-requests."
 arch=('any')
@@ -13,7 +13,7 @@
  'python-six' 'python2-six' 'git')
 checkdepends=('python-testrepository' 'python2-testrepository' 'python-mock' 
'python2-mock')
 source=("git+https://github.com/openstack/requests-mock.git#tag=$pkgver;)
-md5sums=('SKIP')
+sha512sums=('SKIP')
 
 prepare() {
   cp -a requests-mock{,-py2}


[arch-commits] Commit in python-requests-mock/trunk (PKGBUILD)

2017-02-02 Thread Felix Yan
Date: Thursday, February 2, 2017 @ 12:32:28
  Author: felixonmars
Revision: 209697

upgpkg: python-requests-mock 1.3.0-1

Modified:
  python-requests-mock/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2017-02-02 11:42:11 UTC (rev 209696)
+++ PKGBUILD2017-02-02 12:32:28 UTC (rev 209697)
@@ -3,8 +3,8 @@
 
 pkgbase=python-requests-mock
 pkgname=('python-requests-mock' 'python2-requests-mock')
-pkgver=1.2.0
-pkgrel=2
+pkgver=1.3.0
+pkgrel=1
 pkgdesc="A mock of useful classes and functions to be used with 
python-requests."
 arch=('any')
 url="https://github.com/openstack/requests-mock;


[arch-commits] Commit in python-requests-mock/trunk (PKGBUILD)

2016-12-24 Thread Bartłomiej Piotrowski
Date: Sunday, December 25, 2016 @ 02:51:19
  Author: bpiotrowski
Revision: 201807

Python 3.6 rebuild

Modified:
  python-requests-mock/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2016-12-25 02:50:49 UTC (rev 201806)
+++ PKGBUILD2016-12-25 02:51:19 UTC (rev 201807)
@@ -4,7 +4,7 @@
 pkgbase=python-requests-mock
 pkgname=('python-requests-mock' 'python2-requests-mock')
 pkgver=1.2.0
-pkgrel=1
+pkgrel=2
 pkgdesc="A mock of useful classes and functions to be used with 
python-requests."
 arch=('any')
 url="https://github.com/openstack/requests-mock;


[arch-commits] Commit in python-requests-mock/trunk (PKGBUILD)

2016-12-04 Thread Felix Yan
Date: Monday, December 5, 2016 @ 06:49:09
  Author: felixonmars
Revision: 197901

upgpkg: python-requests-mock 1.2.0-1

Modified:
  python-requests-mock/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2016-12-05 03:46:55 UTC (rev 197900)
+++ PKGBUILD2016-12-05 06:49:09 UTC (rev 197901)
@@ -3,7 +3,7 @@
 
 pkgbase=python-requests-mock
 pkgname=('python-requests-mock' 'python2-requests-mock')
-pkgver=1.1.0
+pkgver=1.2.0
 pkgrel=1
 pkgdesc="A mock of useful classes and functions to be used with 
python-requests."
 arch=('any')


[arch-commits] Commit in python-requests-mock/trunk (PKGBUILD)

2016-09-14 Thread Felix Yan
Date: Wednesday, September 14, 2016 @ 14:21:11
  Author: felixonmars
Revision: 189305

upgpkg: python-requests-mock 1.1.0-1

Modified:
  python-requests-mock/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2016-09-14 12:09:51 UTC (rev 189304)
+++ PKGBUILD2016-09-14 14:21:11 UTC (rev 189305)
@@ -3,7 +3,7 @@
 
 pkgbase=python-requests-mock
 pkgname=('python-requests-mock' 'python2-requests-mock')
-pkgver=1.0.0
+pkgver=1.1.0
 pkgrel=1
 pkgdesc="A mock of useful classes and functions to be used with 
python-requests."
 arch=('any')


[arch-commits] Commit in python-requests-mock/trunk (PKGBUILD)

2016-05-09 Thread Felix Yan
Date: Monday, May 9, 2016 @ 15:48:12
  Author: fyan
Revision: 174419

upgpkg: python-requests-mock 1.0.0-1

Modified:
  python-requests-mock/trunk/PKGBUILD

--+
 PKGBUILD |   18 +-
 1 file changed, 9 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2016-05-09 10:34:08 UTC (rev 174418)
+++ PKGBUILD2016-05-09 13:48:12 UTC (rev 174419)
@@ -3,7 +3,7 @@
 
 pkgbase=python-requests-mock
 pkgname=('python-requests-mock' 'python2-requests-mock')
-pkgver=0.7.0
+pkgver=1.0.0
 pkgrel=1
 pkgdesc="A mock of useful classes and functions to be used with 
python-requests."
 arch=('any')
@@ -20,18 +20,18 @@
 }
 
 build() {
-  cd "$srcdir/requests-mock"
+  cd "$srcdir"/requests-mock
   python setup.py build
 
-  cd "$srcdir/requests-mock-py2"
+  cd "$srcdir"/requests-mock-py2
   python2 setup.py build
 }
 
 check() {
-  cd "$srcdir/requests-mock"
+  cd "$srcdir"/requests-mock
   python setup.py testr
 
-  cd "$srcdir/requests-mock-py2"
+  cd "$srcdir"/requests-mock-py2
   PYTHON=python2 python2 setup.py testr
 }
 
@@ -38,13 +38,13 @@
 package_python-requests-mock() {
   depends=('python-requests' 'python-six')
 
-  cd "$srcdir/requests-mock"
-  python setup.py install --root="$pkgdir/" --optimize=1
+  cd requests-mock
+  python setup.py install --root="$pkgdir" --optimize=1
 }
 
 package_python2-requests-mock() {
   depends=('python2-requests' 'python2-six')
 
-  cd "$srcdir/requests-mock-py2"
-  python2 setup.py install --root="$pkgdir/" --optimize=1
+  cd requests-mock-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
 }


[arch-commits] Commit in python-requests-mock/trunk (PKGBUILD)

2016-02-25 Thread Felix Yan
Date: Friday, February 26, 2016 @ 08:00:05
  Author: fyan
Revision: 163477

fix testr as it doesn't run python2 without setting $PYTHON

Modified:
  python-requests-mock/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2016-02-26 06:57:21 UTC (rev 163476)
+++ PKGBUILD2016-02-26 07:00:05 UTC (rev 163477)
@@ -32,7 +32,7 @@
   python setup.py testr
 
   cd "$srcdir/requests-mock-py2"
-  python2 setup.py testr
+  PYTHON=python2 python2 setup.py testr
 }
 
 package_python-requests-mock() {