Date: Tuesday, February 22, 2022 @ 19:40:18 Author: alerque Revision: 1136090
upgpkg: python-poetry 1.1.13-2; switch from dephell to pep517 Modified: python-poetry/trunk/PKGBUILD ----------+ PKGBUILD | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-02-22 19:39:49 UTC (rev 1136089) +++ PKGBUILD 2022-02-22 19:40:18 UTC (rev 1136090) @@ -7,7 +7,7 @@ _pkgname=poetry pkgname=python-poetry pkgver=1.1.13 -pkgrel=1 +pkgrel=2 pkgdesc='Python dependency management and packaging made easy' arch=(any) url=https://python-poetry.org @@ -28,7 +28,7 @@ tomlkit virtualenv) depends=("${_deps[@]/#/python-}") -makedepends=(python-dephell) +makedepends=(python-{build,installer}) checkdepends=(git python-httpretty python-pytest @@ -51,13 +51,12 @@ # fix tests trying to write to the root directory # See: https://github.com/python-poetry/poetry/issues/1645 patch -p1 -i ../0001-tests-cleanup-cache-and-http-usage.patch - dephell deps convert --from pyproject.toml --to setup.py install -m0755 -t ./ ../poetry-completions-generator } build() { cd "$_archive" - python setup.py build + python -m build -wn } check() { @@ -71,7 +70,7 @@ package() { cd "$_archive" - python setup.py install --root="$pkgdir" --optimize=1 --skip-build + python -m installer -d "$pkgdir" dist/*.whl install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE # install completions, which for some crazy reason hardcode the filename # used to invoke which is __main__.py if we use python -m poetry, and also