Carl Smedstad pushed to branch main at Arch Linux / Packaging / Packages / python-aiorpcx
Commits: 63c7a7d0 by Carl Smedstad at 2024-09-28T02:26:08+02:00 Point nvchecker to PyPI package instead of Git repository - - - - - 774a8b6b by Carl Smedstad at 2024-09-28T02:26:08+02:00 Reformat PKGBUILD - - - - - 7cda304b by Carl Smedstad at 2024-09-28T02:26:58+02:00 upgpkg: 0.23.1-1: Upstream release https://github.com/kyuupichan/aiorpcX/releases/tag/0.23.1 - - - - - 3 changed files: - .SRCINFO - .nvchecker.toml - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -1,15 +1,20 @@ pkgbase = python-aiorpcx - pkgdesc = A generic asyncio library implementation of RPC suitable for an application that is a client, server or both. - pkgver = 0.22.1 - pkgrel = 3 - url = https://github.com/kyuupichan/aiorpcX/ + pkgdesc = A generic asyncio library implementation of RPC suitable for an application that is a client, server or both + pkgver = 0.23.1 + pkgrel = 1 + url = https://github.com/kyuupichan/aiorpcX arch = any license = MIT + checkdepends = python-pytest + checkdepends = python-pytest-asyncio + checkdepends = python-websockets + makedepends = python-build + makedepends = python-installer makedepends = python-setuptools - makedepends = python-websockets - depends = python>=3.6 - depends = python-attrs - source = https://github.com/kyuupichan/aiorpcX/archive/0.22.1.tar.gz - sha256sums = f72034c4854daf32d83c06ca940d39336908d55ad6a2fe17c039124d51b89430 + makedepends = python-wheel + depends = python + optdepends = python-websockets: websocket transport + source = python-aiorpcx-0.23.1.tar.gz::https://github.com/kyuupichan/aiorpcX/archive/0.23.1.tar.gz + sha256sums = b1fe646457bdf3274fdb8894ce38704ca3ecc6613994bd8ff4e105e2ebb214c6 pkgname = python-aiorpcx ===================================== .nvchecker.toml ===================================== @@ -1,3 +1,3 @@ [python-aiorpcx] -source = "git" -git = "https://github.com/kyuupichan/aiorpcX.git" +source = "pypi" +pypi = "aiorpcx" ===================================== PKGBUILD ===================================== @@ -1,26 +1,45 @@ -# Maintainer : Santiago Torres-Arias <[email protected]> +# Maintainer: Santiago Torres-Arias <[email protected]> +# Maintainer: Carl Smedstad <[email protected]> # Contributor: smmalis37 -pkgname='python-aiorpcx' -pkgver=0.22.1 -pkgrel=3 -pkgdesc="A generic asyncio library implementation of RPC suitable for an application that is a client, server or both." -url="https://github.com/kyuupichan/aiorpcX/" +pkgname=python-aiorpcx +_pkgname=aiorpcX +pkgver=0.23.1 +pkgrel=1 +pkgdesc="A generic asyncio library implementation of RPC suitable for an application that is a client, server or both" +url="https://github.com/kyuupichan/aiorpcX" arch=('any') license=('MIT') -depends=('python>=3.6' 'python-attrs') -makedepends=('python-setuptools' 'python-websockets') -source=("https://github.com/kyuupichan/aiorpcX/archive/${pkgver}.tar.gz") -sha256sums=('f72034c4854daf32d83c06ca940d39336908d55ad6a2fe17c039124d51b89430') - +depends=('python') +makedepends=( + 'python-build' + 'python-installer' + 'python-setuptools' + 'python-wheel' +) +checkdepends=( + 'python-pytest' + 'python-pytest-asyncio' + 'python-websockets' +) +optdepends=('python-websockets: websocket transport') +source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz") +sha256sums=('b1fe646457bdf3274fdb8894ce38704ca3ecc6613994bd8ff4e105e2ebb214c6') build() { - cd "${srcdir}/aiorpcX-${pkgver}" - python setup.py build + cd "$_pkgname-$pkgver" + python -m build --wheel --no-isolation +} + +check() { + cd "$_pkgname-$pkgver" + python -m installer --destdir=tmp_install dist/*.whl + local site_packages=$(python -c "import site; print(site.getsitepackages()[0])") + PYTHONPATH="$PWD/tmp_install/$site_packages" pytest } package() { - cd "${srcdir}/aiorpcX-${pkgver}" - python setup.py install --root="$pkgdir/" --optimize=1 --skip-build - install -D -m644 LICENCE -t "${pkgdir}/usr/share/licenses/${pkgname}" + cd "$_pkgname-$pkgver" + python -m installer --destdir="$pkgdir" dist/*.whl + install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENCE } View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-aiorpcx/-/compare/208e61d4612b9bdfa7b9f067cce75af3cd65c266...7cda304b58c3c187feeb7884e44d6e1e1b010537 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-aiorpcx/-/compare/208e61d4612b9bdfa7b9f067cce75af3cd65c266...7cda304b58c3c187feeb7884e44d6e1e1b010537 You're receiving this email because of your account on gitlab.archlinux.org.
