Jelle van der Waa pushed to branch main at Arch Linux / Packaging / Packages / pyalpm
Commits: 8dfdb917 by loqs at 2024-03-02T12:18:40+01:00 Change to a PEP 517 based workflow - - - - - 2fa340fe by loqs at 2024-03-02T12:18:43+01:00 Stop hardcoding the Python version - - - - - 516be2b6 by loqs at 2024-03-02T12:18:43+01:00 Change to SPDX license identifier https://gitlab.archlinux.org/archlinux/pyalpm/-/blob/0.10.6/setup.cfg?#L10 - - - - - 368ed6f7 by Jelle van der Waa at 2024-03-02T12:27:35+01:00 upgpkg: 0.10.7-1 - - - - - 2 changed files: - + .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -0,0 +1,22 @@ +pkgbase = pyalpm + pkgdesc = Python 3 bindings for libalpm + pkgver = 0.10.7 + pkgrel = 1 + url = https://gitlab.archlinux.org/archlinux/pyalpm + arch = x86_64 + license = GPL-3.0-or-later + checkdepends = python-pytest + checkdepends = python-pytest-pacman + makedepends = git + makedepends = python-setuptools + makedepends = python-pkgconfig + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel + depends = python + depends = pacman + source = git+https://gitlab.archlinux.org/archlinux/pyalpm.git#tag=0.10.7 + validpgpkeys = E499C79F53C96A54E572FEE1C06086337C50773E + sha512sums = SKIP + +pkgname = pyalpm ===================================== PKGBUILD ===================================== @@ -1,14 +1,15 @@ # Maintainer : Rémy Oudompheng <[email protected]> pkgname=pyalpm -pkgver=0.10.6 -pkgrel=5 +pkgver=0.10.7 +pkgrel=1 pkgdesc="Python 3 bindings for libalpm" arch=('x86_64') url="https://gitlab.archlinux.org/archlinux/pyalpm" -license=('GPL') -makedepends=('git' 'python-setuptools' 'python-pytest' 'python-pkgconfig' 'python-pytest-pacman') +license=('GPL-3.0-or-later') depends=('python' 'pacman') +makedepends=('git' 'python-setuptools' 'python-pkgconfig' 'python-build' 'python-installer' 'python-wheel') +checkdepends=('python-pytest' 'python-pytest-pacman') source=("git+https://gitlab.archlinux.org/archlinux/pyalpm.git#tag=$pkgver") validpgpkeys=('E499C79F53C96A54E572FEE1C06086337C50773E') sha512sums=('SKIP') @@ -19,15 +20,16 @@ prepare() { build() { cd "${pkgname}" - python setup.py build + python -m build --wheel --no-isolation } check() { cd "${pkgname}" - PYTHONPATH="$PWD/build/lib.linux-$CARCH-cpython-311" pytest + local python_version=$(python -c 'import sys; print("".join(map(str, sys.version_info[:2])))') + PYTHONPATH="$PWD/build/lib.linux-$CARCH-cpython-$python_version" pytest } package() { cd "${pkgname}" - python setup.py install --root=${pkgdir} + python -m installer --destdir="$pkgdir" dist/*.whl } View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/pyalpm/-/compare/1ea752c5f673d4207362decb738fd66c3089b725...368ed6f79fb57f6582262eda1f1647807d6bb7f8 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/pyalpm/-/compare/1ea752c5f673d4207362decb738fd66c3089b725...368ed6f79fb57f6582262eda1f1647807d6bb7f8 You're receiving this email because of your account on gitlab.archlinux.org.
