git: f4a9b408dd8c - main - devel/py-pyproject-api: new port to interact with the python pyproject.toml

From: Thierry Thomas <thierry_at_FreeBSD.org>
Date: Sat, 16 Dec 2023 18:43:05 UTC
The branch main has been updated by thierry:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f4a9b408dd8c0d5b94d626e31d2519769de849da

commit f4a9b408dd8c0d5b94d626e31d2519769de849da
Author:     Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2023-12-16 18:40:27 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2023-12-16 18:40:27 +0000

    devel/py-pyproject-api: new port to interact with the python pyproject.toml
    
    API to interact with the python pyproject.toml based projects.
    See <https://pypi.org/project/pyproject-api/>.
---
 devel/Makefile                   |  1 +
 devel/py-pyproject-api/Makefile  | 29 +++++++++++++++++++++++++++++
 devel/py-pyproject-api/distinfo  |  3 +++
 devel/py-pyproject-api/pkg-descr |  4 ++++
 devel/py-pyproject-api/pkg-plist | 27 +++++++++++++++++++++++++++
 5 files changed, 64 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 7ab696338af6..41aab2b274b6 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5342,6 +5342,7 @@
     SUBDIR += py-pyperclip
     SUBDIR += py-pyperf
     SUBDIR += py-pyplusplus
+    SUBDIR += py-pyproject-api
     SUBDIR += py-pyproject-flake8
     SUBDIR += py-pyproject-fmt
     SUBDIR += py-pyproject-metadata
diff --git a/devel/py-pyproject-api/Makefile b/devel/py-pyproject-api/Makefile
new file mode 100644
index 000000000000..86aca94d5292
--- /dev/null
+++ b/devel/py-pyproject-api/Makefile
@@ -0,0 +1,29 @@
+PORTNAME=	pyproject_api
+DISTVERSION=	1.6.1
+CATEGORIES=	devel python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	thierry@FreeBSD.org
+COMMENT=	API to interact with the python pyproject.toml based projects
+WWW=		https://pyproject-api.readthedocs.io/
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hatchling>=0:devel/py-hatchling@${PY_FLAVOR}	\
+		${PYTHON_PKGNAMEPREFIX}hatch-vcs>=0:devel/py-hatch-vcs@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}packaging>=0:devel/py-packaging@${PY_FLAVOR}	\
+		${PYTHON_PKGNAMEPREFIX}tomli>=0:textproc/py-tomli@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}covdefaults>=0:devel/py-covdefaults@${PY_FLAVOR}	\
+		${PYTHON_PKGNAMEPREFIX}pytest-cov>=0:devel/py-pytest-cov@${PY_FLAVOR}	\
+		${PYTHON_PKGNAMEPREFIX}pytest-mock>=0:devel/py-pytest-mock@${PY_FLAVOR}	\
+		${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR}	\
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	pep517 pytest
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-pyproject-api/distinfo b/devel/py-pyproject-api/distinfo
new file mode 100644
index 000000000000..74cb2a13a180
--- /dev/null
+++ b/devel/py-pyproject-api/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1702043902
+SHA256 (pyproject_api-1.6.1.tar.gz) = 1817dc018adc0d1ff9ca1ed8c60e1623d5aaca40814b953af14a9cf9a5cae538
+SIZE (pyproject_api-1.6.1.tar.gz) = 22507
diff --git a/devel/py-pyproject-api/pkg-descr b/devel/py-pyproject-api/pkg-descr
new file mode 100644
index 000000000000..db8fad5cce23
--- /dev/null
+++ b/devel/py-pyproject-api/pkg-descr
@@ -0,0 +1,4 @@
+pyproject-api aims to abstract away interaction with pyproject.toml style
+projects in a flexible way.
+
+See also <https://github.com/tox-dev/pyproject-api>.
diff --git a/devel/py-pyproject-api/pkg-plist b/devel/py-pyproject-api/pkg-plist
new file mode 100644
index 000000000000..a6d63b874578
--- /dev/null
+++ b/devel/py-pyproject-api/pkg-plist
@@ -0,0 +1,27 @@
+%%PYTHON_SITELIBDIR%%/pyproject_api-1.6.1.dist-info/METADATA
+%%PYTHON_SITELIBDIR%%/pyproject_api-1.6.1.dist-info/RECORD
+%%PYTHON_SITELIBDIR%%/pyproject_api-1.6.1.dist-info/WHEEL
+%%PYTHON_SITELIBDIR%%/pyproject_api-1.6.1.dist-info/licenses/LICENSE
+%%PYTHON_SITELIBDIR%%/pyproject_api/__init__.py
+%%PYTHON_SITELIBDIR%%/pyproject_api/__main__.py
+%%PYTHON_SITELIBDIR%%/pyproject_api/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/pyproject_api/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/pyproject_api/__pycache__/__main__.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/pyproject_api/__pycache__/__main__.cpython-%%PYTHON_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/pyproject_api/__pycache__/_backend.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/pyproject_api/__pycache__/_backend.cpython-%%PYTHON_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/pyproject_api/__pycache__/_frontend.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/pyproject_api/__pycache__/_frontend.cpython-%%PYTHON_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/pyproject_api/__pycache__/_util.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/pyproject_api/__pycache__/_util.cpython-%%PYTHON_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/pyproject_api/__pycache__/_version.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/pyproject_api/__pycache__/_version.cpython-%%PYTHON_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/pyproject_api/__pycache__/_via_fresh_subprocess.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/pyproject_api/__pycache__/_via_fresh_subprocess.cpython-%%PYTHON_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/pyproject_api/_backend.py
+%%PYTHON_SITELIBDIR%%/pyproject_api/_backend.pyi
+%%PYTHON_SITELIBDIR%%/pyproject_api/_frontend.py
+%%PYTHON_SITELIBDIR%%/pyproject_api/_util.py
+%%PYTHON_SITELIBDIR%%/pyproject_api/_version.py
+%%PYTHON_SITELIBDIR%%/pyproject_api/_via_fresh_subprocess.py
+%%PYTHON_SITELIBDIR%%/pyproject_api/py.typed