From b9e8e12432fd8a4546b71c89d1b8150e569f053e Mon Sep 17 00:00:00 2001 From: ermine Date: Wed, 5 Oct 2022 17:42:16 +0300 Subject: [PATCH] py3-ansi2html: use py3-build instead of pyproject2setuppy --- sr.ht/py3-ansi2html/APKBUILD | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/sr.ht/py3-ansi2html/APKBUILD b/sr.ht/py3-ansi2html/APKBUILD index 12036cc..862efac 100644 --- a/sr.ht/py3-ansi2html/APKBUILD +++ b/sr.ht/py3-ansi2html/APKBUILD @@ -3,13 +3,13 @@ pkgname=py3-ansi2html _pyname=ansi2html pkgver=1.7.0 -pkgrel=0 +pkgrel=1 pkgdesc="Convert text with ANSI color codes to HTML" url="http://github.com/ralphbean/ansi2html/" arch="noarch" license="LGPL-3.0-or-later" depends="py3-six" -makedepends="py3-setuptools py3-setuptools_scm py3-toml pyproject2setuppy" +makedepends="py3-setuptools_scm py3-setuptools-scm-git-archive py3-wheel py3-installer py3-build" checkdepends="py3-pytest py3-mock py3-nose" replaces="py-ansi2html py2-ansi2html" _pypiprefix="${_pyname%${_pyname#?}}" @@ -18,7 +18,8 @@ builddir="$srcdir"/$_pyname-$pkgver options="!check" # Upstream tests are stupid build() { - python3 -m pyproject2setuppy.main build + export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver + python3 -m build --no-isolation --wheel . } check() { @@ -26,7 +27,8 @@ check() { } package() { - python3 -m pyproject2setuppy.main install --prefix=/usr --root="$pkgdir" + python3 -m installer --destdir="$pkgdir" \ + dist/ansi2html-$pkgver-py3-none-any.whl } sha512sums="