Carl Smedstad pushed to branch main at Arch Linux / Packaging / Packages /
python-zope-testing
Commits:
7f336ed2 by Carl Smedstad at 2024-08-23T12:42:04+02:00
upgpkg: 5.0.1-5: Remove python setup.py test
Add dependency python-zope-testrunner - zope.testing.testrunner is deprecated
in favour of zope.testrunner, i.e. the separately packaged
python-zope-testrunner.
Invoke tests with zope-testrunner to avoid 'python setup.py test'.
- - - - -
2 changed files:
- .SRCINFO
- PKGBUILD
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,16 +1,16 @@
pkgbase = python-zope-testing
pkgdesc = Zope testing helpers
pkgver = 5.0.1
- pkgrel = 4
+ pkgrel = 5
url = https://github.com/zopefoundation/zope.testing
arch = any
license = ZPL-2.1
makedepends = python-build
makedepends = python-installer
+ makedepends = python-setuptools
makedepends = python-wheel
- depends = python-setuptools
- depends = python-zope-interface
- depends = python-zope-exceptions
+ depends = python
+ depends = python-zope-testrunner
source =
python-zope-testing-5.0.1.tar.gz::https://github.com/zopefoundation/zope.testing/archive/5.0.1.tar.gz
sha512sums =
169ddd82d67f54988cac6cea719095ea7b1a0e59a1b51f63ab6bf15e785877fa060bac5c0786c26244a7630ec1b97011d0bb336c9177a8e6a911ccdb673eebba
=====================================
PKGBUILD
=====================================
@@ -1,29 +1,42 @@
# Maintainer: Felix Yan <[email protected]>
+# Maintainer: Carl Smedstad <[email protected]>
pkgname=python-zope-testing
+_pkgname=zope.testing
pkgver=5.0.1
-pkgrel=4
+pkgrel=5
pkgdesc="Zope testing helpers"
arch=('any')
url="https://github.com/zopefoundation/zope.testing"
license=('ZPL-2.1')
-depends=('python-setuptools' 'python-zope-interface' 'python-zope-exceptions')
-makedepends=('python-build' 'python-installer' 'python-wheel')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/zopefoundation/zope.testing/archive/$pkgver.tar.gz")
+depends=(
+ 'python'
+ 'python-zope-testrunner'
+)
+makedepends=(
+ 'python-build'
+ 'python-installer'
+ 'python-setuptools'
+ 'python-wheel'
+)
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
sha512sums=('169ddd82d67f54988cac6cea719095ea7b1a0e59a1b51f63ab6bf15e785877fa060bac5c0786c26244a7630ec1b97011d0bb336c9177a8e6a911ccdb673eebba')
build() {
- cd zope.testing-$pkgver
- python -m build --wheel --skip-dependency-check --no-isolation
+ cd $_pkgname-$pkgver
+ python -m build --wheel --no-isolation
}
check() {
- cd zope.testing-$pkgver
- python setup.py test
+ cd $_pkgname-$pkgver
+ 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.testing-$pkgver
+ cd $_pkgname-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
}
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-zope-testing/-/commit/7f336ed2d29861b6fb8c764cdd6f904e76b0b625
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-zope-testing/-/commit/7f336ed2d29861b6fb8c764cdd6f904e76b0b625
You're receiving this email because of your account on gitlab.archlinux.org.