pyproject_hooks: bump version

This commit is contained in:
Jérôme Duval
2025-09-23 19:05:09 +02:00
parent 58fb3fcf65
commit 39ec1533f1

View File

@@ -0,0 +1,74 @@
SUMMARY="Low-level replacement for pep517"
DESCRIPTION="This is a low-level library for calling build-backends in 'pyproject.toml'-based \
project. It provides the basic functionality to help write tooling that generates distribution files \
from Python projects.
If you want a tool that builds Python packages, youll want to use https://github.com/pypa/build \
instead. This is an underlying piece for pip, build and other “build frontends” use to call \
“build backends” within them.
Note: The 'pep517' project has been replaced by this project (low level) and the 'build' project \
(high level)."
HOMEPAGE="https://pypi.org/project/pyproject_hooks/"
COPYRIGHT="2017 Thomas Kluyver"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://files.pythonhosted.org/packages/source/p/pyproject-hooks/pyproject_hooks-$portVersion.tar.gz"
CHECKSUM_SHA256="1e859bd5c40fae9448642dd871adf459e5e2084186e8d2c2a79a824c970da1f8"
SOURCE_DIR="pyproject_hooks-$portVersion"
ARCHITECTURES="any"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
PYTHON_VERSIONS=(3.10)
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
pythonPackage=python${pythonVersion//.}
eval "PROVIDES_$pythonPackage=\"
${portName}_$pythonPackage = $portVersion
\""
eval "REQUIRES_$pythonPackage=\"
haiku
cmd:python$pythonVersion
\""
BUILD_REQUIRES+="
flit_core_$pythonPackage
installer_$pythonPackage
"
BUILD_PREREQUIRES+="
cmd:python$pythonVersion
"
TEST_REQUIRES+="
tomli_$pythonPackage # only needed for Python < 3.11
"
done
INSTALL()
{
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
pythonPackage=python${pythonVersion//.}
python=python$pythonVersion
rm -rf dist
$python -m flit_core.wheel
$python -m installer -p $prefix dist/*.whl
packageEntries $pythonPackage \
$prefix/lib/python*
done
}