pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

py-jsonpatch: Add tools, test target, COMMIT_MSG



Module Name:	pkgsrc-wip
Committed By:	Malte Dehling <mdehling%gmail.com@localhost>
Pushed By:	mdehling
Date:		Wed May 22 11:21:39 2024 -0700
Changeset:	8c77d217f0d4028dfb810fff8e0a7dbd0f2e347f

Modified Files:
	py-jsonpatch/Makefile
Added Files:
	py-jsonpatch/COMMIT_MSG

Log Message:
py-jsonpatch: Add tools, test target, COMMIT_MSG

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=8c77d217f0d4028dfb810fff8e0a7dbd0f2e347f

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 py-jsonpatch/COMMIT_MSG | 3 +++
 py-jsonpatch/Makefile   | 6 ++++++
 2 files changed, 9 insertions(+)

diffs:
diff --git a/py-jsonpatch/COMMIT_MSG b/py-jsonpatch/COMMIT_MSG
new file mode 100644
index 0000000000..133d5968d1
--- /dev/null
+++ b/py-jsonpatch/COMMIT_MSG
@@ -0,0 +1,3 @@
+devel/py-jsonpatch: Add v1.33
+
+Library to apply JSON Patches according to RFC 6902.
diff --git a/py-jsonpatch/Makefile b/py-jsonpatch/Makefile
index eae89e80dd..a4d96f6497 100644
--- a/py-jsonpatch/Makefile
+++ b/py-jsonpatch/Makefile
@@ -11,9 +11,12 @@ COMMENT=	Apply JSON Patches according to RFC 6902
 LICENSE=	modified-bsd
 
 USE_LANGUAGES=	# none
+USE_PYTEST=	no
 
 PYTHON_VERSIONS_INCOMPATIBLE=	27
 
+TOOL_DEPENDS+=	${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
+TOOL_DEPENDS+=	${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
 DEPENDS+=	${PYPKGPREFIX}-jsonpointer>=1.9:../../wip/py-jsonpointer
 
 post-install:
@@ -21,5 +24,8 @@ post-install:
 		${MV} bin/jsondiff bin/jsondiff-${PYVERSSUFFIX} &&	\
 		${MV} bin/jsonpatch bin/jsonpatch-${PYVERSSUFFIX}
 
+do-test:
+	cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHONBIN} -m unittest
+
 .include "../../lang/python/wheel.mk"
 .include "../../mk/bsd.pkg.mk"


Home | Main Index | Thread Index | Old Index