git: cbab6614c1e2 - main - devel/py-condense-json: new port - condenses using replacement strings
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 10 Jun 2025 21:53:28 UTC
The branch main has been updated by dch:
URL: https://cgit.FreeBSD.org/ports/commit/?id=cbab6614c1e236b17b9193781478ddf1e5204865
commit cbab6614c1e236b17b9193781478ddf1e5204865
Author: Dave Cottlehuber <dch@FreeBSD.org>
AuthorDate: 2025-06-10 21:51:21 +0000
Commit: Dave Cottlehuber <dch@FreeBSD.org>
CommitDate: 2025-06-10 21:51:21 +0000
devel/py-condense-json: new port - condenses using replacement strings
Sponsored by: SkunkWerks, GmbH
---
devel/Makefile | 1 +
devel/py-condense-json/Makefile | 23 +++++++++++++++++++++++
devel/py-condense-json/distinfo | 3 +++
devel/py-condense-json/files/patch-pyproject.toml | 20 ++++++++++++++++++++
devel/py-condense-json/pkg-descr | 7 +++++++
5 files changed, 54 insertions(+)
diff --git a/devel/Makefile b/devel/Makefile
index 9369a5320b41..31d3fba259e4 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4703,6 +4703,7 @@
SUBDIR += py-comm
SUBDIR += py-commandlines
SUBDIR += py-commentjson
+ SUBDIR += py-condense-json
SUBDIR += py-conditional
SUBDIR += py-confection
SUBDIR += py-configargparse
diff --git a/devel/py-condense-json/Makefile b/devel/py-condense-json/Makefile
new file mode 100644
index 000000000000..42cabbbd15b5
--- /dev/null
+++ b/devel/py-condense-json/Makefile
@@ -0,0 +1,23 @@
+PORTNAME= condense-json
+DISTVERSION= 0.1.3
+CATEGORIES= devel python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= condense_json-${DISTVERSION}
+
+MAINTAINER= dch@FreeBSD.org
+COMMENT= Python function for condensing JSON using replacement strings
+WWW= https://github.com/simonw/condense-json
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+
+USES= python shebangfix
+USE_PYTHON= autoplist concurrent pep517
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-condense-json/distinfo b/devel/py-condense-json/distinfo
new file mode 100644
index 000000000000..7e217ea27435
--- /dev/null
+++ b/devel/py-condense-json/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1749504814
+SHA256 (condense_json-0.1.3.tar.gz) = 25fe8d434fdafd849e8d98f21a3e18f96ae2d6dbc2c17565f29e4843d039d2bc
+SIZE (condense_json-0.1.3.tar.gz) = 8697
diff --git a/devel/py-condense-json/files/patch-pyproject.toml b/devel/py-condense-json/files/patch-pyproject.toml
new file mode 100644
index 000000000000..1c07aa6b37ed
--- /dev/null
+++ b/devel/py-condense-json/files/patch-pyproject.toml
@@ -0,0 +1,20 @@
+--- pyproject.toml.orig 2025-06-10 15:09:59 UTC
++++ pyproject.toml
+@@ -5,14 +5,15 @@ authors = [{name = "Simon Willison"}]
+ readme = "README.md"
+ requires-python = ">=3.9"
+ authors = [{name = "Simon Willison"}]
+-license = "Apache-2.0"
++license = { text = "Apache-2.0" }
++
+ classifiers = [
+ "Typing :: Typed"
+ ]
+ dependencies = []
+
+ [build-system]
+-requires = ["setuptools"]
++requires = ["setuptools>=61"]
+ build-backend = "setuptools.build_meta"
+
+ [project.urls]
diff --git a/devel/py-condense-json/pkg-descr b/devel/py-condense-json/pkg-descr
new file mode 100644
index 000000000000..50abe886a8a5
--- /dev/null
+++ b/devel/py-condense-json/pkg-descr
@@ -0,0 +1,7 @@
+condense-json is a Python library that provides functionality for condensing
+JSON data using replacement strings. It helps reduce the size of JSON output
+by replacing repeated patterns with shorter representations.
+
+This is useful for generating more compact JSON output while maintaining
+the ability to expand it back to its original form when needed, for example
+when interacting with large language models.