import ports/devel/py-pyproject_hooks, ok/tweak tb@

This is a low-level library for calling build-backends in
pyproject.toml-based projects. 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, you'll 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.
This commit is contained in:
sthen 2023-01-17 09:40:55 +00:00
parent 07d6f41a1a
commit 63b9ed69cd
4 changed files with 77 additions and 0 deletions

View File

@ -0,0 +1,42 @@
COMMENT= wrappers to call pyproject.toml-based build backend hooks
MODPY_EGG_VERSION= 1.0.0
DISTNAME= pyproject_hooks-${MODPY_EGG_VERSION}
PKGNAME= py-${DISTNAME}
CATEGORIES= devel
# https://github.com/pypa/pyproject-hooks
# https://pyproject-hooks.readthedocs.io/en/latest/changelog.html
HOMEPAGE= https://pyproject-hooks.readthedocs.io/
# MIT
PERMIT_PACKAGE= Yes
MODULES= lang/python
MODPY_PI= Yes
FLAVOR= python3
FLAVORS= python3
RUN_DEPENDS= textproc/py-tomli${MODPY_FLAVOR}
MODPY_PYTEST= Yes
TEST_DEPENDS= devel/py-testpath${MODPY_FLAVOR}
PORTHOME= ${WRKDIR}
# this port is used as a BDEP by python.port.mk for ports using
# MODPY_PYBUILD, so cannot use MODPY_PYBUILD itself.
BUILD_DEPENDS+= devel/py-flit_core${MODPY_FLAVOR} \
devel/py-installer${MODPY_FLAVOR}
do-build:
cd ${WRKSRC} && ${MODPY_BIN} -m flit_core.wheel
do-install:
${INSTALL_DATA_DIR} ${WRKINST}${MODPY_LIBDIR}
${MODPY_BIN} -m installer -d ${WRKINST} ${WRKSRC}/dist/*.whl
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (pyproject_hooks-1.0.0.tar.gz) = 8nGymLl/WVXVP7ErcsH7GUjCLBprcLMVxUztrKAmTvU=
SIZE (pyproject_hooks-1.0.0.tar.gz) = 16901

View File

@ -0,0 +1,9 @@
This is a low-level library for calling build-backends in
pyproject.toml-based projects. 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, you'll 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.

View File

@ -0,0 +1,24 @@
lib/python${MODPY_VERSION}/site-packages/pyproject_hooks/
lib/python${MODPY_VERSION}/site-packages/pyproject_hooks-${MODPY_EGG_VERSION}.dist-info/
lib/python${MODPY_VERSION}/site-packages/pyproject_hooks-${MODPY_EGG_VERSION}.dist-info/LICENSE
lib/python${MODPY_VERSION}/site-packages/pyproject_hooks-${MODPY_EGG_VERSION}.dist-info/METADATA
lib/python${MODPY_VERSION}/site-packages/pyproject_hooks-${MODPY_EGG_VERSION}.dist-info/RECORD
lib/python${MODPY_VERSION}/site-packages/pyproject_hooks-${MODPY_EGG_VERSION}.dist-info/WHEEL
lib/python${MODPY_VERSION}/site-packages/pyproject_hooks/__init__.py
${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/pyproject_hooks/${MODPY_PYCACHE}/
lib/python${MODPY_VERSION}/site-packages/pyproject_hooks/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
lib/python${MODPY_VERSION}/site-packages/pyproject_hooks/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/pyproject_hooks/${MODPY_PYCACHE}_compat.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
lib/python${MODPY_VERSION}/site-packages/pyproject_hooks/${MODPY_PYCACHE}_compat.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/pyproject_hooks/${MODPY_PYCACHE}_impl.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
lib/python${MODPY_VERSION}/site-packages/pyproject_hooks/${MODPY_PYCACHE}_impl.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/pyproject_hooks/_compat.py
lib/python${MODPY_VERSION}/site-packages/pyproject_hooks/_impl.py
lib/python${MODPY_VERSION}/site-packages/pyproject_hooks/_in_process/
lib/python${MODPY_VERSION}/site-packages/pyproject_hooks/_in_process/__init__.py
${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/pyproject_hooks/_in_process/${MODPY_PYCACHE}/
lib/python${MODPY_VERSION}/site-packages/pyproject_hooks/_in_process/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
lib/python${MODPY_VERSION}/site-packages/pyproject_hooks/_in_process/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/pyproject_hooks/_in_process/${MODPY_PYCACHE}_in_process.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
lib/python${MODPY_VERSION}/site-packages/pyproject_hooks/_in_process/${MODPY_PYCACHE}_in_process.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/pyproject_hooks/_in_process/_in_process.py