David Runge pushed to branch main at Arch Linux / Packaging / Packages / python-humanfriendly
Commits: 3553f5d7 by David Runge at 2024-04-20T15:59:41+02:00 upgpkg: 10.0-8: Rebuild against Python 3.12 - - - - - 2 changed files: - .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -1,12 +1,11 @@ pkgbase = python-humanfriendly pkgdesc = Human friendly input/output for text interfaces using Python pkgver = 10.0 - pkgrel = 7 + pkgrel = 8 url = https://github.com/xolox/python-humanfriendly arch = any license = MIT checkdepends = python-docutils - checkdepends = python-pytest makedepends = python-build makedepends = python-installer makedepends = python-setuptools ===================================== PKGBUILD ===================================== @@ -2,7 +2,7 @@ pkgname=python-humanfriendly pkgver=10.0 -pkgrel=7 +pkgrel=8 pkgdesc="Human friendly input/output for text interfaces using Python" arch=(any) url="https://github.com/xolox/python-humanfriendly" @@ -16,23 +16,26 @@ makedepends=( ) checkdepends=( python-docutils - python-pytest ) source=($pkgname-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz) sha512sums=('a0f324aa3af27088b77bd68c1d2ee65090ca6ace71414ae698452bc2a81de82f82f8d53b47145ea9822b93e600da3b871e9244a9681d06b54fa2c31efc2857ef') b2sums=('0e133bc4f871455f9aa20f542a9a5be83a47db07865b44cb53f2ba093425925404ab91d5019322a9a25448362b83cc040bdf1502c200022dd0a23c423799ee8f') +prepare() { + # replace use of mock with unittest.mock + # disable tests requiring even more dead capturer project + sed -e 's/from mock import/from unittest.mock import/;s/test_terminal_cap/off_test_terminal_cap/; s/test_prompt_for_conf/off_test_prompt_for_conf/; s/test_generate_warning/off_test_generate_warning/' -i $pkgname-$pkgver/${pkgname#python-}/tests.py +} + build() { cd $pkgname-$pkgver python -m build --wheel --no-isolation } -# tests are completely broken and this project is dead... -_- -# check() { -# cd $pkgname-$pkgver -# # disable tests that require dusty capturer project -# pytest -v $_name/tests.py -k "not test_terminal_capabilities and not test_generate_warning and not test_prompt_for_confirmation" -# } +check() { + cd $pkgname-$pkgver + python -m unittest discover -v ${pkgname#python-}/ +} package() { cd $pkgname-$pkgver View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-humanfriendly/-/commit/3553f5d7bdefcdfb489540742dabec719c282df8 -- This project does not include diff previews in email notifications. View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-humanfriendly/-/commit/3553f5d7bdefcdfb489540742dabec719c282df8 You're receiving this email because of your account on gitlab.archlinux.org.