mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
testing/py3-pip-tools: new aport
This commit is contained in:
parent
82866f53a4
commit
b5756cf883
47
testing/py3-pip-tools/APKBUILD
Normal file
47
testing/py3-pip-tools/APKBUILD
Normal file
@ -0,0 +1,47 @@
|
||||
# Maintainer: Hugo Osvaldo Barrera <hugo@whynothugo.nl>
|
||||
pkgname=py3-pip-tools
|
||||
pkgver=6.13.0
|
||||
pkgrel=0
|
||||
pkgdesc="A set of tools to keep your pinned Python dependencies fresh."
|
||||
url="https://pip-tools.rtfd.io"
|
||||
arch="noarch"
|
||||
license="BSD-3-Clause"
|
||||
source="https://files.pythonhosted.org/packages/source/p/pip-tools/pip-tools-$pkgver.tar.gz"
|
||||
depends="
|
||||
py3-build
|
||||
py3-click
|
||||
py3-pip
|
||||
"
|
||||
makedepends="
|
||||
py3-gpep517
|
||||
py3-installer
|
||||
py3-setuptools_scm
|
||||
py3-wheel
|
||||
"
|
||||
checkdepends="py3-pytest-xdist"
|
||||
subpackages="$pkgname-pyc"
|
||||
builddir="$srcdir/pip-tools-$pkgver"
|
||||
# requires every build backend in the universe
|
||||
options="!check"
|
||||
|
||||
build() {
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION="$pkgver" \
|
||||
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="
|
||||
64dd1ad6fce80cc676b1b9b6e89fba1b207cd5de5bc2ba19b9aa71e33649d3451a400cab6fb851b6d1431e6aa147b40982c806937daf738611383746843f666a pip-tools-6.13.0.tar.gz
|
||||
"
|
Loading…
Reference in New Issue
Block a user