Date: Wednesday, August 5, 2020 @ 08:29:42 Author: felixonmars Revision: 393164
archrelease: copy trunk to testing-any Added: python-isort/repos/testing-any/PKGBUILD (from rev 393163, python-isort/trunk/PKGBUILD) Deleted: python-isort/repos/testing-any/PKGBUILD ----------+ PKGBUILD | 114 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 57 insertions(+), 57 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2020-08-05 08:29:29 UTC (rev 393163) +++ PKGBUILD 2020-08-05 08:29:42 UTC (rev 393164) @@ -1,57 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> -# Contributor: Yaron de Leeuw <m...@jarondl.net> - -pkgname=python-isort -pkgver=5.2.0 -pkgrel=1 -pkgdesc="A Python utility / library to sort Python imports." -arch=('any') -url="https://github.com/timothycrosley/isort" -license=('MIT') -depends=('python-toml') -makedepends=('python-dephell') -checkdepends=('git' 'pylama' 'python-black' 'python-hypothesis-auto' 'python-pip' 'python-pip-api' - 'python-pipreqs' 'python-pytest' 'python-requirementslib') -source=("https://github.com/timothycrosley/isort/archive/$pkgver/$pkgname-$pkgver.tar.gz") -sha512sums=('864b71b1162571d359f31568640cf1ae15fea99317954327a42d43c2521075a1d18527f437252e0f74f503db85d5a9657643199882a4171edfe031fdb208bb92') - -prepare() { - cd isort-$pkgver - - # Devendor toml - rm -r isort/_vendored - sed -i 's/from ._vendored //' isort/settings.py - - # poetry-generated setup.py are fatally broken, see: - # https://github.com/sdispater/poetry/issues/866 - dephell deps convert --from pyproject.toml --to setup.py - for _plugin in example_isort_formatting_plugin example_shared_isort_profile; do - pushd $_plugin - dephell deps convert --from pyproject.toml --to setup.py - popd - done -} - -build() { - cd isort-$pkgver - python setup.py build -} - -check() { - cd isort-$pkgver - python setup.py install --root="$PWD/tmp_install" --optimize=1 - for _plugin in example_isort_formatting_plugin example_shared_isort_profile; do - pushd $_plugin - python setup.py install --root="$srcdir/isort-$pkgver/tmp_install" --optimize=1 - popd - done - # This is just weird - PYTHONPATH="$PWD/example_isort_formatting_plugin:$PWD/example_shared_isort_profile:$PWD/tmp_install/usr/lib/python3.8/site-packages" PATH="$PWD/tmp_install/usr/bin:$PATH" \ - pytest --deselect tests/test_importable.py::test_importable -} - -package() { - cd isort-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 - install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/ -} Copied: python-isort/repos/testing-any/PKGBUILD (from rev 393163, python-isort/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2020-08-05 08:29:42 UTC (rev 393164) @@ -0,0 +1,57 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Yaron de Leeuw <m...@jarondl.net> + +pkgname=python-isort +pkgver=5.2.1 +pkgrel=1 +pkgdesc="A Python utility / library to sort Python imports." +arch=('any') +url="https://github.com/timothycrosley/isort" +license=('MIT') +depends=('python-toml') +makedepends=('python-dephell') +checkdepends=('git' 'pylama' 'python-black' 'python-hypothesis-auto' 'python-pip' 'python-pip-api' + 'python-pipreqs' 'python-pytest' 'python-requirementslib') +source=("https://github.com/timothycrosley/isort/archive/$pkgver/$pkgname-$pkgver.tar.gz") +sha512sums=('36d4cc84e3aedf53cd11d9b87d8bef379ea8da92310c70e7281557ef171c528b979b2fba9cfce6575cce12c0f767f851d2f4cd23ea5aed0f9f7718675a2af118') + +prepare() { + cd isort-$pkgver + + # Devendor toml + rm -r isort/_vendored + sed -i 's/from ._vendored //' isort/settings.py + + # poetry-generated setup.py are fatally broken, see: + # https://github.com/sdispater/poetry/issues/866 + dephell deps convert --from pyproject.toml --to setup.py + for _plugin in example_isort_formatting_plugin example_shared_isort_profile; do + pushd $_plugin + dephell deps convert --from pyproject.toml --to setup.py + popd + done +} + +build() { + cd isort-$pkgver + python setup.py build +} + +check() { + cd isort-$pkgver + python setup.py install --root="$PWD/tmp_install" --optimize=1 + for _plugin in example_isort_formatting_plugin example_shared_isort_profile; do + pushd $_plugin + python setup.py install --root="$srcdir/isort-$pkgver/tmp_install" --optimize=1 + popd + done + # This is just weird + PYTHONPATH="$PWD/example_isort_formatting_plugin:$PWD/example_shared_isort_profile:$PWD/tmp_install/usr/lib/python3.8/site-packages" PATH="$PWD/tmp_install/usr/bin:$PATH" \ + pytest --deselect tests/test_importable.py::test_importable +} + +package() { + cd isort-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/ +}