python3-flit_core: clean up bootstrapping
This commit is contained in:
parent
4f0c3eccbd
commit
5e9a5d56da
@ -1,39 +1,31 @@
|
||||
# Template file for 'python3-flit_core'
|
||||
pkgname=python3-flit_core
|
||||
version=3.9.0
|
||||
revision=1
|
||||
build_wrksrc="flit-${version}/flit_core"
|
||||
revision=2
|
||||
# This package is required by python3-build and python3-installer, used by the
|
||||
# python3-pep517 style; so using that style here would create a cycle
|
||||
build_style=python3-module
|
||||
hostmakedepends="python3"
|
||||
depends="python3"
|
||||
checkdepends="python3-pytest python3-testpath $depends"
|
||||
short_desc="Simplified packaging of Python modules - PEP 517 build backend"
|
||||
maintainer="Andrew J. Hesford <ajh@sideband.org>"
|
||||
license="BSD-3-Clause"
|
||||
homepage="https://flit.readthedocs.io"
|
||||
changelog="https://flit.readthedocs.io/en/latest/history.html"
|
||||
# Pull the installer package directly to bootstrap the pep517 toolchain
|
||||
_installer_version="0.5.1"
|
||||
distfiles="${PYPI_SITE}/f/flit/flit-${version}.tar.gz
|
||||
${PYPI_SITE}/i/installer/installer-${_installer_version}.tar.gz
|
||||
"
|
||||
checksum="d75edf5eb324da20d53570a6a6f87f51e606eee8384925cd66a90611140844c7
|
||||
f970995ec2bb815e2fdaf7977b26b2091e1e386f0f42eafd5ac811953dc5d445"
|
||||
homepage="https://flit.pypa.io/"
|
||||
changelog="https://flit.pypa.io/en/stable/history.html"
|
||||
distfiles="${PYPI_SITE}/f/flit_core/flit_core-${version}.tar.gz"
|
||||
checksum=72ad266176c4a3fcfab5f2930d76896059851240570ce9a98733b658cb786eba
|
||||
|
||||
do_build() {
|
||||
python3 -m flit_core.wheel
|
||||
}
|
||||
|
||||
do_install() {
|
||||
local pypath="../../installer-${_installer_version}/src"
|
||||
if [ -n "${PYTHONPATH}" ]; then
|
||||
pypath="${pypath}:${PYTHONPATH}"
|
||||
fi
|
||||
do_check() {
|
||||
python3 -m pytest flit_core/tests
|
||||
}
|
||||
|
||||
PYTHONPATH="${pypath}" python3 -m installer --destdir "${DESTDIR}" \
|
||||
do_install() {
|
||||
python3 bootstrap_install.py --install-root "${DESTDIR}" \
|
||||
"dist/flit_core-${version}-py3-none-any.whl"
|
||||
|
||||
vlicense ../LICENSE
|
||||
vlicense LICENSE
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user