* update python-sphinx-issues to 4.1.0-1

This commit is contained in:
Alexander Baldeck 2024-05-10 08:25:34 +02:00
parent caf1ae9443
commit 0870cf3b01

View File

@ -3,31 +3,33 @@
pkgname=python-sphinx-issues
_pyname=${pkgname/python-/}
pkgver=3.0.1
pkgrel=2
pkgver=4.1.0
pkgrel=1
pkgdesc="Sphinx extension for linking to your project's issue tracker"
url='https://github.com/sloria/sphinx-issues'
arch=(any)
license=('MIT')
depends=('python' 'python-sphinx')
makedepends=('python-setuptools')
makedepends=('python-build' 'python-installer' 'python-flit-core')
checkdepends=('python-pytest')
source=(https://github.com/sloria/sphinx-issues/archive/${pkgver}/${_pyname}-${pkgver}.tar.gz)
sha512sums=('dd64e1611eb58fc455bedb1658473fd71e4deab1371d8a42e6fa7fe3b128a991251add12e463b9a5826fd4eb5aa12e9a117dcf953feeb8df980a7951e43d8baa')
sha512sums=('24ce1353a6596e63db2b5058d9081f6533e3108de024cd6af5dd060e2286c89a546d4e7c0541be07484302736951cfedb97ae09d3259218760e5abb670f8f647')
build() {
cd ${_pyname}-${pkgver}
python setup.py build
python -m build --wheel --no-isolation
}
check() {
cd ${_pyname}-${pkgver}
PYTHONPATH="$PWD" py.test
python -m installer --destdir=tmp-install dist/*.whl
PYTHONPATH="$PWD"/tmp-install`python -c "import site; print(site.getsitepackages()[0])"` \
py.test -v
}
package() {
cd ${_pyname}-${pkgver}
python setup.py install -O1 --root="${pkgdir}" --skip-build
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
install -Dm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
}