* update python-sphinx-autodoc-typehints to 2.4.1-1

This commit is contained in:
Alexander Baldeck 2024-09-24 18:04:29 +02:00
parent 8b7c79f0eb
commit ab0f9b922f
2 changed files with 9 additions and 10 deletions

View File

@ -1,6 +1,6 @@
pkgbase = python-sphinx-autodoc-typehints
pkgdesc = Type hints support for the Sphinx autodoc extension
pkgver = 2.2.2
pkgver = 2.4.1
pkgrel = 1
url = https://github.com/tox-dev/sphinx-autodoc-typehints
arch = any
@ -17,7 +17,7 @@ pkgbase = python-sphinx-autodoc-typehints
depends = python
depends = python-sphinx
optdepends = python-nptyping: for numpydoc support
source = git+https://github.com/tox-dev/sphinx-autodoc-typehints.git#tag=2.2.2
b2sums = e6402d4b5dc4e7f68753e5009fc3b54541105b0f9a2d6b1b4f7d547aac162b34076f23426fb2859d99ec1cd0b1d905e930f9eb7b2558eefde1e99eab608947a4
source = git+https://github.com/tox-dev/sphinx-autodoc-typehints.git#tag=2.4.1
b2sums = 1057e09ccf4d28fe379d8b370384456283fad3e0f47a57a92564eae03936e83d7cddb8fc8dbd0cb6b005a9c5e2f8d5b1a902bf882cfdc55339eb0dedf6f83e67
pkgname = python-sphinx-autodoc-typehints

View File

@ -4,7 +4,7 @@
pkgname=python-sphinx-autodoc-typehints
_pyname=${pkgname/python-/}
pkgver=2.2.2
pkgver=2.4.1
pkgrel=1
pkgdesc='Type hints support for the Sphinx autodoc extension'
arch=(any)
@ -29,7 +29,7 @@ checkdepends=(
)
optdepends=('python-nptyping: for numpydoc support')
source=("git+$url.git#tag=$pkgver")
b2sums=('e6402d4b5dc4e7f68753e5009fc3b54541105b0f9a2d6b1b4f7d547aac162b34076f23426fb2859d99ec1cd0b1d905e930f9eb7b2558eefde1e99eab608947a4')
b2sums=('1057e09ccf4d28fe379d8b370384456283fad3e0f47a57a92564eae03936e83d7cddb8fc8dbd0cb6b005a9c5e2f8d5b1a902bf882cfdc55339eb0dedf6f83e67')
build() {
cd "$_pyname"
@ -42,15 +42,14 @@ check() {
}
package() {
cd "$_pyname"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
# Symlink license file
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
install -d "$pkgdir/usr/share/licenses/$pkgname"
ln -s "$site_packages/${_pyname//-/_}-$pkgver.dist-info/licenses/LICENSE" \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
cd "$_pyname"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
}
# vim: ts=2 sw=2 et: