mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
testing/py3-rfc-bibtex: build with gpep517
This commit is contained in:
parent
b47ddc2dde
commit
986c85a44c
@ -3,27 +3,34 @@
|
||||
pkgname=py3-rfc-bibtex
|
||||
_pkgname=${pkgname#py3-}
|
||||
pkgver=0.3.2
|
||||
pkgrel=6
|
||||
pkgrel=7
|
||||
pkgdesc="Command line tool that creates BibTex entries for IETF RFCs and Internet Drafts"
|
||||
url="https://github.com/iluxonchik/rfc-bibtex/"
|
||||
arch="noarch"
|
||||
license="MIT"
|
||||
makedepends="py3-setuptools"
|
||||
makedepends="py3-setuptools py3-gpep517"
|
||||
depends="py3-idna py3-multidict py3-yaml py3-vcrpy py3-wrapt py3-yarl"
|
||||
subpackages="$pkgname-pyc"
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/iluxonchik/rfc-bibtex/archive/refs/tags/$pkgver.tar.gz"
|
||||
builddir="$srcdir"/$_pkgname-$pkgver
|
||||
|
||||
check() {
|
||||
python3 -m unittest discover tests
|
||||
build() {
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
build() {
|
||||
python3 setup.py build
|
||||
check() {
|
||||
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
||||
.testenv/bin/python3 -m unittest discover tests
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 setup.py install --skip-build --root="$pkgdir"
|
||||
gpep517 install-wheel --destdir "$pkgdir" \
|
||||
.dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="be67bf6e05df333333375e002344d2ca5fda133efbdcc400541ccc9c50b0452f1f52a1f65ec8f157930070fb44e05e0c1d26f220212112af0b0133f641156296 py3-rfc-bibtex-0.3.2.tar.gz"
|
||||
sha512sums="
|
||||
be67bf6e05df333333375e002344d2ca5fda133efbdcc400541ccc9c50b0452f1f52a1f65ec8f157930070fb44e05e0c1d26f220212112af0b0133f641156296 py3-rfc-bibtex-0.3.2.tar.gz
|
||||
"
|
||||
|
Loading…
Reference in New Issue
Block a user