git: 4dc064d4dfde - main - devel/py-pyproject_hooks: Add py-pyproject_hooks 1.0.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 30 Jan 2023 13:04:41 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=4dc064d4dfde8350bfaa75ae825fbbd533be2460 commit 4dc064d4dfde8350bfaa75ae825fbbd533be2460 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2023-01-30 12:21:01 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2023-01-30 12:58:47 +0000 devel/py-pyproject_hooks: Add py-pyproject_hooks 1.0.0 pyproject-hooks 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, you'll want to use devel/py-build instead. This is an underlying piece for pip, build and other "build frontends" use to call "build backends" within them. --- devel/Makefile | 1 + devel/py-pyproject_hooks/Makefile | 28 ++++++++++++++++++++++++++++ devel/py-pyproject_hooks/distinfo | 3 +++ devel/py-pyproject_hooks/files/setup.py | 29 +++++++++++++++++++++++++++++ devel/py-pyproject_hooks/pkg-descr | 7 +++++++ 5 files changed, 68 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index fd49b0f5960c..07ceb17c34f0 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5154,6 +5154,7 @@ SUBDIR += py-pyplusplus SUBDIR += py-pyproject-fmt SUBDIR += py-pyproject-metadata + SUBDIR += py-pyproject_hooks SUBDIR += py-pypugjs SUBDIR += py-pyqtree SUBDIR += py-pyquery diff --git a/devel/py-pyproject_hooks/Makefile b/devel/py-pyproject_hooks/Makefile new file mode 100644 index 000000000000..aa48adc912ac --- /dev/null +++ b/devel/py-pyproject_hooks/Makefile @@ -0,0 +1,28 @@ +PORTNAME= pyproject_hooks +PORTVERSION= 1.0.0 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Wrappers to call pyproject.toml-based build backend hooks +WWW= https://github.com/pypa/pyproject-hooks + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= python:3.7+ +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +.include <bsd.port.pre.mk> + +.if ${PYTHON_REL} < 31100 +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}tomli>=1.1.0:textproc/py-tomli@${PY_FLAVOR} +.endif + +post-patch: + @${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py + +.include <bsd.port.post.mk> diff --git a/devel/py-pyproject_hooks/distinfo b/devel/py-pyproject_hooks/distinfo new file mode 100644 index 000000000000..89545ec2ffd0 --- /dev/null +++ b/devel/py-pyproject_hooks/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1674588052 +SHA256 (pyproject_hooks-1.0.0.tar.gz) = f271b298b97f5955d53fb12b72c1fb1948c22c1a6b70b315c54cedaca0264ef5 +SIZE (pyproject_hooks-1.0.0.tar.gz) = 16901 diff --git a/devel/py-pyproject_hooks/files/setup.py b/devel/py-pyproject_hooks/files/setup.py new file mode 100644 index 000000000000..bf69b647b92a --- /dev/null +++ b/devel/py-pyproject_hooks/files/setup.py @@ -0,0 +1,29 @@ +#!/usr/bin/env python +# setup.py generated by flit for tools that don't yet use PEP 517 + +from distutils.core import setup + +packages = \ +['pyproject_hooks', 'pyproject_hooks._in_process'] + +package_data = \ +{'': ['*']} + +package_dir = \ +{'': 'src'} + +extras_require = \ +{":python_version<'3.11'": ['tomli >=1.1.0 ']} + +setup(name='pyproject_hooks', + version='%%PORTVERSION%%', + description='Wrappers to call pyproject.toml-based build backend hooks.', + author=None, + author_email='Thomas Kluyver <thomas@kluyver.me.uk>', + url=None, + packages=packages, + package_data=package_data, + package_dir=package_dir, + extras_require=extras_require, + python_requires='>=3.7', + ) diff --git a/devel/py-pyproject_hooks/pkg-descr b/devel/py-pyproject_hooks/pkg-descr new file mode 100644 index 000000000000..b3d0478c907d --- /dev/null +++ b/devel/py-pyproject_hooks/pkg-descr @@ -0,0 +1,7 @@ +pyproject-hooks 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, you'll want to use +devel/py-build instead. This is an underlying piece for pip, build and other +"build frontends" use to call "build backends" within them.