[arch-commits] Commit in python-ansicolor/trunk (PKGBUILD)
Daniel M. Capella
polyzen at gemini.archlinux.org
Sat Sep 3 11:58:33 UTC 2022
Date: Saturday, September 3, 2022 @ 11:58:33
Author: polyzen
Revision: 1291807
upgpkg: python-ansicolor 0.3.2-4: Use PEP 517
Modified:
python-ansicolor/trunk/PKGBUILD
----------+
PKGBUILD | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-09-03 11:58:21 UTC (rev 1291806)
+++ PKGBUILD 2022-09-03 11:58:33 UTC (rev 1291807)
@@ -4,14 +4,15 @@
_name=ansicolor
pkgname=python-ansicolor
pkgver=0.3.2
-pkgrel=3
+pkgrel=4
pkgdesc='Library to produce ansi color output and colored highlighting and diffing'
-depends=('python')
-makedepends=('python-setuptools')
-checkdepends=('python-pytest')
arch=('any')
url=https://github.com/numerodix/ansicolor
license=('Apache')
+depends=('python')
+makedepends=('python-build' 'python-installer' 'python-setuptools'
+ 'python-wheel')
+checkdepends=('python-pytest')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('3b840a6b1184b5f1568635b1adab28147947522707d41ceba02d5ed0a0877279')
b2sums=('c7f3287645ec3c1b02280b2ac4da0051ba1a88b71c09516f98103787ae2d09bed7b441ecb8cea9796f24f3935154cf1bc4180d12842f8ed1c6e024a066fa228a')
@@ -18,17 +19,17 @@
build() {
cd $_name-$pkgver
- python setup.py build
+ python -m build --wheel --skip-dependency-check --no-isolation
}
check() {
cd $_name-$pkgver
python -m venv --system-site-packages test-env
- test-env/bin/python setup.py install --optimize=1 --skip-build
+ test-env/bin/python -m installer dist/*.whl
test-env/bin/python -m pytest
}
package() {
cd $_name-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ python -m installer --destdir="$pkgdir" dist/*.whl
}
More information about the arch-commits
mailing list