Date: Monday, January 3, 2022 @ 20:28:39 Author: felixonmars Revision: 1092558
upgpkg: python-yaspin 2.1.0-4: use pyproject2setuppy and remove pytest-runner Modified: python-yaspin/trunk/PKGBUILD ----------+ PKGBUILD | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-01-03 20:28:09 UTC (rev 1092557) +++ PKGBUILD 2022-01-03 20:28:39 UTC (rev 1092558) @@ -2,39 +2,30 @@ pkgname=python-yaspin pkgver=2.1.0 -pkgrel=3 +pkgrel=4 pkgdesc="Yet Another Terminal Spinner" url="https://github.com/pavdmyt/yaspin" license=('MIT') arch=('any') depends=('python-termcolor') -makedepends=('python-dephell') -checkdepends=('python-pytest-runner') +makedepends=('python-pyproject2setuppy') +checkdepends=('python-pytest') source=("https://github.com/pavdmyt/yaspin/archive/v$pkgver/$pkgname-$pkgver.tar.gz") sha512sums=('ea2379fe052ac7523a6383b51babc867adccbf98938f2ca6755a33fc932fee54c5bc84e91ab09ad1d88b436f55d7bc4f69ae63a13453b7aac3877bcd1efe232a') -prepare() { - cd yaspin-$pkgver - - # poetry-generated setup.py is badly broken in several ways, including - # distribution of tests in the built package as well as using distutils for - # bad metadata. See https://github.com/sdispater/poetry/issues/866 - dephell deps convert --from pyproject.toml --to setup.py -} - build() { cd yaspin-$pkgver - python setup.py build + python -m pyproject2setuppy build } check() { cd yaspin-$pkgver - python setup.py pytest + python -m pytest } package() { cd yaspin-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 + python -m pyproject2setuppy install --root="$pkgdir" --optimize=1 install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/ }
