[arch-commits] Commit in python-sphinx-click/trunk (PKGBUILD)

David Runge dvzrv at gemini.archlinux.org
Thu Apr 7 13:33:07 UTC 2022


    Date: Thursday, April 7, 2022 @ 13:33:06
  Author: dvzrv
Revision: 1182796

upgpkg: python-sphinx-click 4.0.0-1: Upgrade to 4.0.0.

Switch to PEP517.

Modified:
  python-sphinx-click/trunk/PKGBUILD

----------+
 PKGBUILD |   29 ++++++++++++++---------------
 1 file changed, 14 insertions(+), 15 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-04-07 13:30:28 UTC (rev 1182795)
+++ PKGBUILD	2022-04-07 13:33:06 UTC (rev 1182796)
@@ -2,7 +2,7 @@
 
 _name=sphinx-click
 pkgname=python-sphinx-click
-pkgver=3.1.0
+pkgver=4.0.0
 pkgrel=1
 pkgdesc="Sphinx plugin to automatically document click-based applications"
 arch=(any)
@@ -9,27 +9,26 @@
 url="https://github.com/click-contrib/sphinx-click"
 license=(MIT)
 depends=(python-pbr python-sphinx)
-makedepends=(python-setuptools)
+makedepends=(python-build python-installer python-setuptools python-wheel)
 checkdepends=(python-pytest python-click)
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
-sha512sums=('fe44d9e104216a7edadc2cdd467fd704deeacf580908b2d6e597104dabbf5d1006ee08019aa1252895d2929c42f34fc8ae540530a7bf20023cedcce8267c9a8b')
-b2sums=('ca38720636c8c3009db4b4345534883b63e647bd1e2fe1a5d79a4e80c2221a0e9543518d4f1ae9663571259cd14aff8b89f302f05a335b2c824ec24622e04853')
+source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
+sha512sums=('19e20037d086a050f861e61185d46cd85e64ff76308e7bff541441d7b5c4b8925f86822675e08e2963ec9d27a4625ed98052061e591bd759e68bb810927d1521')
+b2sums=('b461645d97d4552d2e3b591f0bc9853b7b971c7a67c72cd20abb3164a65e037fa94e9abb1c5561269ae64e99f16e0770e82ceb073a759e4fc383b812e42a1099')
 
 build() {
-  cd "${_name}-${pkgver}"
-  python setup.py build
+  cd $_name-$pkgver
+  python -m build --wheel --no-isolation
 }
 
 check() {
-  cd "${_name}-${pkgver}"
-  export PYTHONPATH="build:${PYTHONPATH}"
-  pytest -v
+  cd $_name-$pkgver
+  pytest -vv
 }
 
 package() {
-  cd "${_name}-${pkgver}"
-  python setup.py install --optimize=1 --root="${pkgdir}"
-  install -vDm 644 {AUTHORS,ChangeLog,README.rst} -t "${pkgdir}/usr/share/doc/${pkgname}"
-  install -vDm 644 docs/*.rst -t "${pkgdir}/usr/share/doc/${pkgname}/docs/"
-  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  cd $_name-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -vDm 644 {AUTHORS,ChangeLog,README.rst} -t "$pkgdir/usr/share/doc/$pkgname/"
+  install -vDm 644 docs/*.rst -t "$pkgdir/usr/share/doc/$pkgname/docs/"
+  install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
 }



More information about the arch-commits mailing list