backports/py3-gitlab: upgrade to 4.1.1
This commit is contained in:
parent
1e28879f05
commit
6a43138f45
1 changed files with 9 additions and 10 deletions
|
@ -1,8 +1,8 @@
|
|||
# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
|
||||
pkgname=py3-gitlab
|
||||
_pyname=${pkgname/py3/python}
|
||||
pkgver=3.14.0
|
||||
pkgrel=1
|
||||
pkgver=4.1.1
|
||||
pkgrel=0
|
||||
pkgdesc="Python wrapper for Gitlab's API"
|
||||
url="https://github.com/python-gitlab/python-gitlab"
|
||||
arch="noarch"
|
||||
|
@ -17,32 +17,31 @@ makedepends="
|
|||
py3-sphinxcontrib-autoprogram
|
||||
py3-myst-parser
|
||||
"
|
||||
checkdepends="py3-pytest py3-responses"
|
||||
checkdepends="py3-pytest py3-responses py3-build"
|
||||
subpackages="$pkgname-doc $pkgname-pyc"
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/python-gitlab/python-gitlab/archive/refs/tags/v$pkgver.tar.gz"
|
||||
builddir="$srcdir/$_pyname-$pkgver"
|
||||
|
||||
build() {
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir dist \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
sphinx-build -W -b man docs/ man/
|
||||
}
|
||||
|
||||
check() {
|
||||
sed -i "s|/usr/bin/false|/bin/false|g" tests/unit/test_config.py
|
||||
python3 -m venv --clear --without-pip --system-site-packages testenv
|
||||
testenv/bin/python3 -m installer dist/*.whl
|
||||
testenv/bin/python3 -m pytest --ignore=tests/functional/
|
||||
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||
.testenv/bin/python3 -m installer .dist/*.whl
|
||||
.testenv/bin/python3 -m pytest --ignore=tests/functional/
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 -m installer -d "$pkgdir" \
|
||||
dist/*.whl
|
||||
.dist/*.whl
|
||||
install -Dm644 man/$_pyname.1 \
|
||||
"$pkgdir"/usr/share/man/man1/$_pyname.1
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
01a41e6f4b9e316672b83270fce6fc30e69e9a0047644d04b27587eebda06dc2c575649367d9dc99b84782e940f236a07098a78d7c7662b555fd901e32d35176 py3-gitlab-3.14.0.tar.gz
|
||||
a536204fde999f570156498fffbdf357727279492740989aa02e2747473a8f492136a2eaff5a0c90ffc82081879d9b75891c76c6fcd00b6a53b81a8f0fd20045 py3-gitlab-4.1.1.tar.gz
|
||||
"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue