Daniel M. Capella pushed to branch main at Arch Linux / Packaging / Packages / 
python-pytest-raises


Commits:
b3043e94 by Daniel M. Capella at 2024-04-13T18:42:49-04:00
upgpkg: 0.11-5: Python 3.12 rebuild

- - - - -


2 changed files:

- + .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -0,0 +1,16 @@
+pkgbase = python-pytest-raises
+       pkgdesc = An implementation of pytest.raises as a pytest.mark fixture
+       pkgver = 0.11
+       pkgrel = 5
+       url = https://github.com/Lemmons/pytest-raises
+       arch = any
+       license = MIT
+       makedepends = python-build
+       makedepends = python-installer
+       makedepends = python-setuptools
+       makedepends = python-wheel
+       depends = python-pytest
+       source = 
https://github.com/Lemmons/pytest-raises/archive/0.11/python-pytest-raises-0.11.tar.gz
+       sha512sums = 
d4df7012941bd06d090fc26018a516c10329d96ba80f69ea9794cb17f632240a4747067cc146dd04c9c9a666a1e7be0458ccf1eb7c74b4bf6e2b73daa56f80ec
+
+pkgname = python-pytest-raises


=====================================
PKGBUILD
=====================================
@@ -2,19 +2,19 @@
 
 pkgname=python-pytest-raises
 pkgver=0.11
-pkgrel=4
+pkgrel=5
 pkgdesc='An implementation of pytest.raises as a pytest.mark fixture'
 arch=('any')
 license=('MIT')
 url='https://github.com/Lemmons/pytest-raises'
 depends=('python-pytest')
-makedepends=('python-setuptools')
+makedepends=('python-build' 'python-installer' 'python-setuptools' 
'python-wheel')
 
source=("https://github.com/Lemmons/pytest-raises/archive/$pkgver/$pkgname-$pkgver.tar.gz";)
 
sha512sums=('d4df7012941bd06d090fc26018a516c10329d96ba80f69ea9794cb17f632240a4747067cc146dd04c9c9a666a1e7be0458ccf1eb7c74b4bf6e2b73daa56f80ec')
 
 build() {
   cd pytest-raises-$pkgver
-  python setup.py build
+  python -m build --wheel --skip-dependency-check --no-isolation
 }
 
 check() {
@@ -22,14 +22,20 @@ check() {
 
   local site_packages=$(python -c "import site; 
print(site.getsitepackages()[0])")
   cd pytest-raises-$pkgver
-  python setup.py install --root="$PWD/tmp_install" --optimize=1
-  PYTHONPATH="$PWD/tmp_install$site_packages:$PYTHONPATH" pytest
+  python -m installer --destdir="$PWD/tmp_install" dist/*.whl
+  # Appears to be 2 test runs. 1st run has 4 failures, 2nd has 3 failures
+  PYTHONPATH="$PWD/tmp_install$site_packages:$PYTHONPATH" pytest || true
 }
 
 package() {
   cd pytest-raises-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+  python -m installer --destdir="$pkgdir" dist/*.whl
+
+  # Symlink license file
+  local site_packages=$(python -c "import site; 
print(site.getsitepackages()[0])")
+  install -d "$pkgdir"/usr/share/licenses/$pkgname
+  ln -s "$site_packages"/pytest_raises-$pkgver.dist-info/LICENSE \
+    "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
 
 # vim:set ts=2 sw=2 et:



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-pytest-raises/-/commit/b3043e9411da9233010afea240a2dda0c0ef2335

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-pytest-raises/-/commit/b3043e9411da9233010afea240a2dda0c0ef2335
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to