py3-ansi2html: use py3-build instead of pyproject2setuppy

This commit is contained in:
ermine 2022-10-05 17:42:16 +03:00 committed by Drew DeVault
parent 4da8fe0ab9
commit b9e8e12432
1 changed files with 6 additions and 4 deletions

View File

@ -3,13 +3,13 @@
pkgname=py3-ansi2html pkgname=py3-ansi2html
_pyname=ansi2html _pyname=ansi2html
pkgver=1.7.0 pkgver=1.7.0
pkgrel=0 pkgrel=1
pkgdesc="Convert text with ANSI color codes to HTML" pkgdesc="Convert text with ANSI color codes to HTML"
url="http://github.com/ralphbean/ansi2html/" url="http://github.com/ralphbean/ansi2html/"
arch="noarch" arch="noarch"
license="LGPL-3.0-or-later" license="LGPL-3.0-or-later"
depends="py3-six" 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" checkdepends="py3-pytest py3-mock py3-nose"
replaces="py-ansi2html py2-ansi2html" replaces="py-ansi2html py2-ansi2html"
_pypiprefix="${_pyname%${_pyname#?}}" _pypiprefix="${_pyname%${_pyname#?}}"
@ -18,7 +18,8 @@ builddir="$srcdir"/$_pyname-$pkgver
options="!check" # Upstream tests are stupid options="!check" # Upstream tests are stupid
build() { build() {
python3 -m pyproject2setuppy.main build export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
python3 -m build --no-isolation --wheel .
} }
check() { check() {
@ -26,7 +27,8 @@ check() {
} }
package() { package() {
python3 -m pyproject2setuppy.main install --prefix=/usr --root="$pkgdir" python3 -m installer --destdir="$pkgdir" \
dist/ansi2html-$pkgver-py3-none-any.whl
} }
sha512sums=" sha512sums="