Carl Smedstad pushed to branch main at Arch Linux / Packaging / Packages / python-zope-exceptions
Commits: 6ce91b21 by Carl Smedstad at 2024-10-30T10:08:07+01:00 upgpkg: 5.2-1: Upstream release https://github.com/zopefoundation/zope.exceptions/releases/tag/5.2 - - - - - 2 changed files: - .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -1,17 +1,19 @@ pkgbase = python-zope-exceptions pkgdesc = Generic exceptions and implementations for Zope - pkgver = 5.1 + pkgver = 5.2 pkgrel = 1 url = https://github.com/zopefoundation/zope.exceptions arch = any - license = ZPL + license = ZPL-2.1 checkdepends = python-zope-testrunner makedepends = git + makedepends = python-build + makedepends = python-installer makedepends = python-setuptools - makedepends = python-zope-interface - depends = python-setuptools + makedepends = python-wheel + depends = python depends = python-zope-interface - source = git+https://github.com/zopefoundation/zope.exceptions.git#tag=5.1 - sha512sums = a4416eb47db0ec1e9d6a921bdf2aaa53b4ea7e764292c495fb3b7ad0cb6181b5ca14a81f7a08a8d47dd29e9c40280805956642bb9b54f4eb33e3c4c5a4c77b1c + source = git+https://github.com/zopefoundation/zope.exceptions.git#tag=5.2 + sha512sums = dc92f391d8f3b8e21287397722d46df0011399e29e0bcb6dfdcd4c841f1b23b5448846776c6c216f21e05d5ac3f2b6910241e52c9da1cf32b96f739440ee77ec pkgname = python-zope-exceptions ===================================== PKGBUILD ===================================== @@ -1,31 +1,45 @@ # Maintainer: Felix Yan <[email protected]> +# Maintainer: Carl Smedstad <[email protected]> pkgname=python-zope-exceptions -pkgver=5.1 +_pkgname=zope.exceptions +pkgver=5.2 pkgrel=1 pkgdesc="Generic exceptions and implementations for Zope" arch=('any') url="https://github.com/zopefoundation/zope.exceptions" -license=('ZPL') -depends=('python-setuptools' 'python-zope-interface') -makedepends=('git' 'python-setuptools' 'python-zope-interface') +license=('ZPL-2.1') +depends=( + 'python' + 'python-zope-interface' +) +makedepends=( + 'git' + 'python-build' + 'python-installer' + 'python-setuptools' + 'python-wheel' +) checkdepends=('python-zope-testrunner') -source=("git+https://github.com/zopefoundation/zope.exceptions.git#tag=$pkgver") -sha512sums=('a4416eb47db0ec1e9d6a921bdf2aaa53b4ea7e764292c495fb3b7ad0cb6181b5ca14a81f7a08a8d47dd29e9c40280805956642bb9b54f4eb33e3c4c5a4c77b1c') +source=("git+$url.git#tag=$pkgver") +sha512sums=('dc92f391d8f3b8e21287397722d46df0011399e29e0bcb6dfdcd4c841f1b23b5448846776c6c216f21e05d5ac3f2b6910241e52c9da1cf32b96f739440ee77ec') build() { - cd zope.exceptions - python setup.py build + cd "$_pkgname" + python -m build --wheel --no-isolation } check() { - cd zope.exceptions - PYTHONPATH="$PWD/build/lib" zope-testrunner --test-path=src + cd "$_pkgname" + python -m installer --destdir=tmp_install dist/*.whl + local site_packages=$(python -c "import site; print(site.getsitepackages()[0])") + export PYTHONPATH="$PWD/tmp_install/$site_packages" + zope-testrunner --test-path=src -vc } package() { - cd zope.exceptions - python setup.py install --root="$pkgdir" --optimize=1 + cd "$_pkgname" + python -m installer --destdir="$pkgdir" dist/*.whl } # vim:set ts=2 sw=2 et: View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-zope-exceptions/-/commit/6ce91b211e2f3f565b59fc499b6c82c9585c86e6 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-zope-exceptions/-/commit/6ce91b211e2f3f565b59fc499b6c82c9585c86e6 You're receiving this email because of your account on gitlab.archlinux.org.
