Date: Thursday, March 14, 2019 @ 08:45:36 Author: aginiewicz Revision: 440957
upgpkg: python-requests-file 1.4.3-3 python-requests-file: drop python2 support Modified: python-requests-file/trunk/PKGBUILD ----------+ PKGBUILD | 40 ++++++---------------------------------- 1 file changed, 6 insertions(+), 34 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2019-03-14 08:42:30 UTC (rev 440956) +++ PKGBUILD 2019-03-14 08:45:36 UTC (rev 440957) @@ -1,55 +1,27 @@ # Maintainer: Andrzej Giniewicz <ggi...@gmail.com> # Contributor: lilydjwg <lilyd...@gmail.com> -pkgbase=python-requests-file -pkgname=('python2-requests-file' 'python-requests-file') +pkgname='python-requests-file' pkgver=1.4.3 -pkgrel=2 +pkgrel=3 pkgdesc="File transport adapter for Requests" arch=('any') url="https://github.com/dashea/requests-file" license=('Apache') -makedepends=('python-setuptools' 'python-requests' 'python-six' - 'python2-setuptools' 'python2-requests' 'python2-six') +depends=('python-six' 'python-requests') +makedepends=('python-setuptools') source=("https://github.com/dashea/requests-file/archive/${pkgver}.tar.gz") -md5sums=('54ec29f29540b43b9b2c8a392dc96abc') +sha256sums=('5ea90937dd77769ef1d1ad93ef5996212e75b20a5531ad36dc12b1873fbf99c1') -prepare() { - cd "$srcdir" - cp -a requests-file-${pkgver} requests-file-py2-${pkgver} - cd requests-file-py2-${pkgver} - - sed -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \ - -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \ - -e "s|#![ ]*/bin/env python$|#!/usr/bin/env python2|" \ - -i $(find . -name '*.py') -} - build() { - msg "Building Python2" - cd "$srcdir"/requests-file-py2-${pkgver} - python2 setup.py build_ext --inplace - python2 setup.py build + cd "$srcdir"/requests-file-${pkgver} - msg "Building Python3" - cd "$srcdir"/requests-file-${pkgver} python setup.py build_ext --inplace python setup.py build } -package_python2-requests-file() { - depends=('python2-six' 'python2-requests') - - cd "$srcdir"/requests-file-py2-${pkgver} - - python2 setup.py install --skip-build --root="$pkgdir" --optimize=1 -} - package_python-requests-file() { - depends=('python-six' 'python-requests') - cd "$srcdir"/requests-file-${pkgver} python setup.py install --skip-build --root="$pkgdir" --optimize=1 } -