mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-07 10:32:22 +01:00
48 lines
1.3 KiB
Plaintext
48 lines
1.3 KiB
Plaintext
# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
|
|
pkgname=py3-gitlab
|
|
_pyname=${pkgname/py3/python}
|
|
pkgver=3.8.0
|
|
pkgrel=0
|
|
pkgdesc="Python wrapper for Gitlab's API"
|
|
url="https://github.com/python-gitlab/python-gitlab"
|
|
arch="noarch"
|
|
license="LGPL-3.0-or-later"
|
|
depends="python3 py3-requests py3-requests-toolbelt"
|
|
makedepends="
|
|
py3-setuptools
|
|
py3-build
|
|
py3-installer
|
|
py3-wheel
|
|
py3-sphinx
|
|
py3-sphinxcontrib-autoprogram
|
|
py3-myst-parser
|
|
"
|
|
checkdepends="py3-pytest py3-responses"
|
|
subpackages="$pkgname-doc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/python-gitlab/python-gitlab/archive/refs/tags/v$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pyname-$pkgver"
|
|
|
|
build() {
|
|
python3 -m build --no-isolation --wheel
|
|
sphinx-build -W -b man docs/ man/
|
|
}
|
|
|
|
check() {
|
|
sed -i "s|/usr/bin/false|/bin/false|g" tests/unit/test_config.py
|
|
|
|
# Functional tests need docker
|
|
# Smoke tests fail on executing setup.py
|
|
python3 -m pytest --ignore=tests/functional/ --ignore=tests/smoke/test_dists.py
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
dist/python_gitlab-$pkgver-py3-none-any.whl
|
|
install -Dm644 man/$_pyname.1 \
|
|
"$pkgdir"/usr/share/man/man1/$_pyname.1
|
|
}
|
|
|
|
sha512sums="
|
|
8769650a10da441ee033a58b8b2adef75f7210488dafedaca730e58280af763a5155d8550da9755faf8abc77beba3116a8f01d5059407eec77165038e3ed4a99 py3-gitlab-3.8.0.tar.gz
|
|
"
|