pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/py-mock py-mock: updated to 3.0.4



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ed56bb79742c
branches:  trunk
changeset: 395316:ed56bb79742c
user:      adam <adam%pkgsrc.org@localhost>
date:      Sun May 05 04:55:10 2019 +0000

description:
py-mock: updated to 3.0.4

3.0.4
- Include the license, readme and changelog in the source distribution.

3.0.3
- Fixed patching of dictionaries, when specifying the target with a
  unicode on Python 2.

3.0.2
- Add missing funcsigs dependency on Python 2.

3.0.1
- Fix packaging issue where six was missed as a dependency.

3.0.0
- Issue 35226: Recursively check arguments when testing for equality of
  :class:unittest.mock.call objects and add note that tracking of
  parameters used to create ancestors of mocks in mock_calls is not
  possible.

- Issue 31177: Fix bug that prevented using :meth:reset_mock
  <unittest.mock.Mock.reset_mock> on mock instances with deleted attributes

- Issue 26704: Added test demonstrating double-patching of an instance
  method.  Patch by Anthony Sottile.

- Issue 35500: Write expected and actual call parameters on separate lines
  in :meth:unittest.mock.Mock.assert_called_with assertion errors.
  Contributed by Susan Su.

- Issue 35330: When a :class:Mock instance was used to wrap an object, if
  side_effect is used in one of the mocks of it methods, don't call the
  original implementation and return the result of using the side effect the
  same way that it is done with return_value.

- Issue 30541: Add new function to seal a mock and prevent the
  automatically creation of child mocks. Patch by Mario Corchero.

- Issue 35022: :class:unittest.mock.MagicMock now supports the
  __fspath__ method (from :class:os.PathLike).

- Issue 33516: :class:unittest.mock.MagicMock now supports the
  __round__ magic method.

- Issue 35512: :func:unittest.mock.patch.dict used as a decorator with
  string target resolves the target during function call instead of during
  decorator construction. Patch by Karthikeyan Singaravelan.

- Issue 36366: Calling stop() on an unstarted or stopped
  :func:unittest.mock.patch object will now return None instead of
  raising :exc:RuntimeError, making the method idempotent. Patch
  byKarthikeyan Singaravelan.

- Issue 35357: Internal attributes' names of unittest.mock._Call and
  unittest.mock.MagicProxy (name, parent & from_kall) are now prefixed with
  _mock_ in order to prevent clashes with widely used object attributes.
  Fixed minor typo in test function name.

- Issue 20239: Allow repeated assignment deletion of
  :class:unittest.mock.Mock attributes. Patch by Pablo Galindo.

- Issue 35082: Don't return deleted attributes when calling dir on a
  :class:unittest.mock.Mock.

- Issue 0: Improved an error message when mock assert_has_calls fails.

- Issue 23078: Add support for :func:classmethod and :func:staticmethod
  to :func:unittest.mock.create_autospec.  Initial patch by Felipe Ochoa.

- Issue 21478: Calls to a child function created with
  :func:unittest.mock.create_autospec should propagate to the parent.
  Patch by Karthikeyan Singaravelan.

- Issue 36598: Fix isinstance check for Mock objects with spec when the
  code is executed under tracing. Patch by Karthikeyan Singaravelan.

- Issue 32933: :func:unittest.mock.mock_open now supports iteration over
  the file contents. Patch by Tony Flury.

- Issue 21269: Add args and kwargs properties to mock call objects.
  Contributed by Kumar Akshay.

- Issue 17185: Set __signature__ on mock for :mod:inspect to get
  signature. Patch by Karthikeyan Singaravelan.

- Issue 35047: unittest.mock now includes mock calls in exception
  messages if assert_not_called, assert_called_once, or
  assert_called_once_with fails. Patch by Petter Strandmark.

- Issue 28380: unittest.mock Mock autospec functions now properly support
  assert_called, assert_not_called, and assert_called_once.

- Issue 28735: Fixed the comparison of mock.MagickMock with mock.ANY.

- Issue 20804: The unittest.mock.sentinel attributes now preserve their
  identity when they are copied or pickled.

- Issue 28961: Fix unittest.mock._Call helper: don't ignore the name parameter
  anymore. Patch written by Jiajun Huang.

- Issue 26750: unittest.mock.create_autospec() now works properly for
  subclasses of property() and other data descriptors.

- Issue 21271: New keyword only parameters in reset_mock call.

- Issue 26807: mock_open 'files' no longer error on readline at end of file.
  Patch from Yolanda Robla.

- Issue 25195: Fix a regression in mock.MagicMock. _Call is a subclass of
  tuple (changeset 3603bae63c13 only works for classes) so we need to
  implement __ne__ ourselves.

diffstat:

 devel/py-mock/Makefile |  13 +++++--------
 devel/py-mock/PLIST    |  34 +---------------------------------
 devel/py-mock/distinfo |  10 +++++-----
 3 files changed, 11 insertions(+), 46 deletions(-)

diffs (97 lines):

diff -r 417bc090fc68 -r ed56bb79742c devel/py-mock/Makefile
--- a/devel/py-mock/Makefile    Sat May 04 23:11:00 2019 +0000
+++ b/devel/py-mock/Makefile    Sun May 05 04:55:10 2019 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.15 2018/08/20 10:56:57 adam Exp $
+# $NetBSD: Makefile,v 1.16 2019/05/05 04:55:10 adam Exp $
 
-DISTNAME=      mock-2.0.0
+DISTNAME=      mock-3.0.4
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   1
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=m/mock/}
 
@@ -11,16 +10,14 @@
 COMMENT=       Python testing framework
 LICENSE=       gnu-gpl-v2
 
-DEPENDS+=      ${PYPKGPREFIX}-pbr>=0.11:../../devel/py-pbr
 DEPENDS+=      ${PYPKGPREFIX}-six>=1.7:../../lang/py-six
-BUILD_DEPENDS+=        ${PYPKGPREFIX}-unittest2-[0-9]*:../../devel/py-unittest2
 
-.include "../../lang/python/egg.mk"
-
-.if ${_PYTHON_VERSION} < 33
+.include "../../lang/python/pyversion.mk"
+.if ${_PYTHON_VERSION} == 27
 DEPENDS+=      ${PYPKGPREFIX}-funcsigs>=1:../../devel/py-funcsigs
 .endif
 
 USE_LANGUAGES= # none
 
+.include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 417bc090fc68 -r ed56bb79742c devel/py-mock/PLIST
--- a/devel/py-mock/PLIST       Sat May 04 23:11:00 2019 +0000
+++ b/devel/py-mock/PLIST       Sun May 05 04:55:10 2019 +0000
@@ -1,9 +1,7 @@
-@comment $NetBSD: PLIST,v 1.2 2015/07/14 08:48:13 wiz Exp $
+@comment $NetBSD: PLIST,v 1.3 2019/05/05 04:55:10 adam Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
-${PYSITELIB}/${EGG_INFODIR}/pbr.json
 ${PYSITELIB}/${EGG_INFODIR}/requires.txt
 ${PYSITELIB}/${EGG_INFODIR}/top_level.txt
 ${PYSITELIB}/mock/__init__.py
@@ -12,33 +10,3 @@
 ${PYSITELIB}/mock/mock.py
 ${PYSITELIB}/mock/mock.pyc
 ${PYSITELIB}/mock/mock.pyo
-${PYSITELIB}/mock/tests/__init__.py
-${PYSITELIB}/mock/tests/__init__.pyc
-${PYSITELIB}/mock/tests/__init__.pyo
-${PYSITELIB}/mock/tests/__main__.py
-${PYSITELIB}/mock/tests/__main__.pyc
-${PYSITELIB}/mock/tests/__main__.pyo
-${PYSITELIB}/mock/tests/support.py
-${PYSITELIB}/mock/tests/support.pyc
-${PYSITELIB}/mock/tests/support.pyo
-${PYSITELIB}/mock/tests/testcallable.py
-${PYSITELIB}/mock/tests/testcallable.pyc
-${PYSITELIB}/mock/tests/testcallable.pyo
-${PYSITELIB}/mock/tests/testhelpers.py
-${PYSITELIB}/mock/tests/testhelpers.pyc
-${PYSITELIB}/mock/tests/testhelpers.pyo
-${PYSITELIB}/mock/tests/testmagicmethods.py
-${PYSITELIB}/mock/tests/testmagicmethods.pyc
-${PYSITELIB}/mock/tests/testmagicmethods.pyo
-${PYSITELIB}/mock/tests/testmock.py
-${PYSITELIB}/mock/tests/testmock.pyc
-${PYSITELIB}/mock/tests/testmock.pyo
-${PYSITELIB}/mock/tests/testpatch.py
-${PYSITELIB}/mock/tests/testpatch.pyc
-${PYSITELIB}/mock/tests/testpatch.pyo
-${PYSITELIB}/mock/tests/testsentinel.py
-${PYSITELIB}/mock/tests/testsentinel.pyc
-${PYSITELIB}/mock/tests/testsentinel.pyo
-${PYSITELIB}/mock/tests/testwith.py
-${PYSITELIB}/mock/tests/testwith.pyc
-${PYSITELIB}/mock/tests/testwith.pyo
diff -r 417bc090fc68 -r ed56bb79742c devel/py-mock/distinfo
--- a/devel/py-mock/distinfo    Sat May 04 23:11:00 2019 +0000
+++ b/devel/py-mock/distinfo    Sun May 05 04:55:10 2019 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.8 2016/04/13 17:56:24 wiz Exp $
+$NetBSD: distinfo,v 1.9 2019/05/05 04:55:10 adam Exp $
 
-SHA1 (mock-2.0.0.tar.gz) = 397ed52eb2d8d4b326bc3fa6b38adda5f0b090d3
-RMD160 (mock-2.0.0.tar.gz) = 10f4cb9343d99620e298cc0ffea143ee321e4ec2
-SHA512 (mock-2.0.0.tar.gz) = a08007651b749d2843b94f5045d74c122958888290aea21930455538a854e6b04c07115e21d82edde996154bf597d7a8784a2f4213cbabc49a98dec22dd92238
-Size (mock-2.0.0.tar.gz) = 73684 bytes
+SHA1 (mock-3.0.4.tar.gz) = 045d5133bc083a7c47d5f650255a61cc0403a504
+RMD160 (mock-3.0.4.tar.gz) = 79403af362d4116b054c1499c1b01624abd5c722
+SHA512 (mock-3.0.4.tar.gz) = 533ad6ed113cb6cfb6027d19e0516109938e8c2a18f88c03ded54e274caef7d141b9a31ee5b122cb662a2d5a847c7b8cf9f1c2cb7bbf71935f2b2ceb5ccfcea1
+Size (mock-3.0.4.tar.gz) = 28331 bytes



Home | Main Index | Thread Index | Old Index