pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/py-mock



Module Name:    pkgsrc
Committed By:   adam
Date:           Wed Mar  5 15:02:53 UTC 2025

Modified Files:
        pkgsrc/devel/py-mock: Makefile distinfo

Log Message:
py-mock: updated to 5.2.0

5.2.0

This is release is `in memory of Michael Foord`__, who originally authored the `mock` package
and passed away in January 2025.

__ https://discuss.python.org/t/in-memoriam-michael-foord-1974-2025/78317

- gh-65454: :func:`unittest.mock.Mock.attach_mock` no longer triggers a call
  to a ``PropertyMock`` being attached.

- gh-117765: Improved documentation for :func:`unittest.mock.patch.dict`

- gh-124176: Add support for :func:`dataclasses.dataclass` in
  :func:`unittest.mock.create_autospec`. Now ``create_autospec`` will check
  for potential dataclasses and use :func:`dataclasses.fields` function to
  retrieve the spec information.

- gh-123934: Fix :class:`unittest.mock.MagicMock` reseting magic methods
  return values after ``.reset_mock(return_value=True)`` was called.

- gh-90848: Fixed :func:`unittest.mock.create_autospec` to configure parent
  mock with keyword arguments.

- gh-113569: Indicate if there were no actual calls in unittest
  :meth:`~unittest.mock.Mock.assert_has_calls` failure.

- gh-122858: Deprecate :func:`!asyncio.iscoroutinefunction` in favor of
  :func:`inspect.iscoroutinefunction`.

- gh-104745: Limit starting a patcher (from :func:`unittest.mock.patch` or
  :func:`unittest.mock.patch.object`) more than once without stopping it

- gh-75988: Fixed :func:`unittest.mock.create_autospec` to pass the call
  through to the wrapped object to return the real result.

- gh-119600: Fix :func:`unittest.mock.patch` to not read attributes of the
  target when ``new_callable`` is set. Patch by Robert Collins.

- gh-113407: Fix import of :mod:`unittest.mock` when CPython is built
  without docstrings.

- gh-120732: Fix ``name`` passing to :class:`unittest.mock.Mock` object when
  using :func:`unittest.mock.create_autospec`.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 pkgsrc/devel/py-mock/Makefile
cvs rdiff -u -r1.13 -r1.14 pkgsrc/devel/py-mock/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-mock/Makefile
diff -u pkgsrc/devel/py-mock/Makefile:1.23 pkgsrc/devel/py-mock/Makefile:1.24
--- pkgsrc/devel/py-mock/Makefile:1.23  Mon Nov 11 07:28:16 2024
+++ pkgsrc/devel/py-mock/Makefile       Wed Mar  5 15:02:53 2025
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.23 2024/11/11 07:28:16 wiz Exp $
+# $NetBSD: Makefile,v 1.24 2025/03/05 15:02:53 adam Exp $
 
-DISTNAME=      mock-5.1.0
+DISTNAME=      mock-5.2.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=m/mock/}

Index: pkgsrc/devel/py-mock/distinfo
diff -u pkgsrc/devel/py-mock/distinfo:1.13 pkgsrc/devel/py-mock/distinfo:1.14
--- pkgsrc/devel/py-mock/distinfo:1.13  Wed Sep 18 08:05:08 2024
+++ pkgsrc/devel/py-mock/distinfo       Wed Mar  5 15:02:53 2025
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.13 2024/09/18 08:05:08 adam Exp $
+$NetBSD: distinfo,v 1.14 2025/03/05 15:02:53 adam Exp $
 
-BLAKE2s (mock-5.1.0.tar.gz) = fb80b28be783f86d1f0455c60f99d2230b5f6713f7d06d3f03065f8e022d7d03
-SHA512 (mock-5.1.0.tar.gz) = 26b7350fddf2eca82b6dfaafc58cacbd4031fd787b1afc463ee13eff778846941120fd89755e4783bfad389f01cfbdd64f2feab5a12ac2bd4ca6407c0f2e973c
-Size (mock-5.1.0.tar.gz) = 80232 bytes
+BLAKE2s (mock-5.2.0.tar.gz) = 035894881ce586557621b602362d1c504824bb8a0cf60af08555a19c79d57383
+SHA512 (mock-5.2.0.tar.gz) = edf856486e5f8889d676be1eb2c60cd791f4f25057b6b94b54555904133371b3753709b2ab37d032dbbfed7e7106d05c1c24a2c274f378802025495f4352ac12
+Size (mock-5.2.0.tar.gz) = 92796 bytes



Home | Main Index | Thread Index | Old Index