Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 03 Jun 2026 08:02:58 +0000
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: e9f6e3ae831b - main - textproc/py-json-repair: update 0.5=?utf-8?Q?0.1 =E2=86=92?= 0.59.10
Message-ID:  <6a1fdfb2.39606.6419908c@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by yuri:

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

commit e9f6e3ae831b7f50b1c99aef178a5acc795afb1d
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-06-03 06:19:54 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-06-03 08:02:54 +0000

    textproc/py-json-repair: update 0.50.1 → 0.59.10
---
 textproc/py-json-repair/Makefile                         |  5 ++---
 textproc/py-json-repair/distinfo                         |  6 +++---
 textproc/py-json-repair/files/patch-pyproject.toml       | 16 ++++++----------
 .../files/patch-tests_test__docs__app__schema.py         | 13 +++++++++++++
 textproc/py-json-repair/pkg-descr                        |  7 +++++++
 5 files changed, 31 insertions(+), 16 deletions(-)

diff --git a/textproc/py-json-repair/Makefile b/textproc/py-json-repair/Makefile
index 8a3e023f6f29..1a5b24be390f 100644
--- a/textproc/py-json-repair/Makefile
+++ b/textproc/py-json-repair/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	json-repair
 DISTVERSIONPREFIX=	v
-DISTVERSION=	0.50.1
+DISTVERSION=	0.59.10
 CATEGORIES=	textproc python
 #MASTER_SITES=	PYPI # missing file for tests
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -26,7 +26,6 @@ GH_PROJECT=	${PORTNAME:S/-/_/}
 
 NO_ARCH=	yes
 
-# tests as of 0.50.0: 3 failed, 94 passed, 4 errors in 7.12s, see https://github.com/mangiucugna/json_repair/issues/147
-# tests as of 0.50.1: 8 failed, 24 passed in 18.04s
+# tests as of 0.59.10: 265 passed
 
 .include <bsd.port.mk>
diff --git a/textproc/py-json-repair/distinfo b/textproc/py-json-repair/distinfo
index 22210478ad38..0a2426e5f0e1 100644
--- a/textproc/py-json-repair/distinfo
+++ b/textproc/py-json-repair/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1757284136
-SHA256 (mangiucugna-json_repair-v0.50.1_GH0.tar.gz) = 0b6eb0d5d26c5f817938912684843150efa85c38896fdbc2edfe9c7f11752829
-SIZE (mangiucugna-json_repair-v0.50.1_GH0.tar.gz) = 2513812
+TIMESTAMP = 1780446482
+SHA256 (mangiucugna-json_repair-v0.59.10_GH0.tar.gz) = 008dd8f337bbe8f8d31e5b3e434416de87be541e6ed996fe1f5d8c3dc9cf5cb0
+SIZE (mangiucugna-json_repair-v0.59.10_GH0.tar.gz) = 2550250
diff --git a/textproc/py-json-repair/files/patch-pyproject.toml b/textproc/py-json-repair/files/patch-pyproject.toml
index f6e5bac5c774..a96407e93b96 100644
--- a/textproc/py-json-repair/files/patch-pyproject.toml
+++ b/textproc/py-json-repair/files/patch-pyproject.toml
@@ -1,18 +1,14 @@
---- pyproject.toml.orig	2025-09-07 22:29:05 UTC
+--  Remove license fields from pyproject.toml as they are currently in an invalid format
+--  for newer setuptools, which causes the build to fail.
+
+--- pyproject.toml.orig	2026-06-03 00:32:08 UTC
 +++ pyproject.toml
-@@ -4,8 +4,6 @@ version = "0.50.1"
+@@ -4,8 +4,6 @@ version = "0.59.10"
  [project]
  name = "json_repair"
- version = "0.50.1"
+ version = "0.59.10"
 -license = "MIT"
 -license-files = ["LICENSE"]
  authors = [
    { name="Stefano Baccianella", email="4247706+mangiucugna@users.noreply.github.com" },
  ]
-@@ -111,4 +109,4 @@ line-ending = "auto"
- 
- [tool.ruff.lint.per-file-ignores]
- # Explicit re-exports is fine in __init__.py, still a code smell elsewhere.
--"__init__.py" = ["PLC0414"]
-\ No newline at end of file
-+"__init__.py" = ["PLC0414"]
diff --git a/textproc/py-json-repair/files/patch-tests_test__docs__app__schema.py b/textproc/py-json-repair/files/patch-tests_test__docs__app__schema.py
new file mode 100644
index 000000000000..bd6ef2e313c0
--- /dev/null
+++ b/textproc/py-json-repair/files/patch-tests_test__docs__app__schema.py
@@ -0,0 +1,13 @@
+--  Skip tests that require flask_cors if it is not installed.
+--  The docs demo app requires flask_cors which is not a mandatory dependency.
+
+--- tests/test_docs_app_schema.py.orig	2026-06-03 00:36:06 UTC
++++ tests/test_docs_app_schema.py
+@@ -1,6 +1,7 @@ pytest.importorskip("flask")
+ import pytest
+ 
+ pytest.importorskip("flask")
++pytest.importorskip("flask_cors")
+ 
+ from docs.app import app
+ 
diff --git a/textproc/py-json-repair/pkg-descr b/textproc/py-json-repair/pkg-descr
index 969888f55d45..bf869ced1751 100644
--- a/textproc/py-json-repair/pkg-descr
+++ b/textproc/py-json-repair/pkg-descr
@@ -1 +1,8 @@
 json-repair is a simple package that can be used to fix an invalid json string.
+It can repair malformed JSON from LLMs, APIs, logs, and user input.
+
+Features:
+- Fix missing quotes, commas, brackets, comments, stray prose, and truncated
+  values.
+- Use it as a drop-in fallback for json.loads() or as a schema-guided repair
+  step.


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a1fdfb2.39606.6419908c>