Commit 0fc86bb7 authored by Hoang Nguyen's avatar Hoang Nguyen 🐢 Committed by alice
Browse files

testing/py3-gitlab: build with pep517 style, build manpage

parent 2cbf238a
Pipeline #125972 passed with stages
in 1 minute and 5 seconds
......@@ -2,29 +2,42 @@
pkgname=py3-gitlab
_pyname=${pkgname/py3/python}
pkgver=3.5.0
pkgrel=0
pkgrel=1
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"
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 setup.py build
python3 -m build --no-isolation --wheel
sphinx-build -W -b man docs/ man/
}
check() {
# Functional tests need docker
# Smoke tests fail on executing setup.py
pytest --ignore=tests/functional/ --ignore=tests/smoke/test_dists.py
python3 -m pytest --ignore=tests/functional/ --ignore=tests/smoke/test_dists.py
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
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="
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment