mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-11-01 17:01:34 +01:00
39 lines
997 B
Plaintext
39 lines
997 B
Plaintext
# Contributor: Duncan Bellamy <dunk@denkimushi.com>
|
|
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
|
|
pkgname=py3-autocommand
|
|
pkgver=2.2.2
|
|
pkgrel=1
|
|
pkgdesc="turns a python function into a CLI program"
|
|
url="https://github.com/Lucretiel/autocommand"
|
|
arch="noarch"
|
|
license="LGPL-3.0-only"
|
|
depends="python3"
|
|
makedepends="
|
|
py3-gpep517
|
|
py3-setuptools
|
|
py3-wheel
|
|
"
|
|
checkdepends="py3-pytest"
|
|
source="https://files.pythonhosted.org/packages/source/a/autocommand/autocommand-$pkgver.tar.gz"
|
|
builddir="$srcdir/autocommand-$pkgver"
|
|
|
|
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="
|
|
7e78b3bb7eb62be8a308fe4406b0c72170f9a057010b02a1f8f0d2b33b5d19682d8795bb573728ebe941957ec60d86edd9db57659f63a4a2d788c7176907f067 autocommand-2.2.2.tar.gz
|
|
"
|