Skip to content

Commit

Permalink
py-testfixtures: update to 7.2.2. Changes:
Browse files Browse the repository at this point in the history
7.2.2:
- Fix bug in support for :class:`os.PathLike` arguments to
  :class:`popen.MockPopen`.

7.2.1:
- Added missing support for :class:`os.PathLike` arguments to
  :class:`popen.MockPopen`.

7.2.0:
- Add ``order_matters`` parameter to :class:`ShouldWarn`.

7.1.0:
- Implement new IDE and static-analysis ways of :doc:`mocking <mocking>`
  including additional parameters to :meth:`~Replacer.replace` along
  with the :any:`replace_on_class`, :any:`replace_in_module` and
  :any:`replace_in_environ` context managers.

7.0.4:
- Remove `py.typed` file: neither `mypy` nor `testfixtures` are ready
  for this file to be present.

7.0.3:
- Further bugfixes around self-referential datastructures and
  :func:`compare`.

7.0.2:
- Reinstate support for self-referential data structures in
  :func:`compare`. The new implementation provides more clarity about
  what's going on and also ignores more immutable data types.

7.0.1:
- Remove non-functional support for self-referential data structures in
  :func:`compare`. The functionality didn't work but did cause
  erroneous reported equality of values in dictionaries that were
  actually not equal.

7.0.0:
- Refresh documentation.
- Add type annotations.
- Drop support for Python 2. The minimum supported Python version
  is now 3.6.
- Sybil 3 is now the minimum supported version if you use
  :class:`~.sybil.FileParser`.
- Rename and refactor the date and time mocks, they are now
  :any:`mock_date`, :any:`mock_datetime` and :any:`mock_time`.
  :any:`test_date<mock_date>`, :any:`test_datetime <mock_datetime>` and
  :any:`test_time <mock_time>` are still present as aliases but are now
  deprecated.
- Add :meth:`TempDirectory.as_string`, :meth:`TempDirectory.as_path` and
  :meth:`TempDirectory.as_local`. :meth:`TempDirectory.getpath` is now
  deprecated.
- :class:`TempDirectory` can now be used to wrap existing directories.
- Fixed a bug where :any:`OutputCapture.captured` returned bytes instead
  of a string with ``fd=True``.
- The deprecated ``strict`` option to :class:`Comparison` has been
  removed, use the ``partial`` option instead.
- The deprecated ``TempDirectory.check``, ``TempDirectory.check_dir``
  and ``TempDirectory.check_all`` methods have been removed.

6.18.5:
- Fix bug in detection of Mock backport.

6.18.4:
- Ensure compatibility with Sybil 2 and Sybil 3 along with pytest 6
  and pytest 7.

6.18.3:
- Fix bug when using :func:`compare` on two regular expressions that
  have very long patterns.

6.18.2:
- Fix bug that meant :class:`LogCapture` didn't preserve or provide a
  clean testing environment for filters.

6.18.1:
- Fix bug when showing differences between mappings found by
  :func:`compare` when mismatching values contained the same number more
  than once.

6.18.0:
- Add support for lazy resolution of ``prefix`` and ``suffix`` when
  using :func:`compare`.

6.17.1:
- Fix bug where bug where duplicated entries in an ordered but partial
  :class:`SequenceComparison` could result in a failed match.

6.17.0:
- Add simpler flag support to :class:`StringComparison`.
- Fix deprecation warning about invalid escape sequence.

6.16.0:
- Simplify and clarify the documentation of timezones when using
  :any:`test_datetime <mock_datetime>` .
- :doc:`api` has been re-arranged to make it easier to browse.
- The ``strict`` parameter to :class:`Comparison` has been deprecated in
  favour of ``partial``.
- Add :class:`SequenceComparison`, :class:`Subset` and
  :class:`Permutation` objects.
- Add :class:`MappingComparison` objects.
- Officially support Python 3.9.
  • Loading branch information
schmonz committed Nov 13, 2023
1 parent 08b58f9 commit 681e62d
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 17 deletions.
24 changes: 16 additions & 8 deletions py-testfixtures/Makefile
@@ -1,22 +1,30 @@
# $NetBSD$

DISTNAME= testfixtures-6.15.0
DISTNAME= testfixtures-7.2.2
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=t/testfixtures/}

MAINTAINER= kamelderouiche@yahoo.com
HOMEPAGE= https://github.com/Simplistix/testfixtures
COMMENT= Collection of helpers and mock objects for unit tests and doc tests
HOMEPAGE= https://github.com/simplistix/testfixtures
COMMENT= Helpers and mocks useful for automated tests in Python
LICENSE= mit

USE_LANGUAGES= # none

TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel>=0.29.0:../../devel/py-wheel
TOOL_DEPENDS+= ${PYPKGPREFIX}-twine>=1.13.0:../../net/py-twine
DEPENDS+= ${PYPKGPREFIX}-test>=6.1.2:../../devel/py-test
DEPENDS+= ${PYPKGPREFIX}-test-cov>=2.10.1:../../devel/py-test-cov
DEPENDS+= ${PYPKGPREFIX}-test-django>=3.10.0:../../www/py-test-django
PYTHON_VERSIONS_INCOMPATIBLE= 27

TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
TOOL_DEPENDS+= ${PYPKGPREFIX}-twine-[0-9]*:../../net/py-twine
DEPENDS+= ${PYPKGPREFIX}-test>=3.6:../../devel/py-test
DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov
DEPENDS+= ${PYPKGPREFIX}-test-django-[0-9]*:../../www/py-test-django

DEPENDS+= ${PYPKGPREFIX}-mypy-[0-9]*:../../lang/py-mypy
DEPENDS+= ${PYPKGPREFIX}-zope.component-[0-9]*:../../devel/py-zope.component
DEPENDS+= ${PYPKGPREFIX}-django-[0-9]*:../../www/py-django3
# TEST: django, sybil>=3, twisted
# DOCS: also sphinx, furo

.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
18 changes: 12 additions & 6 deletions py-testfixtures/PLIST
Expand Up @@ -17,6 +17,9 @@ ${PYSITELIB}/testfixtures/compat.pyo
${PYSITELIB}/testfixtures/components.py
${PYSITELIB}/testfixtures/components.pyc
${PYSITELIB}/testfixtures/components.pyo
${PYSITELIB}/testfixtures/datetime.py
${PYSITELIB}/testfixtures/datetime.pyc
${PYSITELIB}/testfixtures/datetime.pyo
${PYSITELIB}/testfixtures/django.py
${PYSITELIB}/testfixtures/django.pyc
${PYSITELIB}/testfixtures/django.pyo
Expand Down Expand Up @@ -50,9 +53,6 @@ ${PYSITELIB}/testfixtures/shouldwarn.pyo
${PYSITELIB}/testfixtures/sybil.py
${PYSITELIB}/testfixtures/sybil.pyc
${PYSITELIB}/testfixtures/sybil.pyo
${PYSITELIB}/testfixtures/tdatetime.py
${PYSITELIB}/testfixtures/tdatetime.pyc
${PYSITELIB}/testfixtures/tdatetime.pyo
${PYSITELIB}/testfixtures/tempdirectory.py
${PYSITELIB}/testfixtures/tempdirectory.pyc
${PYSITELIB}/testfixtures/tempdirectory.pyo
Expand All @@ -61,16 +61,16 @@ ${PYSITELIB}/testfixtures/tests/__init__.pyc
${PYSITELIB}/testfixtures/tests/__init__.pyo
${PYSITELIB}/testfixtures/tests/configparser-read.txt
${PYSITELIB}/testfixtures/tests/configparser-write.txt
${PYSITELIB}/testfixtures/tests/conftest.py
${PYSITELIB}/testfixtures/tests/conftest.pyc
${PYSITELIB}/testfixtures/tests/conftest.pyo
${PYSITELIB}/testfixtures/tests/directory-contents.txt
${PYSITELIB}/testfixtures/tests/sample1.py
${PYSITELIB}/testfixtures/tests/sample1.pyc
${PYSITELIB}/testfixtures/tests/sample1.pyo
${PYSITELIB}/testfixtures/tests/sample2.py
${PYSITELIB}/testfixtures/tests/sample2.pyc
${PYSITELIB}/testfixtures/tests/sample2.pyo
${PYSITELIB}/testfixtures/tests/sample3.py
${PYSITELIB}/testfixtures/tests/sample3.pyc
${PYSITELIB}/testfixtures/tests/sample3.pyo
${PYSITELIB}/testfixtures/tests/test_compare.py
${PYSITELIB}/testfixtures/tests/test_compare.pyc
${PYSITELIB}/testfixtures/tests/test_compare.pyo
Expand Down Expand Up @@ -116,6 +116,9 @@ ${PYSITELIB}/testfixtures/tests/test_log_capture.pyo
${PYSITELIB}/testfixtures/tests/test_logcapture.py
${PYSITELIB}/testfixtures/tests/test_logcapture.pyc
${PYSITELIB}/testfixtures/tests/test_logcapture.pyo
${PYSITELIB}/testfixtures/tests/test_mappingcomparison.py
${PYSITELIB}/testfixtures/tests/test_mappingcomparison.pyc
${PYSITELIB}/testfixtures/tests/test_mappingcomparison.pyo
${PYSITELIB}/testfixtures/tests/test_mock.py
${PYSITELIB}/testfixtures/tests/test_mock.pyc
${PYSITELIB}/testfixtures/tests/test_mock.pyo
Expand All @@ -140,6 +143,9 @@ ${PYSITELIB}/testfixtures/tests/test_replacer.pyo
${PYSITELIB}/testfixtures/tests/test_roundcomparison.py
${PYSITELIB}/testfixtures/tests/test_roundcomparison.pyc
${PYSITELIB}/testfixtures/tests/test_roundcomparison.pyo
${PYSITELIB}/testfixtures/tests/test_sequencecomparison.py
${PYSITELIB}/testfixtures/tests/test_sequencecomparison.pyc
${PYSITELIB}/testfixtures/tests/test_sequencecomparison.pyo
${PYSITELIB}/testfixtures/tests/test_should_raise.py
${PYSITELIB}/testfixtures/tests/test_should_raise.pyc
${PYSITELIB}/testfixtures/tests/test_should_raise.pyo
Expand Down
6 changes: 3 additions & 3 deletions py-testfixtures/distinfo
@@ -1,5 +1,5 @@
$NetBSD$

RMD160 (testfixtures-6.15.0.tar.gz) = 2e110fa968315d632414ae27da2d7ff93d8e89fb
SHA512 (testfixtures-6.15.0.tar.gz) = 34b9f1b9a5e76c5e20acf9abae2961694817de3822361cd5afc4a405ccdbcf26c617a01fbd8d2d977c2a0bc696232c2363df4a9fb7ba9187e0743cf2a6fe98e1
Size (testfixtures-6.15.0.tar.gz) = 116119 bytes
BLAKE2s (testfixtures-7.2.2.tar.gz) = d0d1ffdc97a922dfacbe2a4c3576a4e9cdc90c090e523f23fe0ee0c4c7bc0293
SHA512 (testfixtures-7.2.2.tar.gz) = 4f7a5ed659b650080deac0b1caff6d2dff0b71d23eaeb26b48b7daa4df85dc0a1f6cfef98275c9a90289eb893c0a06311c849b84f2cc35447fb766f4d0d41c89
Size (testfixtures-7.2.2.tar.gz) = 133809 bytes

0 comments on commit 681e62d

Please sign in to comment.