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

community/py3-pep440: adopt aport

also, run tests
parent c3b3b238
No related branches found
No related tags found
No related merge requests found
# Contributor: Aiden Grossman <agrossman154@yahoo.com>
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=py3-pep440
pkgver=0.1.2
pkgrel=3
pkgrel=4
pkgdesc="Checks whether version numbers are PEP440 compliant"
url="https://github.com/Carreau/pep440"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-gpep517 py3-flit-core"
checkdepends="py3-pytest"
checkdepends="py3-pytest py3-pytest-console-scripts"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/Carreau/pep440/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/pep440-$pkgver"
options="!check" # no checks
build() {
gpep517 build-wheel \
......@@ -21,6 +19,14 @@ build() {
--output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
# test_cli.py tries to run "pep440" executable
PATH="$builddir/.testenv/bin:$PATH" .testenv/bin/python3 -m pytest
}
package() {
python3 -m installer --destdir="$pkgdir" .dist/*.whl
}
......
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