pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/py-testfixtures



Module Name:    pkgsrc
Committed By:   adam
Date:           Thu Jul  9 04:30:59 UTC 2026

Modified Files:
        pkgsrc/devel/py-testfixtures: Makefile PLIST distinfo

Log Message:
py-testfixtures: updated to 12.3.0

12.3.0 (8 Jul 2026)

- Added :doc:`pydantic <pydantic>` support: a :func:`comparer <testfixtures.pydantic.compare_basemodel>`
  for :class:`~pydantic.BaseModel` is automatically registered, and the ``testfixtures[pydantic]``
  extra installs a compatible version.

- Added :class:`ReprComparison` and :func:`repr_like` for asserting an object's type along with its
  :func:`repr`.

- Added :class:`StrComparison` and :func:`str_like` for asserting an object's type along with its
  :class:`str`.

- Added :func:`mapping`, the typed helper for :class:`MappingComparison`.

- :func:`like` now accepts a regular expression, as a string or a compiled :class:`re.Pattern`,
  returning a :class:`TextComparison` typed as a :class:`str`. :class:`TextComparison` can also
  now be built directly from a compiled :class:`re.Pattern`.

- :class:`ShouldRaise` now accepts :func:`repr_like` and :func:`str_like` matchers, so a raised
  exception's type and rendering can be checked without constructing the exception instance.

- Renamed :class:`!StringComparison` to :class:`TextComparison`. :class:`!StringComparison` remains
  as a deprecated alias.

- Fixed a bug where comparing two matcher instances directly, such as two :class:`SequenceComparison`
  objects, could produce a confusing diff instead of comparing them for equality.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 pkgsrc/devel/py-testfixtures/Makefile
cvs rdiff -u -r1.7 -r1.8 pkgsrc/devel/py-testfixtures/PLIST \
    pkgsrc/devel/py-testfixtures/distinfo

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

Modified files:

Index: pkgsrc/devel/py-testfixtures/Makefile
diff -u pkgsrc/devel/py-testfixtures/Makefile:1.9 pkgsrc/devel/py-testfixtures/Makefile:1.10
--- pkgsrc/devel/py-testfixtures/Makefile:1.9   Fri Jun 12 10:29:22 2026
+++ pkgsrc/devel/py-testfixtures/Makefile       Thu Jul  9 04:30:59 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.9 2026/06/12 10:29:22 adam Exp $
+# $NetBSD: Makefile,v 1.10 2026/07/09 04:30:59 adam Exp $
 
-DISTNAME=      testfixtures-12.0.1
+DISTNAME=      testfixtures-12.3.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=t/testfixtures/}
@@ -23,5 +23,10 @@ USE_LANGUAGES=       # none
 
 PYTHON_VERSIONS_INCOMPATIBLE=  310
 
+.include "../../lang/python/pyversion.mk"
+.if ${PYTHON_VERSION} < 313
+DEPENDS+=      ${PYPKGPREFIX}-typing-extensions>=4.12:../../devel/py-typing-extensions
+.endif
+
 .include "../../lang/python/wheel.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/devel/py-testfixtures/PLIST
diff -u pkgsrc/devel/py-testfixtures/PLIST:1.7 pkgsrc/devel/py-testfixtures/PLIST:1.8
--- pkgsrc/devel/py-testfixtures/PLIST:1.7      Mon May 25 08:11:32 2026
+++ pkgsrc/devel/py-testfixtures/PLIST  Thu Jul  9 04:30:59 2026
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.7 2026/05/25 08:11:32 adam Exp $
+@comment $NetBSD: PLIST,v 1.8 2026/07/09 04:30:59 adam Exp $
 ${PYSITELIB}/${WHEEL_INFODIR}/METADATA
 ${PYSITELIB}/${WHEEL_INFODIR}/RECORD
 ${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
@@ -6,9 +6,15 @@ ${PYSITELIB}/${WHEEL_INFODIR}/licenses/L
 ${PYSITELIB}/testfixtures/__init__.py
 ${PYSITELIB}/testfixtures/__init__.pyc
 ${PYSITELIB}/testfixtures/__init__.pyo
+${PYSITELIB}/testfixtures/command.py
+${PYSITELIB}/testfixtures/command.pyc
+${PYSITELIB}/testfixtures/command.pyo
 ${PYSITELIB}/testfixtures/comparers.py
 ${PYSITELIB}/testfixtures/comparers.pyc
 ${PYSITELIB}/testfixtures/comparers.pyo
+${PYSITELIB}/testfixtures/comparing.py
+${PYSITELIB}/testfixtures/comparing.pyc
+${PYSITELIB}/testfixtures/comparing.pyo
 ${PYSITELIB}/testfixtures/comparison.py
 ${PYSITELIB}/testfixtures/comparison.pyc
 ${PYSITELIB}/testfixtures/comparison.pyo
@@ -33,6 +39,9 @@ ${PYSITELIB}/testfixtures/loguru.pyo
 ${PYSITELIB}/testfixtures/mock.py
 ${PYSITELIB}/testfixtures/mock.pyc
 ${PYSITELIB}/testfixtures/mock.pyo
+${PYSITELIB}/testfixtures/numpy.py
+${PYSITELIB}/testfixtures/numpy.pyc
+${PYSITELIB}/testfixtures/numpy.pyo
 ${PYSITELIB}/testfixtures/outputcapture.py
 ${PYSITELIB}/testfixtures/outputcapture.pyc
 ${PYSITELIB}/testfixtures/outputcapture.pyo
@@ -46,6 +55,9 @@ ${PYSITELIB}/testfixtures/popen.py
 ${PYSITELIB}/testfixtures/popen.pyc
 ${PYSITELIB}/testfixtures/popen.pyo
 ${PYSITELIB}/testfixtures/py.typed
+${PYSITELIB}/testfixtures/pydantic.py
+${PYSITELIB}/testfixtures/pydantic.pyc
+${PYSITELIB}/testfixtures/pydantic.pyo
 ${PYSITELIB}/testfixtures/replace.py
 ${PYSITELIB}/testfixtures/replace.pyc
 ${PYSITELIB}/testfixtures/replace.pyo
Index: pkgsrc/devel/py-testfixtures/distinfo
diff -u pkgsrc/devel/py-testfixtures/distinfo:1.7 pkgsrc/devel/py-testfixtures/distinfo:1.8
--- pkgsrc/devel/py-testfixtures/distinfo:1.7   Fri Jun 12 10:29:22 2026
+++ pkgsrc/devel/py-testfixtures/distinfo       Thu Jul  9 04:30:59 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.7 2026/06/12 10:29:22 adam Exp $
+$NetBSD: distinfo,v 1.8 2026/07/09 04:30:59 adam Exp $
 
-BLAKE2s (testfixtures-12.0.1.tar.gz) = 5d21ebec2b9371248c3d325d900e10187276e4f661c34d466ab885094d1a2dfb
-SHA512 (testfixtures-12.0.1.tar.gz) = bf33a03f6a7c9ff0c28b7dcc631510a8e85d937ab477ec15a5c4040eb6ddac14566340349fb0cc025af35e6983f26e36b0383ed684ab817282a1f133c8abc566
-Size (testfixtures-12.0.1.tar.gz) = 177474 bytes
+BLAKE2s (testfixtures-12.3.0.tar.gz) = 4b34489ca7163343ff55222cf836658b8ea4867886dc3af33d00ffd87ea35acb
+SHA512 (testfixtures-12.3.0.tar.gz) = a774513a178bb54ec091d0290ddcd5ba4af61ee3f8a47c52298907e0fafa6e1c9a64404e3d0c1d3ac119117c59cd43e87bd76a116ba1bb378fd304d0e2c444f0
+Size (testfixtures-12.3.0.tar.gz) = 201458 bytes



Home | Main Index | Thread Index | Old Index