Date: Thursday, February 2, 2017 @ 12:32:46 Author: felixonmars Revision: 209698
archrelease: copy trunk to community-any Added: python-requests-mock/repos/community-any/PKGBUILD (from rev 209697, python-requests-mock/trunk/PKGBUILD) Deleted: python-requests-mock/repos/community-any/PKGBUILD ----------+ PKGBUILD | 100 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 50 insertions(+), 50 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2017-02-02 12:32:28 UTC (rev 209697) +++ PKGBUILD 2017-02-02 12:32:46 UTC (rev 209698) @@ -1,50 +0,0 @@ -# $Id$ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgbase=python-requests-mock -pkgname=('python-requests-mock' 'python2-requests-mock') -pkgver=1.2.0 -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" -license=('Apache') -makedepends=('python-pbr' 'python2-pbr' 'python-requests' 'python2-requests' - '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') - -prepare() { - cp -a requests-mock{,-py2} -} - -build() { - cd "$srcdir"/requests-mock - python setup.py build - - cd "$srcdir"/requests-mock-py2 - python2 setup.py build -} - -check() { - cd "$srcdir"/requests-mock - python setup.py testr - - cd "$srcdir"/requests-mock-py2 - PYTHON=python2 python2 setup.py testr -} - -package_python-requests-mock() { - depends=('python-requests' 'python-six') - - cd requests-mock - python setup.py install --root="$pkgdir" --optimize=1 -} - -package_python2-requests-mock() { - depends=('python2-requests' 'python2-six') - - cd requests-mock-py2 - python2 setup.py install --root="$pkgdir" --optimize=1 -} Copied: python-requests-mock/repos/community-any/PKGBUILD (from rev 209697, python-requests-mock/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2017-02-02 12:32:46 UTC (rev 209698) @@ -0,0 +1,50 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgbase=python-requests-mock +pkgname=('python-requests-mock' 'python2-requests-mock') +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" +license=('Apache') +makedepends=('python-pbr' 'python2-pbr' 'python-requests' 'python2-requests' + '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') + +prepare() { + cp -a requests-mock{,-py2} +} + +build() { + cd "$srcdir"/requests-mock + python setup.py build + + cd "$srcdir"/requests-mock-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/requests-mock + python setup.py testr + + cd "$srcdir"/requests-mock-py2 + PYTHON=python2 python2 setup.py testr +} + +package_python-requests-mock() { + depends=('python-requests' 'python-six') + + cd requests-mock + python setup.py install --root="$pkgdir" --optimize=1 +} + +package_python2-requests-mock() { + depends=('python2-requests' 'python2-six') + + cd requests-mock-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 +}