Date: Tuesday, December 18, 2018 @ 13:45:58 Author: felixonmars Revision: 416654
archrelease: copy trunk to community-any Added: python-responses/repos/community-any/PKGBUILD (from rev 416653, python-responses/trunk/PKGBUILD) Deleted: python-responses/repos/community-any/PKGBUILD ----------+ PKGBUILD | 106 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 53 insertions(+), 53 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2018-12-18 13:45:20 UTC (rev 416653) +++ PKGBUILD 2018-12-18 13:45:58 UTC (rev 416654) @@ -1,53 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgbase=python-responses -pkgname=('python-responses' 'python2-responses') -pkgver=0.10.4 -pkgrel=1 -pkgdesc='A utility library for mocking out the `requests` Python library.' -arch=('any') -license=('Apache') -url='https://github.com/getsentry/responses' -makedepends=('python-setuptools' 'python2-setuptools' 'python-requests' 'python2-requests' - 'python-biscuits' 'python2-cookies' 'python-six' 'python2-six' 'python2-mock') -checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-pytest-cov' - 'python2-pytest-cov' 'flake8' 'python2-flake8' 'python-pytest-localserver' - 'python2-pytest-localserver') -source=("$pkgbase-$pkgver.tar.gz::https://github.com/getsentry/responses/archive/$pkgver.tar.gz") -sha512sums=('29167c93be40343a5f43476fc5243a1fa79ae48bb5db073f5f0b87b9c4159afe8f8ecafc398b2c7abdc7384be7e6083922c050e8abbb19a1cac4928d04203dcc') - -prepare() { - cp -a responses-$pkgver{,-py2} -} - -build() { - cd "$srcdir"/responses-$pkgver - python setup.py build - - cd "$srcdir"/responses-$pkgver-py2 - python2 setup.py build -} - -check() { - cd "$srcdir"/responses-$pkgver - python setup.py pytest - - cd "$srcdir"/responses-$pkgver-py2 - python2 setup.py pytest -} - -package_python-responses() { - depends=('python-requests' 'python-biscuits' 'python-six') - - cd responses-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 -} - -package_python2-responses() { - depends=('python2-requests' 'python2-cookies' 'python2-six' 'python2-mock') - - cd responses-$pkgver-py2 - python2 setup.py install --root="$pkgdir" --optimize=1 -} - -# vim:set ts=2 sw=2 et: Copied: python-responses/repos/community-any/PKGBUILD (from rev 416653, python-responses/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2018-12-18 13:45:58 UTC (rev 416654) @@ -0,0 +1,53 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgbase=python-responses +pkgname=('python-responses' 'python2-responses') +pkgver=0.10.5 +pkgrel=1 +pkgdesc='A utility library for mocking out the `requests` Python library.' +arch=('any') +license=('Apache') +url='https://github.com/getsentry/responses' +makedepends=('python-setuptools' 'python2-setuptools' 'python-requests' 'python2-requests' + 'python-biscuits' 'python2-cookies' 'python-six' 'python2-six' 'python2-mock') +checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-pytest-cov' + 'python2-pytest-cov' 'flake8' 'python2-flake8' 'python-pytest-localserver' + 'python2-pytest-localserver') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/getsentry/responses/archive/$pkgver.tar.gz") +sha512sums=('e98cc538c779b4f738419776d40eacbcb4cb59909cd7168b5ae8b802b0c4c83a209b9af9b325649598b522fac83cf56e4ff8ccfdbd3afe9881bd40c44dd234fd') + +prepare() { + cp -a responses-$pkgver{,-py2} +} + +build() { + cd "$srcdir"/responses-$pkgver + python setup.py build + + cd "$srcdir"/responses-$pkgver-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/responses-$pkgver + python setup.py pytest + + cd "$srcdir"/responses-$pkgver-py2 + python2 setup.py pytest +} + +package_python-responses() { + depends=('python-requests' 'python-biscuits' 'python-six') + + cd responses-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 +} + +package_python2-responses() { + depends=('python2-requests' 'python2-cookies' 'python2-six' 'python2-mock') + + cd responses-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 +} + +# vim:set ts=2 sw=2 et: