David Runge pushed to branch main at Arch Linux / Packaging / Packages / python-manuel
Commits: 56464dfa by David Runge at 2024-04-20T16:23:34+02:00 Switch to upstream provided auto-generated source tarballs Signed-off-by: David Runge <dv...@archlinux.org> - - - - - a41e32e1 by David Runge at 2024-04-20T16:23:58+02:00 Switch to correct SPDX license identifier Signed-off-by: David Runge <dv...@archlinux.org> - - - - - efb109fd by David Runge at 2024-04-20T16:26:56+02:00 Remove the use of python-six Signed-off-by: David Runge <dv...@archlinux.org> - - - - - 4bfd9a68 by David Runge at 2024-04-20T16:34:30+02:00 Fix tests for Python 3.11 Signed-off-by: David Runge <dv...@archlinux.org> - - - - - 44b80445 by David Runge at 2024-04-20T16:34:50+02:00 upgpkg: 1.12.4-6: Rebuild against Python 3.12 - - - - - 2 changed files: - .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -1,19 +1,24 @@ pkgbase = python-manuel pkgdesc = Manuel lets you build tested documentation pkgver = 1.12.4 - pkgrel = 5 + pkgrel = 6 url = https://github.com/benji-york/manuel arch = any - license = Apache + license = Apache-2.0 checkdepends = python-zope-testing makedepends = python-build makedepends = python-installer makedepends = python-setuptools makedepends = python-wheel depends = python - depends = python-six - source = https://files.pythonhosted.org/packages/source/m/manuel/manuel-1.12.4.tar.gz - sha512sums = cd65307f2ca94e66d88bc0c7c75702d49f505b358ebb812fd20906036ba10f2d1d11d2d69404b88c5f10b584dea05a988b5dc8ba07210b9d20ebd8a11b701633 - b2sums = e15f9261854fbad8ee1e1dc8645ec286a212c460a78fff1576b6886d8bf462ffe9a5484338fd9efc2bf053a7689e16b08de55f763ae319e66a363c5c28cf2a60 + source = python-manuel-1.12.4.tar.gz::https://github.com/benji-york/manuel/archive/refs/tags/1.12.4.tar.gz + source = python-manuel-1.12.4-remove_six.patch::https://github.com/benji-york/manuel/commit/e24907c7e6a5dd9485f02772392c0bdac26e14b7.patch + source = python-manuel-1.12.4-python3.11.patch::https://github.com/benji-york/manuel/commit/10ff3c00a3d811fc6cb9d048025d713540b92de8.patch + sha512sums = e39c93a6be92b2a5c09c461e2341690f670919b9bcb7665771cba0a0a4f6d695e4ad1ae53641f73f8e54b5ad8b4485831b480874936dc2ad17cbc88abfe2935c + sha512sums = 20e63cece08fd055177060e6b7023b0a2b12d904f8c714066a61d343245efcda52e94e4359cda78b08b5d8cdcb22ba49af6b99c52a82a9e452919ce6f98ec59c + sha512sums = fcad7cdfda15803ed7a4488ec717a3070bde5680b3e12d0fea6805e6fb7b52f44e1a485c07b28a1729fc916f595f910b1752867c5abf577b7ea0cbc95f98ead4 + b2sums = 13cfa1144f9c45ce0a13ee20c516ff78fdb47cbb7edad8cce10555ad14ebe05f6ade765c9c24318b8ebbb923c483f6a52ff64f3a26d7e0c67e14f2dffbbff408 + b2sums = 488e60433319c9a5240949478a1f3bb545666f5a95bce86bbdae2a784c23c204ac0559f7e13382a9932001a01c4652afbf2ad3536f3bd7781ee47d0f0eec0df7 + b2sums = d123943aede6ac671300e7f88620ca155c27d349d32c0d429e04391c834b35097184fa57a651939635d0b1508d2463816060ed82f36ddcd7a8be37f25d9b83bf pkgname = python-manuel ===================================== PKGBUILD ===================================== @@ -1,17 +1,16 @@ # Maintainer: # Contributor: Felix Yan <felixonm...@archlinux.org> -_name=manuel pkgname=python-manuel +_name="${pkgname#python-}" pkgver=1.12.4 -pkgrel=5 +pkgrel=6 pkgdesc="Manuel lets you build tested documentation" arch=(any) -license=(Apache) +license=(Apache-2.0) url="https://github.com/benji-york/manuel" depends=( python - python-six # six is still required during check(): https://github.com/benji-york/manuel/issues/33 ) makedepends=( python-build @@ -20,11 +19,25 @@ makedepends=( python-wheel ) checkdepends=(python-zope-testing) -source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz) -sha512sums=('cd65307f2ca94e66d88bc0c7c75702d49f505b358ebb812fd20906036ba10f2d1d11d2d69404b88c5f10b584dea05a988b5dc8ba07210b9d20ebd8a11b701633') -b2sums=('e15f9261854fbad8ee1e1dc8645ec286a212c460a78fff1576b6886d8bf462ffe9a5484338fd9efc2bf053a7689e16b08de55f763ae319e66a363c5c28cf2a60') +source=( + $pkgname-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz + $pkgname-1.12.4-remove_six.patch::https://github.com/benji-york/manuel/commit/e24907c7e6a5dd9485f02772392c0bdac26e14b7.patch + $pkgname-1.12.4-python3.11.patch::https://github.com/benji-york/manuel/commit/10ff3c00a3d811fc6cb9d048025d713540b92de8.patch +) +sha512sums=('e39c93a6be92b2a5c09c461e2341690f670919b9bcb7665771cba0a0a4f6d695e4ad1ae53641f73f8e54b5ad8b4485831b480874936dc2ad17cbc88abfe2935c' + '20e63cece08fd055177060e6b7023b0a2b12d904f8c714066a61d343245efcda52e94e4359cda78b08b5d8cdcb22ba49af6b99c52a82a9e452919ce6f98ec59c' + 'fcad7cdfda15803ed7a4488ec717a3070bde5680b3e12d0fea6805e6fb7b52f44e1a485c07b28a1729fc916f595f910b1752867c5abf577b7ea0cbc95f98ead4') +b2sums=('13cfa1144f9c45ce0a13ee20c516ff78fdb47cbb7edad8cce10555ad14ebe05f6ade765c9c24318b8ebbb923c483f6a52ff64f3a26d7e0c67e14f2dffbbff408' + '488e60433319c9a5240949478a1f3bb545666f5a95bce86bbdae2a784c23c204ac0559f7e13382a9932001a01c4652afbf2ad3536f3bd7781ee47d0f0eec0df7' + 'd123943aede6ac671300e7f88620ca155c27d349d32c0d429e04391c834b35097184fa57a651939635d0b1508d2463816060ed82f36ddcd7a8be37f25d9b83bf') prepare() { + # remove use of python-six: https://github.com/benji-york/manuel/issues/33 + patch -Np1 -d $_name-$pkgver -i ../$pkgname-1.12.4-remove_six.patch + + # fix tests for Python 3.11 + patch -Np1 -d $_name-$pkgver -i ../$pkgname-1.12.4-python3.11.patch + # setuptools not needed: https://github.com/benji-york/manuel/issues/36 sed -e "/'setuptools',/d" -i $_name-$pkgver/setup.py } @@ -34,17 +47,10 @@ build() { python -m build --wheel --no-isolation } -# tests currently broken: https://github.com/benji-york/manuel/issues/34 -# check() { -# local site_packages=$(python -c "import site; print(site.getsitepackages()[0])") - -# cd $_name-$pkgver -# python -m installer --destdir=test_dir dist/*.whl -# export PYTHONPATH="test_dir/$site_packages:$PYTHONPATH" - -# python -m unittest discover -vs src/$_name/ -# python src/$_name/tests.py -# } +check() { + cd $_name-$pkgver + PYTHONPATH="$PWD/src" python -m unittest -vv $_name.tests.test_suite +} package() { local site_packages=$(python -c "import site; print(site.getsitepackages()[0])") View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-manuel/-/compare/92769632fd10115d7bbab1d741f2b515e3b66927...44b804457c931e81d65312d3c0d0fa6e87b071e3 -- This project does not include diff previews in email notifications. View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-manuel/-/compare/92769632fd10115d7bbab1d741f2b515e3b66927...44b804457c931e81d65312d3c0d0fa6e87b071e3 You're receiving this email because of your account on gitlab.archlinux.org.