Date: Tuesday, April 11, 2023 @ 06:27:16
Author: polyzen
Revision: 1444624
upgpkg: python-sphinx-autodoc-typehints 1.19.5-2: Update URL/repo
This repo includes tags, so no need to pin commit. pkgver() also wasn't working
previously.
Modified:
python-sphinx-autodoc-typehints/trunk/PKGBUILD
----------+
PKGBUILD | 12 +++---------
1 file changed, 3 insertions(+), 9 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2023-04-11 04:27:42 UTC (rev 1444623)
+++ PKGBUILD 2023-04-11 06:27:16 UTC (rev 1444624)
@@ -2,24 +2,18 @@
pkgname=python-sphinx-autodoc-typehints
_pyname=${pkgname/python-/}
-_gitcommit=9d67010bcc5cd7d1d917069b75e43057551af7be
pkgver=1.19.5
-pkgrel=1
+pkgrel=2
pkgdesc='Type hints support for the Sphinx autodoc extension'
-url='https://github.com/agronholm/sphinx-autodoc-typehints'
+url='https://github.com/tox-dev/sphinx-autodoc-typehints'
arch=('any')
license=('MIT')
depends=('python' 'python-sphinx' 'python-typing_extensions')
makedepends=('git' 'python-build' 'python-installer' 'python-hatchling'
'python-hatch-vcs')
checkdepends=('python-pytest' 'python-sphobjinv' 'python-nptyping')
-source=("git+https://github.com/agronholm/sphinx-autodoc-typehints#commit=${_gitcommit}")
+source=("git+$url.git#tag=${pkgver}")
sha512sums=('SKIP')
-pkgver() {
- cd ${_pyname}
- git describe --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
-}
-
build() {
cd ${_pyname}
python -m build --wheel --no-isolation