Date: Monday, March 16, 2020 @ 22:00:08 Author: bgyorgy Revision: 599877
archrelease: copy trunk to community-any Added: python-httpretty/repos/community-any/PKGBUILD (from rev 599876, python-httpretty/trunk/PKGBUILD) Deleted: python-httpretty/repos/community-any/PKGBUILD ----------+ PKGBUILD | 78 ++++++++++++++++++++++++------------------------------------- 1 file changed, 31 insertions(+), 47 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2020-03-16 22:00:04 UTC (rev 599876) +++ PKGBUILD 2020-03-16 22:00:08 UTC (rev 599877) @@ -1,47 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgbase=python-httpretty -pkgname=("python-httpretty" "python2-httpretty") -pkgver=0.9.7 -_commit=c9d0ab7ddeb8f15769e358d4549e4f8c9053fb56 -pkgrel=1 -pkgdesc="HTTP client mock for Python" -arch=('any') -url="https://github.com/gabrielfalcao/httpretty" -license=('MIT') -makedepends=('python-urllib3' 'python2-urllib3' 'python-setuptools' 'python2-setuptools') -checkdepends=('python-nose' 'python2-nose' 'python-coverage' 'python2-coverage' 'python-mock' - 'python2-mock' 'python-sure' 'python2-sure' 'python-tornado' 'python2-tornado' - 'python-requests' 'python2-requests' 'python-httplib2' 'python2-httplib2' - 'python-nose-randomly' 'python2-nose-randomly' 'python-rednose' 'python2-rednose') -source=("$pkgbase-$_commit.tar.gz::https://github.com/gabrielfalcao/HTTPretty/archive/$_commit.tar.gz") -sha512sums=('6a20c7c78b402ed2c38719dc94490495852d83284fba101a6f7448940afcd62035a90ec9955b6abcc711e2791331404bdf6e1e2f7979186c6513a74fd9273de3') - -prepare() { - mv HTTPretty-{$_commit,$pkgver} - cp -a HTTPretty-$pkgver{,-py2} -} - -check() { - cd HTTPretty-$pkgver - nosetests3 -s tests - - cd ../HTTPretty-$pkgver-py2 - nosetests2 -s tests -} - -package_python-httpretty() { - depends=('python-urllib3') - - cd HTTPretty-$pkgver - python3 setup.py install --root="$pkgdir" --optimize=1 - install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING -} - -package_python2-httpretty() { - depends=('python2-urllib3') - - cd HTTPretty-$pkgver-py2 - python2 setup.py install --root="$pkgdir" --optimize=1 - install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING -} Copied: python-httpretty/repos/community-any/PKGBUILD (from rev 599876, python-httpretty/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2020-03-16 22:00:08 UTC (rev 599877) @@ -0,0 +1,31 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgname=python-httpretty +pkgver=0.9.7 +_commit=c9d0ab7ddeb8f15769e358d4549e4f8c9053fb56 +pkgrel=2 +pkgdesc="HTTP client mock for Python" +arch=('any') +url="https://github.com/gabrielfalcao/httpretty" +license=('MIT') +depends=('python-urllib3') +makedepends=('python-setuptools') +checkdepends=('python-nose' 'python-coverage' 'python-mock' 'python-sure' 'python-tornado' + 'python-requests' 'python-httplib2' 'python-nose-randomly' 'python-rednose') +source=("$pkgname-$_commit.tar.gz::https://github.com/gabrielfalcao/HTTPretty/archive/$_commit.tar.gz") +sha512sums=('6a20c7c78b402ed2c38719dc94490495852d83284fba101a6f7448940afcd62035a90ec9955b6abcc711e2791331404bdf6e1e2f7979186c6513a74fd9273de3') + +prepare() { + mv HTTPretty-{$_commit,$pkgver} +} + +check() { + cd HTTPretty-$pkgver + nosetests3 -s tests +} + +package_python-httpretty() { + cd HTTPretty-$pkgver + python3 setup.py install --root="$pkgdir" --optimize=1 + install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING +}