git: ea7d2cf832cc - main - devel/py-coherent.deps: Add py-coherent.deps 1.7.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 29 Sep 2026 19:27:15 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=ea7d2cf832ccf274ebb2a46b6684047d20cc2e65
commit ea7d2cf832ccf274ebb2a46b6684047d20cc2e65
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2026-09-29 18:54:50 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2026-09-29 19:17:24 +0000
devel/py-coherent.deps: Add py-coherent.deps 1.7.0
Coherent deps (dependencies) provides insights into the dependencies used by a
code base, resolving imports to the dependencies that supply those imports. The
Coherent OSS community presents this library to make the functionality available
for a variety of uses.
The Coherent System implements automatic dependency inference using
coherent.deps, allowing Python projects to avoid the need to declare
dependencies and to instead focus on the implementation.
pip-run leverages this library to enable on-demand installation of dependencies
required by scripts, as implied by their imports.
---
devel/Makefile | 1 +
devel/py-coherent.deps/Makefile | 59 +++++++++++++++++++++++
devel/py-coherent.deps/distinfo | 3 ++
devel/py-coherent.deps/files/patch-pyproject.toml | 9 ++++
devel/py-coherent.deps/pkg-descr | 11 +++++
5 files changed, 83 insertions(+)
diff --git a/devel/Makefile b/devel/Makefile
index 641869da727b..c4d0b10a0070 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4855,6 +4855,7 @@
SUBDIR += py-cobble
SUBDIR += py-codegen
SUBDIR += py-cogapp
+ SUBDIR += py-coherent.deps
SUBDIR += py-coherent.licensed
SUBDIR += py-collections-extended
SUBDIR += py-colorama
diff --git a/devel/py-coherent.deps/Makefile b/devel/py-coherent.deps/Makefile
new file mode 100644
index 000000000000..35ce68b47bd7
--- /dev/null
+++ b/devel/py-coherent.deps/Makefile
@@ -0,0 +1,59 @@
+PORTNAME= coherent.deps
+PORTVERSION= 1.7.0
+CATEGORIES= devel python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= coherent_deps-${PORTVERSION}
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Utilities for resolving imports to dependencies
+WWW= https://github.com/coherent-oss/coherent.deps
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flit-core>=3.11<5:devel/py-flit-core@${PY_FLAVOR}
+xRUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}jaraco.collections>=0:devel/py-jaraco.collections@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}jaraco.compat>=4.4:devel/py-jaraco.compat@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}jaraco.context>=0:devel/py-jaraco.context@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}jaraco.functools>=0:devel/py-jaraco.functools@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}jaraco.mongodb>=0:devel/py-jaraco.mongodb@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}jaraco.ui>=0:devel/py-jaraco.ui@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}keyring>=0,1:security/py-keyring@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}more-itertools>=0:devel/py-more-itertools@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}requests-file>=0:www/py-requests-file@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}requests-toolbelt>=0:www/py-requests-toolbelt@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}retry-requests>=0:www/py-retry-requests@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}tempora>=0:devel/py-tempora@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}tqdm>=0:misc/py-tqdm@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}typer>=0:devel/py-typer@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}zipp>=0:devel/py-zipp@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= autoplist concurrent pep517
+
+NO_ARCH= yes
+PEP517_INSTALL_CMD?= ${PYTHON_CMD} -m installer --destdir ${STAGEDIR} --prefix ${PREFIX} ${BUILD_WRKSRC}/dist/${PORTNAME:C|[-_.]+|_|g}-${PORTVERSION}*.whl
+
+do-install:
+ @${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+ @cd ${INSTALL_WRKSRC} && ${SETENVI} ${WRK_ENV} ${MAKE_ENV} ${PEP517_INSTALL_CMD}
+ @${PYTHON_CMD} -B ${PORTSDIR}/Mk/Scripts/strip_RECORD.py \
+ ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/${PORTNAME:C|[-_.]+|_|g}-${PORTVERSION}*.dist-info/RECORD >> ${_PYTHONPKGLIST}
+ @${REINPLACE_CMD} \
+ -e '/\.pyc$$/d' \
+ -e 's|^|${PYTHONPREFIX_SITELIBDIR}/|' \
+ -e 's|^${PYTHONPREFIX_SITELIBDIR}/../../../etc/|etc/|' \
+ -e 's|^${PYTHONPREFIX_SITELIBDIR}/../../../bin/|bin/|' \
+ -e 's|^${PYTHONPREFIX_SITELIBDIR}/../../../include/|include/|' \
+ -e 's|^${PYTHONPREFIX_SITELIBDIR}/../../../lib/|lib/|' \
+ -e 's|^${PYTHONPREFIX_SITELIBDIR}/../../../libdata/|libdata/|' \
+ -e 's|^${PYTHONPREFIX_SITELIBDIR}/../../../libexec/|libexec/|' \
+ -e 's|^${PYTHONPREFIX_SITELIBDIR}/../../../man/|man/|' \
+ -e 's|^${PYTHONPREFIX_SITELIBDIR}/../../../sbin/|sbin/|' \
+ -e 's|^${PYTHONPREFIX_SITELIBDIR}/../../../share/|share/|' \
+ ${_PYTHONPKGLIST}
+ @cd ${STAGEDIR}${PREFIX} && ${FIND} lib -name '*.pyc' >> ${_PYTHONPKGLIST}
+
+.include <bsd.port.mk>
diff --git a/devel/py-coherent.deps/distinfo b/devel/py-coherent.deps/distinfo
new file mode 100644
index 000000000000..2c14f9a3a342
--- /dev/null
+++ b/devel/py-coherent.deps/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1790435606
+SHA256 (coherent_deps-1.7.0.tar.gz) = 64f1968e2e3859ea23dc397362a0547be96a655dbb92434b522026e5d9e18720
+SIZE (coherent_deps-1.7.0.tar.gz) = 15195
diff --git a/devel/py-coherent.deps/files/patch-pyproject.toml b/devel/py-coherent.deps/files/patch-pyproject.toml
new file mode 100644
index 000000000000..d572fa1fc4c3
--- /dev/null
+++ b/devel/py-coherent.deps/files/patch-pyproject.toml
@@ -0,0 +1,9 @@
+--- pyproject.toml.orig 2026-09-07 22:22:05 UTC
++++ pyproject.toml
+@@ -1,5 +1,5 @@
+ [build-system]
+-requires = ["flit-core >=3.11, <4"]
++requires = ["flit-core >=3.11, <5"]
+ build-backend = "flit_core.buildapi"
+
+ [project]
diff --git a/devel/py-coherent.deps/pkg-descr b/devel/py-coherent.deps/pkg-descr
new file mode 100644
index 000000000000..68d07de06a29
--- /dev/null
+++ b/devel/py-coherent.deps/pkg-descr
@@ -0,0 +1,11 @@
+Coherent deps (dependencies) provides insights into the dependencies used by a
+code base, resolving imports to the dependencies that supply those imports. The
+Coherent OSS community presents this library to make the functionality available
+for a variety of uses.
+
+The Coherent System implements automatic dependency inference using
+coherent.deps, allowing Python projects to avoid the need to declare
+dependencies and to instead focus on the implementation.
+
+pip-run leverages this library to enable on-demand installation of dependencies
+required by scripts, as implied by their imports.