Skip to content
Snippets Groups Projects
Commit 4db52811 authored by Celeste's avatar Celeste
Browse files

community/py3-genshi: upgrade to 0.7.9 & use gpep517 packaging

parent 18a44781
No related branches found
No related tags found
1 merge request!67874community/py3-genshi: upgrade to 0.7.9 & use gpep517 packaging
Pipeline #242187 passed
......@@ -2,32 +2,43 @@
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=py3-genshi
_realname=Genshi
pkgver=0.7.7
pkgrel=3
pkgver=0.7.9
pkgrel=0
pkgdesc="Python toolkit for stream-based generation of output for the web"
url="http://genshi.edgewall.org/"
url="https://genshi.edgewall.org/"
arch="all"
license="MIT"
depends="python3"
makedepends="py3-setuptools python3-dev"
checkdepends="py3-six"
makedepends="
py3-gpep517
py3-setuptools
py3-wheel
python3-dev
"
checkdepends="
py3-pytest
py3-six
"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/edgewall/genshi/archive/$pkgver.tar.gz"
builddir="$srcdir/genshi-$pkgver"
build() {
python3 setup.py build
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 setup.py test
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
.testenv/bin/python3 -m pytest
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
c946a27f451b74bab9c4af63965fc255c69736d436f39f9cc346df4ecf5e13f6ee46ae71c5df572a908c89990b31d1ec442e966ab7620994e096e5d021d71487 py3-genshi-0.7.7.tar.gz
4b0b238ea8de5d79091c4c6704ef6f09039481a520fd5795ad60e7b83522b80704fb98d75570c5f2733d951151ee5258c9864155b9d322a8aeb1e4cdfbfbba98 py3-genshi-0.7.9.tar.gz
"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment