[arch-commits] Commit in python-identify/trunk (PKGBUILD)
David Runge
dvzrv at gemini.archlinux.org
Thu Apr 28 10:07:57 UTC 2022
Date: Thursday, April 28, 2022 @ 10:07:57
Author: dvzrv
Revision: 1191533
upgpkg: python-identify 2.5.0-1: Upgrade to 2.5.0.
Remove unneeded quotes and curly braces.
Switch to PEP517.
Modified:
python-identify/trunk/PKGBUILD
----------+
PKGBUILD | 27 +++++++++++++--------------
1 file changed, 13 insertions(+), 14 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-04-28 10:02:57 UTC (rev 1191532)
+++ PKGBUILD 2022-04-28 10:07:57 UTC (rev 1191533)
@@ -3,7 +3,7 @@
_name=identify
pkgname=python-identify
-pkgver=2.4.12
+pkgver=2.5.0
pkgrel=1
pkgdesc="File identification library for Python"
arch=(any)
@@ -10,28 +10,27 @@
url="https://github.com/pre-commit/identify"
license=(MIT)
depends=(python)
-makedepends=(python-setuptools)
+makedepends=(python-build python-installer python-setuptools python-wheel)
checkdepends=(python-ukkonen python-pytest)
optdepends=('python-editdistance-s: for returning license identifiers')
optdepends=('python-ukkonen: for returning license identifiers')
-source=("${_name}-${pkgver}.tar.gz::https://github.com/pre-commit/${_name}/archive/refs/tags/v${pkgver}.tar.gz")
-sha512sums=('8b9554a0a726e6fd25ca0fe1031b0a8a114fe98e13e41e73ad6549495a0dc02a2047c151f7717d8df705aba661e11ab1c0e48eff0bcf4d2a0dcff00f5ace1eec')
-b2sums=('55c1b7642d3f273beb415fabc683bfff46c1039fcf146d7c9c09f53b2beffab82e5e687849cbae6b7d2d9d0502a340e635ced730afa6610d20d75f0412943635')
+source=($_name-$pkgver.tar.gz::https://github.com/pre-commit/$_name/archive/refs/tags/v$pkgver.tar.gz)
+sha512sums=('d7b9d7b31262fdb97fdb16caea01ae0e0e0cee2b5a10b0224b53b84842c3c1e0e1914829bc89439718ae25c68cfde23328f79780b847087d445bdbf3a64aef1b')
+b2sums=('f927861976aaa2c53e5bd131b84f299c7290111e18a167040298784ebc3b562180b69d4a22661c858e7e56abde69c2e0fd5048c023d0c84af069748a85ccc4fb')
build() {
- cd "${_name}-${pkgver}"
- python setup.py build
+ cd $_name-$pkgver
+ python -m build --wheel --no-isolation
}
check() {
- cd "${_name}-${pkgver}"
- export PYTHONPATH="build:${PYTHONPATH}"
- pytest -v
+ cd $_name-$pkgver
+ pytest -vv
}
package() {
- cd "${_name}-${pkgver}"
- python setup.py install --optimize=1 --root="${pkgdir}"
- install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
- install -vDm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+ cd $_name-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*.whl
+ install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
+ install -vDm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
}
More information about the arch-commits
mailing list