Date: Wednesday, August 19, 2020 @ 05:18:05 Author: felixonmars Revision: 394381
archrelease: copy trunk to testing-any Added: python-isort/repos/testing-any/PKGBUILD (from rev 394380, python-isort/trunk/PKGBUILD) Deleted: python-isort/repos/testing-any/PKGBUILD ----------+ PKGBUILD | 116 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 58 insertions(+), 58 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2020-08-19 05:17:44 UTC (rev 394380) +++ PKGBUILD 2020-08-19 05:18:05 UTC (rev 394381) @@ -1,58 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> -# Contributor: Yaron de Leeuw <m...@jarondl.net> - -pkgname=python-isort -pkgver=5.3.2 -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-hypothesmith' - 'python-libcst' 'python-pip' 'python-pip-api' 'python-pipreqs' 'python-pytest' - 'python-requirementslib') -source=("https://github.com/timothycrosley/isort/archive/$pkgver/$pkgname-$pkgver.tar.gz") -sha512sums=('c1ae67a8024bb7f7aa9bff6be5990de8dfe1e565a679a4a7c36f16b43e018982d82dfe4f85c8a8862e7f013d470fc730be6e6c9971e95f01d682452f271ac69e') - -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 394380, python-isort/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2020-08-19 05:18:05 UTC (rev 394381) @@ -0,0 +1,58 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Yaron de Leeuw <m...@jarondl.net> + +pkgname=python-isort +pkgver=5.4.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-hypothesmith' + 'python-libcst' 'python-pip' 'python-pip-api' 'python-pipreqs' 'python-pytest' + 'python-requirementslib') +source=("https://github.com/timothycrosley/isort/archive/$pkgver/$pkgname-$pkgver.tar.gz") +sha512sums=('98fd26c704c7e4c3fb0ed89f18ba8f648256d7744ec2aad128010a5fe39e2875d4c0fab87e282c75cb0d8c02db9186352eba3440cbea0a60442cf289a9161c78') + +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/ +}