Date: Monday, February 10, 2020 @ 20:37:31 Author: felixonmars Revision: 566235
upgpkg: python-pytest-pylint 0.15.0-1 Modified: python-pytest-pylint/trunk/PKGBUILD ----------+ PKGBUILD | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2020-02-10 20:36:17 UTC (rev 566234) +++ PKGBUILD 2020-02-10 20:37:31 UTC (rev 566235) @@ -1,8 +1,7 @@ # Maintainer: Felix Yan <[email protected]> pkgname=python-pytest-pylint -pkgver=0.14.1.20191107 -_commit=97bda02e95b5a0e582a0c8674f3843ef66ecb7f7 +pkgver=0.15.0 pkgrel=1 pkgdesc='pytest plugin to check source code with pylint' arch=('any') @@ -10,18 +9,18 @@ url='https://github.com/carsongee/pytest-pylint' depends=('python-pytest' 'python-pylint' 'python-six') makedepends=('python-pytest-runner') -source=("$pkgname-$_commit.tar.gz::https://github.com/carsongee/pytest-pylint/archive/$_commit.tar.gz") -sha512sums=('19c54a6668ea7fa38c4c6a58752122551a0921225b6ff02dbd2d6984bd01280e329dffcb6d8dbf9e8ee74d37867961052312095faae0e824dc6aaff8564ed0f9') +source=("$pkgname-$pkgver.tar.gz::https://github.com/carsongee/pytest-pylint/archive/$pkgver.tar.gz") +sha512sums=('d6e23cf6c8a0147b0835266b958976818b9d1ced06af8ebc77addd20e957d5f89d50a1c3b34512e5ee037fa7dc195b89098ff55fb6e94ceaa1255c6e9e1f3a02') prepare() { - cd pytest-pylint-$_commit + cd pytest-pylint-$pkgver # Abandonware sed -i 's/--pep8//' tox.ini - sed -i 's/import mock/from unittest import mock/' test_pytest_pylint.py + sed -i 's/import mock/from unittest import mock/' pytest_pylint/tests/test_pytest_pylint.py } build() { - cd pytest-pylint-$_commit + cd pytest-pylint-$pkgver python setup.py build } @@ -28,13 +27,13 @@ check() { # Hack entry points by installing it - cd pytest-pylint-$_commit + cd pytest-pylint-$pkgver python setup.py install --root="$PWD/tmp_install" --optimize=1 PYTHONPATH="$PWD/tmp_install/usr/lib/python3.8/site-packages:$PYTHONPATH" py.test --ignore tmp_install } package() { - cd pytest-pylint-$_commit + cd pytest-pylint-$pkgver python setup.py install --root="$pkgdir" --optimize=1 install -D -m644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/ }
