Date: Tuesday, May 12, 2020 @ 21:10:13 Author: jelle Revision: 627234
remove unused python2 module Modified: python-raven/trunk/PKGBUILD ----------+ PKGBUILD | 32 ++++++-------------------------- 1 file changed, 6 insertions(+), 26 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2020-05-12 21:07:45 UTC (rev 627233) +++ PKGBUILD 2020-05-12 21:10:13 UTC (rev 627234) @@ -1,15 +1,15 @@ # Maintainer: Felix Yan <[email protected]> # Contributor: Benjamin A. Shelton <[email protected]> -pkgbase=python-raven -pkgname=(python-raven python2-raven) +pkgname=python-raven pkgver=6.10.0 -pkgrel=4 +pkgrel=5 pkgdesc="Python client for Sentry" arch=('any') url="https://pypi.python.org/pypi/raven" license=('BSD') -makedepends=('python-setuptools' 'python2-setuptools' 'python2-contextlib2') +depends=('python') +makedepends=('python-setuptools') checkdepends=('python-pytest-cov' 'python-bottle' 'python-celery' 'python-django' 'python-pycodestyle' 'python-mock' 'python-nose' 'python-pytz' 'python-exam' 'python-requests' 'python-tornado' 'python-paste' 'python-webob' 'python-webtest' @@ -16,19 +16,13 @@ 'python-anyjson' 'python-flask' 'python-blinker' 'python-logbook' 'python-pytest-django' 'python-flask-login' 'python-pytest-timeout' 'python-zconfig' 'python-pytest-xdist') +optdepends=('python-setuptools: for "raven" script') source=("$pkgbase-$pkgver.tar.gz::https://github.com/getsentry/raven-python/archive/$pkgver.tar.gz") sha512sums=('4e65c03b1c5d084588ef381223b06c7b2ded3239fb2f2da4b2694fcf897a590ba5b03ac421b6dd88e0ce408f2fafd605d92a2b544b4f975ece5510eb6010583b') -prepare() { - cp -a raven-python-$pkgver{,-py2} -} - build() { cd "$srcdir"/raven-python-$pkgver python setup.py build - - cd "$srcdir"/raven-python-$pkgver-py2 - python2 setup.py build } check() { @@ -41,22 +35,8 @@ py.test -p no:logging tests || warning "https://github.com/getsentry/raven-python/issues/1275" } -package_python-raven() { - depends=('python') - optdepends=('python-setuptools: for "raven" script') - +package() { cd "$srcdir"/raven-python-$pkgver python setup.py install --root="$pkgdir" --optimize=1 install -Dm664 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } - -package_python2-raven() { - depends=('python2-contextlib2') - optdepends=('python2-setuptools: for "raven2" script') - - cd "$srcdir"/raven-python-$pkgver-py2 - python2 setup.py install --root="$pkgdir" --optimize=1 - mv "$pkgdir"/usr/bin/raven{,2} - - install -Dm664 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE -}
