[arch-commits] Commit in python-sphinx-click/repos/community-any (PKGBUILD PKGBUILD)

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


    Date: Thursday, April 7, 2022 @ 13:33:14
  Author: dvzrv
Revision: 1182797

archrelease: copy trunk to community-any

Added:
  python-sphinx-click/repos/community-any/PKGBUILD
    (from rev 1182796, python-sphinx-click/trunk/PKGBUILD)
Deleted:
  python-sphinx-click/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   69 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 34 insertions(+), 35 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-04-07 13:33:06 UTC (rev 1182796)
+++ PKGBUILD	2022-04-07 13:33:14 UTC (rev 1182797)
@@ -1,35 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-_name=sphinx-click
-pkgname=python-sphinx-click
-pkgver=3.1.0
-pkgrel=1
-pkgdesc="Sphinx plugin to automatically document click-based applications"
-arch=(any)
-url="https://github.com/click-contrib/sphinx-click"
-license=(MIT)
-depends=(python-pbr python-sphinx)
-makedepends=(python-setuptools)
-checkdepends=(python-pytest python-click)
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
-sha512sums=('fe44d9e104216a7edadc2cdd467fd704deeacf580908b2d6e597104dabbf5d1006ee08019aa1252895d2929c42f34fc8ae540530a7bf20023cedcce8267c9a8b')
-b2sums=('ca38720636c8c3009db4b4345534883b63e647bd1e2fe1a5d79a4e80c2221a0e9543518d4f1ae9663571259cd14aff8b89f302f05a335b2c824ec24622e04853')
-
-build() {
-  cd "${_name}-${pkgver}"
-  python setup.py build
-}
-
-check() {
-  cd "${_name}-${pkgver}"
-  export PYTHONPATH="build:${PYTHONPATH}"
-  pytest -v
-}
-
-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}"
-}

Copied: python-sphinx-click/repos/community-any/PKGBUILD (from rev 1182796, python-sphinx-click/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-04-07 13:33:14 UTC (rev 1182797)
@@ -0,0 +1,34 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=sphinx-click
+pkgname=python-sphinx-click
+pkgver=4.0.0
+pkgrel=1
+pkgdesc="Sphinx plugin to automatically document click-based applications"
+arch=(any)
+url="https://github.com/click-contrib/sphinx-click"
+license=(MIT)
+depends=(python-pbr python-sphinx)
+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=('19e20037d086a050f861e61185d46cd85e64ff76308e7bff541441d7b5c4b8925f86822675e08e2963ec9d27a4625ed98052061e591bd759e68bb810927d1521')
+b2sums=('b461645d97d4552d2e3b591f0bc9853b7b971c7a67c72cd20abb3164a65e037fa94e9abb1c5561269ae64e99f16e0770e82ceb073a759e4fc383b812e42a1099')
+
+build() {
+  cd $_name-$pkgver
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd $_name-$pkgver
+  pytest -vv
+}
+
+package() {
+  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