Date: Wednesday, April 19, 2023 @ 15:06:38
  Author: dvzrv
Revision: 1447455

upgpkg: python-manuel 1.12.4-4: Rebuild against Python 3.11.

Remove python-setuptools from depends: 
https://github.com/benji-york/manuel/issues/36
Do not remove testing.py which is apparently still needed by other packages.

Modified:
  python-manuel/trunk/PKGBUILD

----------+
 PKGBUILD |   26 +++++++++++++++++++-------
 1 file changed, 19 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-04-19 14:52:10 UTC (rev 1447454)
+++ PKGBUILD    2023-04-19 15:06:38 UTC (rev 1447455)
@@ -1,22 +1,34 @@
-# Maintainer: Felix Yan <[email protected]>
+# Maintainer:
+# Contributor: Felix Yan <[email protected]>
 
 _name=manuel
 pkgname=python-manuel
 pkgver=1.12.4
-pkgrel=3
+pkgrel=4
 pkgdesc="Manuel lets you build tested documentation"
 arch=(any)
 license=(Apache)
 url="https://github.com/benji-york/manuel";
-# six is still required during check(): 
https://github.com/benji-york/manuel/issues/33
-# setuptools likely not needed: https://github.com/benji-york/manuel/issues/36
-depends=(python-setuptools python-six)
-makedepends=(python-build python-installer python-wheel)
+depends=(
+  python
+  python-six # six is still required during check(): 
https://github.com/benji-york/manuel/issues/33
+)
+makedepends=(
+  python-build
+  python-installer
+  python-setuptools
+  python-wheel
+)
 checkdepends=(python-zope-testing)
 
source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
 
sha512sums=('cd65307f2ca94e66d88bc0c7c75702d49f505b358ebb812fd20906036ba10f2d1d11d2d69404b88c5f10b584dea05a988b5dc8ba07210b9d20ebd8a11b701633')
 
b2sums=('e15f9261854fbad8ee1e1dc8645ec286a212c460a78fff1576b6886d8bf462ffe9a5484338fd9efc2bf053a7689e16b08de55f763ae319e66a363c5c28cf2a60')
 
+prepare() {
+  # setuptools not needed: https://github.com/benji-york/manuel/issues/36
+  sed -e "/'setuptools',/d" -i $_name-$pkgver/setup.py
+}
+
 build() {
   cd $_name-$pkgver
   python -m build --wheel --no-isolation
@@ -39,5 +51,5 @@
   cd $_name-$pkgver
   python -m installer --destdir="$pkgdir" dist/*.whl
 
-  rm -frv "$pkgdir/$site_packages/$_name/"{tests,testing}.py
+  rm -frv "$pkgdir/$site_packages/$_name/"tests.py
 }

Reply via email to