Date: Monday, January 2, 2023 @ 03:11:22 Author: grawlinson Revision: 1372860
upgpkg: python-flake8-isort 6.0.0-1; new upstream release Modified: python-flake8-isort/trunk/PKGBUILD ----------+ PKGBUILD | 47 +++++++++++++++++++++++++++++++++-------------- 1 file changed, 33 insertions(+), 14 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2023-01-02 03:10:49 UTC (rev 1372859) +++ PKGBUILD 2023-01-02 03:11:22 UTC (rev 1372860) @@ -1,33 +1,52 @@ -# Maintainer: Daniel M. Capella <[email protected]> +# Maintainer: George Rawlinson <[email protected]> +# Contributor: Daniel M. Capella <[email protected]> # Contributor: neodarz <neodarz at neodarz dot net> -_name=flake8-isort pkgname=python-flake8-isort -pkgver=5.0.3 +pkgver=6.0.0 pkgrel=1 pkgdesc='Flake8 plugin to validate annotations complexity' arch=('any') -url=https://github.com/gforcada/flake8-isort +url='https://github.com/gforcada/flake8-isort' license=('GPL3') -depends=('flake8' 'python-isort') -makedepends=('python-build' 'python-installer' 'python-setuptools' - 'python-wheel') +depends=( + 'python' + 'flake8' + 'python-isort' + 'python-setuptools' +) +makedepends=( + 'git' + 'python-build' + 'python-installer' + 'python-wheel' +) checkdepends=('python-pytest' 'python-toml') -source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz") -sha256sums=('0951398c343c67f4933407adbbfb495d4df7c038650c5d05753a006efcfeb390') -b2sums=('0a8d233f0dc70a0e8edf578f473c2819b83edf836f36332cfb4ae5e2422fe1f86e75217203a5bf8a26cb58cabdbc1dd05697d21c3ee865fb1c5279c4cca7a0cf') +_commit='5d55a7e66841f60ac25395957ff3cb02f3b5ac17' +source=("$pkgname::git+$url#commit=$_commit") +b2sums=('SKIP') +pkgver() { + cd "$pkgname" + + git describe --tags | sed 's/^v//' +} + build() { - cd $_name-$pkgver - python -m build --wheel --skip-dependency-check --no-isolation + cd "$pkgname" + + + python -m build --wheel --no-isolation } check() { - cd $_name-$pkgver + cd "$pkgname" + pytest run_tests.py } package() { - cd $_name-$pkgver + cd "$pkgname" + python -m installer --destdir="$pkgdir" dist/*.whl }
