mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 19:55:26 +03:00
we never use pip in the venv manually made for tests- this might break 1-2 things unexpectedly, but - those should be looked at anyway - this has a severe speedup- even on a desktop machine with nvme, this makes an arbitrary venv go from 2.6s to <100ms(!) to make. a nice small optimisation.
42 lines
1.4 KiB
Text
42 lines
1.4 KiB
Text
# Contributor: Michał Polański <michal@polanski.me>
|
|
# Maintainer: Michał Polański <michal@polanski.me>
|
|
pkgname=py3-poetry-plugin-export
|
|
pkgver=1.3.0
|
|
pkgrel=0
|
|
pkgdesc="Poetry plugin to export the dependencies to various formats"
|
|
url="https://github.com/python-poetry/poetry-plugin-export"
|
|
arch="noarch"
|
|
license="MIT"
|
|
# This plugin depends on poetry, but poetry depends on it as well.
|
|
# Poetry is therefore not listed to avoid a cyclic dependecy.
|
|
# See: https://github.com/python-poetry/poetry/pull/5980
|
|
depends="python3"
|
|
makedepends="py3-gpep517 py3-installer py3-poetry-core"
|
|
checkdepends="py3-pytest py3-pytest-mock"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/python-poetry/poetry-plugin-export/archive/$pkgver.tar.gz
|
|
pytest.patch
|
|
"
|
|
builddir="$srcdir/poetry-plugin-export-$pkgver"
|
|
options="!check" # cyclic dependency on poetry
|
|
|
|
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="
|
|
cdb0cece91470141956833780dfcad676e99b51fa6158521401499b8f67c3e6f954ce16e227b7916336cef011f4a7b651948a8440852253fe57753eb40bbf8e5 py3-poetry-plugin-export-1.3.0.tar.gz
|
|
1bad78c40d1647b32bd2d111179f7f44195c0e606a24f26b87c4ebf3cc05730659a3ebe9ffcf09f9e698ac0421c8f90de58038940f41963bea93be610edc7e41 pytest.patch
|
|
"
|