head	1.2;
access;
symbols;
locks; strict;
comment	@# @;


1.2
date	2026.10.13.11.30.53;	author adam;	state Exp;
branches;
next	1.1;
commitid	gVetgPScdZB9cjZG;

1.1
date	2026.09.22.17.33.35;	author ryoon;	state Exp;
branches;
next	;
commitid	oGHLPMUhas2ySDWG;


desc
@@


1.2
log
@py-jsonpatch: updated to 1.35

1.35

Refactor JsonPatch class and improve documentation
Add pytest configuration for non-standard test file naming
Document JSON Pointer escaping for special characters
Improve list diffing to avoid unnecessary item replacements
Use correct SPDX-Identifer
Improve coverage reporting by combining test runs
ci: run tests on every PR and pushes to master
Add support for Python 3.13 and 3.14
Improve list diffing with sequence alignment to avoid cascading changes
Handle self-containing values in make_patch and add 180 regression tests
Only reject '-' in replace when it refers to an array
Reject moving any location into its own children, fixes 214
Compare values in 'test' by JSON equality
Hash patch operations by their 'op' and 'path'
Require jsonpointer>=3.2
Raise documented exceptions for malformed patches and "from": "/-"
Support whole document operations on scalar documents
Housekeeping: stale links, packaging cleanup, CI action versions
Find moves in make_patch without rewriting all later operations
Close test coverage gaps
Remove unreachable code from make_patch and the jsonpointer < 3.2 shim
Test the index helpers of PatchOperation and MoveOperation
Upload coverage to Coveralls again
Close the original input before in-place replacement
Install the command line programs as console_scripts
@
text
@# $NetBSD: Makefile,v 1.1 2026/09/22 17:33:35 ryoon Exp $

DISTNAME=	jsonpatch-1.35
PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
CATEGORIES=	textproc python
MASTER_SITES=	${MASTER_SITE_PYPI:=j/jsonpatch/}

MAINTAINER=	ryoon@@NetBSD.org
HOMEPAGE=	https://github.com/stefankoegl/python-json-patch
COMMENT=	Library to apply JSON Patches according to RFC 6902
LICENSE=	modified-bsd

TOOL_DEPENDS+=	${PYPKGPREFIX}-setuptools>=78:../../devel/py-setuptools
DEPENDS+=	${PYPKGPREFIX}-jsonpointer>=3.2:../../textproc/py-jsonpointer

USE_LANGUAGES=	# none

PY_RENAME_BINARIES=	jsondiff jsonpatch

do-test:
	cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHONBIN} -m unittest

.include "../../lang/python/wheel.mk"
.include "../../mk/bsd.pkg.mk"
@


1.1
log
@textproc/py-jsonpatch: import py314-jsonpatch-1.33

Library to apply JSON Patches according to RFC 6902
@
text
@d1 1
a1 1
# $NetBSD$
d3 1
a3 1
DISTNAME=	jsonpatch-1.33
d13 2
a14 2
TOOL_DEPENDS+=	${PYPKGPREFIX}-setuptools>=70.1:../../devel/py-setuptools
DEPENDS+=	${PYPKGPREFIX}-jsonpointer>=1.9:../../textproc/py-jsonpointer
d18 1
a18 5
post-install:
.for bin in jsondiff jsonpatch
	cd ${DESTDIR}${PREFIX}/bin && \
	${MV} ${bin} ${bin}-${PYVERSSUFFIX} || ${TRUE}
.endfor
d21 1
a21 2
	cd ${WRKSRC} && \
	${SETENV} ${TEST_ENV} ${PYTHONBIN} -m unittest
@

