mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
testing/epy: new aport
This commit is contained in:
parent
7953a9f13b
commit
6afb80a832
37
testing/epy/APKBUILD
Normal file
37
testing/epy/APKBUILD
Normal file
@ -0,0 +1,37 @@
|
||||
# Contributor: Will Sinatra <wpsinatra@gmail.com>
|
||||
# Maintainer: Will Sinatra <wpsinatra@gmail.com>
|
||||
pkgname=epy
|
||||
pkgver=2023.2.8
|
||||
pkgrel=0
|
||||
pkgdesc="CLI Ebook Reader"
|
||||
url="https://github.com/wustho/epy"
|
||||
license="GPL-3.0-only"
|
||||
arch="all"
|
||||
makedepends="
|
||||
py3-gpep517
|
||||
py3-poetry-core
|
||||
"
|
||||
checkdepends="py3-pytest py3-coverage"
|
||||
subpackages="$pkgname-pyc"
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/wustho/epy/archive/refs/tags/v$pkgver.tar.gz"
|
||||
|
||||
build() {
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
check() {
|
||||
python3 -m venv --clear --without-pip --system-site-packages testenv
|
||||
testenv/bin/python3 -m installer dist/*.whl
|
||||
testenv/bin/python3 -m pytest
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 -m installer -d "$pkgdir" \
|
||||
dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
912cfb0c1c6aecf73c212d9e4a5ab33f8b0e29b6e872aee1264295168e9fefe099c04332292e34d825e5ddcfa4a1b7c5fe8f140a078974dc2cecfd95fdf942a7 epy-2023.2.8.tar.gz
|
||||
"
|
Loading…
Reference in New Issue
Block a user