| author | Carl Smedstad
<carsme@archlinux.org> 2025-03-09 16:52:16 UTC |
| committer | Carl Smedstad
<carsme@archlinux.org> 2025-03-09 16:52:16 UTC |
| parent | b01d33e4f9b1fb440894b11c55d76326be75d8e1 |
| .SRCINFO | +9 | -7 |
| PKGBUILD | +31 | -12 |
diff --git a/.SRCINFO b/.SRCINFO index 1c366a2..8f6c12f 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,21 +1,23 @@ pkgbase = python-jeepney pkgdesc = Low-level, pure Python DBus protocol wrapper - pkgver = 0.8.0 - pkgrel = 4 + pkgver = 0.9.0 + pkgrel = 1 url = https://gitlab.com/takluyver/jeepney arch = any license = MIT checkdepends = python-pytest - checkdepends = python-pytest-trio checkdepends = python-pytest-asyncio + checkdepends = python-pytest-trio checkdepends = python-testpath checkdepends = python-trio - checkdepends = python-async-timeout + makedepends = git makedepends = python-build - makedepends = python-installer makedepends = python-flit-core + makedepends = python-installer + makedepends = python-wheel depends = python - source = https://pypi.io/packages/source/j/jeepney/jeepney-0.8.0.tar.gz - sha512sums = 823675f262c2c9778ccf9c1083601d936cca534fc0d2d9309b52aa6beeb7f73d225a37c5f18f6b0683c4829a93b1299a2cb4f8f341e55b92bedf58c8dce0aa75 + optdepends = python-trio: support D-Bus applications with Trio + source = git+https://gitlab.com/takluyver/jeepney.git#tag=0.9 + sha512sums = 9a52439e1660c93ad1e47f76fea351c25dcb90c209b99044abefeb2e5228c3521d7d3ce12768081e2f1ed8428549032b8b13ebef50154bb8b1c8638df1671d7a pkgname = python-jeepney diff --git a/PKGBUILD b/PKGBUILD index 36b63d1..b38c8af 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -3,31 +3,50 @@ # Contributor: Felix Yan <felixonmars@archlinux.org> pkgname=python-jeepney -pkgver=0.8.0 -pkgrel=4 +pkgver=0.9.0 +_pkgver=${pkgver%.0} +pkgrel=1 pkgdesc="Low-level, pure Python DBus protocol wrapper" +arch=('any') url="https://gitlab.com/takluyver/jeepney" license=('MIT') -arch=('any') depends=('python') -checkdepends=('python-pytest' 'python-pytest-trio' 'python-pytest-asyncio' 'python-testpath' - 'python-trio' 'python-async-timeout') -makedepends=('python-build' 'python-installer' 'python-flit-core') -source=("https://pypi.io/packages/source/j/jeepney/jeepney-$pkgver.tar.gz") -sha512sums=('823675f262c2c9778ccf9c1083601d936cca534fc0d2d9309b52aa6beeb7f73d225a37c5f18f6b0683c4829a93b1299a2cb4f8f341e55b92bedf58c8dce0aa75') +makedepends=( + 'git' + 'python-build' + 'python-flit-core' + 'python-installer' + 'python-wheel' +) +checkdepends=( + 'python-pytest' + 'python-pytest-asyncio' + 'python-pytest-trio' + 'python-testpath' + 'python-trio' +) +optdepends=('python-trio: support D-Bus applications with Trio') +source=("git+$url.git#tag=$_pkgver") +sha512sums=('9a52439e1660c93ad1e47f76fea351c25dcb90c209b99044abefeb2e5228c3521d7d3ce12768081e2f1ed8428549032b8b13ebef50154bb8b1c8638df1671d7a') build() { - cd jeepney-$pkgver + cd ${pkgname#python-} python -m build --wheel --no-isolation } check() { - cd jeepney-$pkgver + cd ${pkgname#python-} pytest } package() { - cd jeepney-$pkgver + cd ${pkgname#python-} python -m installer --destdir="$pkgdir" dist/*.whl - install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + + # Do not install tests + local site_packages=$(python -c "import site; print(site.getsitepackages()[0])") + rm -vr "$pkgdir/$site_packages/jeepney/tests" + rm -vr "$pkgdir/$site_packages/jeepney/io/tests" + + install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE }