pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/py-kgb



Module Name:    pkgsrc
Committed By:   wiz
Date:           Wed Apr 23 14:53:30 UTC 2025

Added Files:
        pkgsrc/devel/py-kgb: DESCR Makefile PLIST distinfo

Log Message:
devel/py-kgb: import py-kgb-7.2

Ever deal with a large test suite before, monkey patching functions
to figure out whether it was called as expected? It's a dirty job.
If you're not careful, you can make a mess of things. Leave behind
evidence.

kgb's spies will take care of that little problem for you.

What are spies?

Spies intercept and record calls to functions. They can report on
how many times a function was called and with what arguments. They
can allow the function call to go through as normal, to block it,
or to reroute it to another function.

Spies are like mocks, but better. You're not mocking the world.
You're replacing very specific function logic, or listening to
functions without altering them.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/py-kgb/DESCR pkgsrc/devel/py-kgb/Makefile \
    pkgsrc/devel/py-kgb/PLIST pkgsrc/devel/py-kgb/distinfo

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

Added files:

Index: pkgsrc/devel/py-kgb/DESCR
diff -u /dev/null pkgsrc/devel/py-kgb/DESCR:1.1
--- /dev/null   Wed Apr 23 14:53:30 2025
+++ pkgsrc/devel/py-kgb/DESCR   Wed Apr 23 14:53:30 2025
@@ -0,0 +1,17 @@
+Ever deal with a large test suite before, monkey patching functions
+to figure out whether it was called as expected? It's a dirty job.
+If you're not careful, you can make a mess of things. Leave behind
+evidence.
+
+kgb's spies will take care of that little problem for you.
+
+What are spies?
+
+Spies intercept and record calls to functions. They can report on
+how many times a function was called and with what arguments. They
+can allow the function call to go through as normal, to block it,
+or to reroute it to another function.
+
+Spies are like mocks, but better. You're not mocking the world.
+You're replacing very specific function logic, or listening to
+functions without altering them.
Index: pkgsrc/devel/py-kgb/Makefile
diff -u /dev/null pkgsrc/devel/py-kgb/Makefile:1.1
--- /dev/null   Wed Apr 23 14:53:30 2025
+++ pkgsrc/devel/py-kgb/Makefile        Wed Apr 23 14:53:30 2025
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1 2025/04/23 14:53:30 wiz Exp $
+
+DISTNAME=      kgb-7.2
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=    devel python
+MASTER_SITES=  ${MASTER_SITE_PYPI:=k/kgb/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/beanbaginc/kgb
+COMMENT=       Utilities for spying on function calls in unit tests
+LICENSE=       mit
+
+TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
+
+USE_LANGUAGES= # none
+
+# as of 7.2
+# 212 passed, 4 skipped, 1 error
+
+.include "../../lang/python/wheel.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/py-kgb/PLIST
diff -u /dev/null pkgsrc/devel/py-kgb/PLIST:1.1
--- /dev/null   Wed Apr 23 14:53:30 2025
+++ pkgsrc/devel/py-kgb/PLIST   Wed Apr 23 14:53:30 2025
@@ -0,0 +1,74 @@
+@comment $NetBSD: PLIST,v 1.1 2025/04/23 14:53:30 wiz Exp $
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
+${PYSITELIB}/${WHEEL_INFODIR}/licenses/AUTHORS
+${PYSITELIB}/${WHEEL_INFODIR}/licenses/LICENSE
+${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
+${PYSITELIB}/kgb/__init__.py
+${PYSITELIB}/kgb/__init__.pyc
+${PYSITELIB}/kgb/__init__.pyo
+${PYSITELIB}/kgb/agency.py
+${PYSITELIB}/kgb/agency.pyc
+${PYSITELIB}/kgb/agency.pyo
+${PYSITELIB}/kgb/asserts.py
+${PYSITELIB}/kgb/asserts.pyc
+${PYSITELIB}/kgb/asserts.pyo
+${PYSITELIB}/kgb/calls.py
+${PYSITELIB}/kgb/calls.pyc
+${PYSITELIB}/kgb/calls.pyo
+${PYSITELIB}/kgb/contextmanagers.py
+${PYSITELIB}/kgb/contextmanagers.pyc
+${PYSITELIB}/kgb/contextmanagers.pyo
+${PYSITELIB}/kgb/errors.py
+${PYSITELIB}/kgb/errors.pyc
+${PYSITELIB}/kgb/errors.pyo
+${PYSITELIB}/kgb/ops.py
+${PYSITELIB}/kgb/ops.pyc
+${PYSITELIB}/kgb/ops.pyo
+${PYSITELIB}/kgb/pycompat.py
+${PYSITELIB}/kgb/pycompat.pyc
+${PYSITELIB}/kgb/pycompat.pyo
+${PYSITELIB}/kgb/pytest_plugin.py
+${PYSITELIB}/kgb/pytest_plugin.pyc
+${PYSITELIB}/kgb/pytest_plugin.pyo
+${PYSITELIB}/kgb/signature.py
+${PYSITELIB}/kgb/signature.pyc
+${PYSITELIB}/kgb/signature.pyo
+${PYSITELIB}/kgb/spies.py
+${PYSITELIB}/kgb/spies.pyc
+${PYSITELIB}/kgb/spies.pyo
+${PYSITELIB}/kgb/tests/__init__.py
+${PYSITELIB}/kgb/tests/__init__.pyc
+${PYSITELIB}/kgb/tests/__init__.pyo
+${PYSITELIB}/kgb/tests/base.py
+${PYSITELIB}/kgb/tests/base.pyc
+${PYSITELIB}/kgb/tests/base.pyo
+${PYSITELIB}/kgb/tests/py3/__init__.py
+${PYSITELIB}/kgb/tests/py3/__init__.pyc
+${PYSITELIB}/kgb/tests/py3/__init__.pyo
+${PYSITELIB}/kgb/tests/py3/test_function_spy.py
+${PYSITELIB}/kgb/tests/py3/test_function_spy.pyc
+${PYSITELIB}/kgb/tests/py3/test_function_spy.pyo
+${PYSITELIB}/kgb/tests/test_context_managers.py
+${PYSITELIB}/kgb/tests/test_context_managers.pyc
+${PYSITELIB}/kgb/tests/test_context_managers.pyo
+${PYSITELIB}/kgb/tests/test_function_spy.py
+${PYSITELIB}/kgb/tests/test_function_spy.pyc
+${PYSITELIB}/kgb/tests/test_function_spy.pyo
+${PYSITELIB}/kgb/tests/test_ops.py
+${PYSITELIB}/kgb/tests/test_ops.pyc
+${PYSITELIB}/kgb/tests/test_ops.pyo
+${PYSITELIB}/kgb/tests/test_pytest_plugin.py
+${PYSITELIB}/kgb/tests/test_pytest_plugin.pyc
+${PYSITELIB}/kgb/tests/test_pytest_plugin.pyo
+${PYSITELIB}/kgb/tests/test_spy_agency.py
+${PYSITELIB}/kgb/tests/test_spy_agency.pyc
+${PYSITELIB}/kgb/tests/test_spy_agency.pyo
+${PYSITELIB}/kgb/tests/test_spy_call.py
+${PYSITELIB}/kgb/tests/test_spy_call.pyc
+${PYSITELIB}/kgb/tests/test_spy_call.pyo
+${PYSITELIB}/kgb/utils.py
+${PYSITELIB}/kgb/utils.pyc
+${PYSITELIB}/kgb/utils.pyo
Index: pkgsrc/devel/py-kgb/distinfo
diff -u /dev/null pkgsrc/devel/py-kgb/distinfo:1.1
--- /dev/null   Wed Apr 23 14:53:30 2025
+++ pkgsrc/devel/py-kgb/distinfo        Wed Apr 23 14:53:30 2025
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2025/04/23 14:53:30 wiz Exp $
+
+BLAKE2s (kgb-7.2.tar.gz) = 9712003306549849023bba7055e7669bec1a9522a7ffe1e6ca250dd4f9c3a992
+SHA512 (kgb-7.2.tar.gz) = 2311a524d4e5266399fddbf8c12644dd6d265b4a0538cd820421a7fb4f8d291f662209b6642daf3777bfca16b8eb976ead12e063dad1242f897619070e5cfd27
+Size (kgb-7.2.tar.gz) = 61228 bytes



Home | Main Index | Thread Index | Old Index