[arch-commits] Commit in python-pyudev/trunk (PKGBUILD)
Filipe Laíns
ffy00 at gemini.archlinux.org
Sat Sep 3 19:27:26 UTC 2022
Date: Saturday, September 3, 2022 @ 19:27:25
Author: ffy00
Revision: 1292719
upgpkg: python-pyudev 0.24.0-1
Modified:
python-pyudev/trunk/PKGBUILD
----------+
PKGBUILD | 20 ++++++++------------
1 file changed, 8 insertions(+), 12 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-09-03 19:26:02 UTC (rev 1292718)
+++ PKGBUILD 2022-09-03 19:27:25 UTC (rev 1292719)
@@ -6,28 +6,24 @@
_pkgname=pyudev
pkgname=python-$_pkgname
-pkgver=0.22
-pkgrel=7
+pkgver=0.24.0
+pkgrel=1
arch=('any')
url='https://github.com/pyudev/pyudev'
license=('LGPL')
pkgdesc='Python bindings to libudev'
depends=('python-six' 'systemd')
-makedepends=('python-setuptools' 'python-sphinx' 'python-mock')
-checkdepends=('python-pytest-runner' 'python-docutils' 'python-mock' 'python-hypothesis')
+makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel' 'python-sphinx' 'python-mock')
+checkdepends=('python-pytest' 'python-docutils' 'python-mock' 'python-hypothesis' 'python-pip')
optdepends=('python-pyqt5: PyQt integration'
'pyside2: PySide integration'
'python-wxpython: WX integration')
source=("$_pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
-sha512sums=('b509f4442e1c11eea9755fbae867b0aee97221db60d78ed2b8da40c39fb11015982b2e9b423680ed44b3f9db2c84b3a0a57a1e8aad4fb939061e33646638d9e3')
+sha512sums=('fe6fec9bbc402bbcf6458b6c3ea2db43ac3ac03bba3c74193dde46253b532d1c9d55ad78e4bc8fa0ff660bf0e371f07ef60c6c4a6251b0dd64acbb129f63507e')
prepare() {
cd $_pkgname-$pkgver
- # pytest-runner doesn't understand norecursedirs
- sed -i '/norecursedirs/d' setup.cfg
- echo -e '[pytest]\nnorecursedirs = .* _* build' > pytest.ini
-
# Remove failing tests (we can't test udev inside makepkg)
rm tests/test_{util,discover,device,monitor,enumerate,observer}.py
@@ -39,7 +35,7 @@
build() {
cd $_pkgname-$pkgver
- python setup.py build
+ python -m build -nw
# Generate documentation
sphinx-apidoc -f -e -o doc src/pyudev
@@ -49,13 +45,13 @@
check() {
cd $_pkgname-$pkgver
- python setup.py pytest
+ PYTHONPATH=src python -m pytest
}
package() {
cd $_pkgname-$pkgver
- python setup.py install --root "$pkgdir" --skip-build -O1
+ python -m installer -d "$pkgdir" dist/*.whl
# Install documentation
install -dm 755 "$pkgdir"/usr/share/doc/$pkgname
More information about the arch-commits
mailing list