pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/py-hamcrest py-hamcrest: updated to 2.0.4



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4b18f04c4ef5
branches:  trunk
changeset: 388884:4b18f04c4ef5
user:      adam <adam%pkgsrc.org@localhost>
date:      Sun Nov 27 10:41:35 2022 +0000

description:
py-hamcrest: updated to 2.0.4

Hamcrest 2.0.4
--------------
Bugfixes
- ``has_properties`` now returns ``Matcher[Any]`` type, which addresses type checking errors when nested as a matcher.

Features
- Added Python 3.11 testing

2.0.3 (2021-12-12)
------------------
Features
- * Adds the tests to the sdist.
- * Update the CI to test Python 3.10
- * Add pretty string representation for matchers objects

Bugfixes
- Test coverage is now submitted to codecov.io.
- Change to the ``has_entry()`` matcher - if exactly one key matches, but the value does not, report only the mismatching value.
- * Fix is_() type annotations

Version 2.0.2
-------------
Various type hint bug fixes.

Version 2.0.1
-------------
* Make hamcrest package PEP 561 compatible, i.e. supply type hints for external use.

Version 2.0.0
-------------
Drop formal support for 2.x
Drop formal support for 3.x < 3.5
Fix: raises() grows support for additional matchers on exception object.
* Made has_properties() report all mismatches, not just the first.
* Silence warnings.
* Type fixes.
* Remove obsolete dependencies.

diffstat:

 devel/py-hamcrest/Makefile |  19 +++++++---
 devel/py-hamcrest/PLIST    |  78 +++++++--------------------------------------
 devel/py-hamcrest/distinfo |   8 ++--
 3 files changed, 30 insertions(+), 75 deletions(-)

diffs (240 lines):

diff -r 36fd57f369a8 -r 4b18f04c4ef5 devel/py-hamcrest/Makefile
--- a/devel/py-hamcrest/Makefile        Sun Nov 27 10:15:37 2022 +0000
+++ b/devel/py-hamcrest/Makefile        Sun Nov 27 10:41:35 2022 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.2 2022/01/04 20:53:09 wiz Exp $
+# $NetBSD: Makefile,v 1.3 2022/11/27 10:41:35 adam Exp $
 
-DISTNAME=      PyHamcrest-1.9.0
-PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/^PyH/h/}
-PKGREVISION=   1
+DISTNAME=      pyhamcrest-2.0.4
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/^pyh/h/}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=P/PyHamcrest/}
 
@@ -11,9 +10,17 @@
 COMMENT=       Framework for writing matcher objects
 LICENSE=       modified-bsd
 
-DEPENDS+=      ${PYPKGPREFIX}-six>=1.4:../../lang/py-six
+TOOL_DEPENDS+= ${PYPKGPREFIX}-hatchling-[0-9]*:../../devel/py-hatchling
+TOOL_DEPENDS+= ${PYPKGPREFIX}-hatch-vcs-[0-9]*:../../devel/py-hatch-vcs
+TEST_DEPENDS+= ${PYPKGPREFIX}-test>=5.0:../../devel/py-test
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-xdist-[0-9]*:../../devel/py-test-xdist
 
 USE_LANGUAGES= # none
 
-.include "../../lang/python/egg.mk"
+PYTHON_VERSIONS_INCOMPATIBLE=  27
+
+do-test:
+       cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} tests
+
+.include "../../lang/python/wheel.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 36fd57f369a8 -r 4b18f04c4ef5 devel/py-hamcrest/PLIST
--- a/devel/py-hamcrest/PLIST   Sun Nov 27 10:15:37 2022 +0000
+++ b/devel/py-hamcrest/PLIST   Sun Nov 27 10:41:35 2022 +0000
@@ -1,175 +1,123 @@
-@comment $NetBSD: PLIST,v 1.1 2018/07/24 15:08:19 adam Exp $
-${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
-${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
-${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PYSITELIB}/${EGG_INFODIR}/pbr.json
-${PYSITELIB}/${EGG_INFODIR}/requires.txt
-${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+@comment $NetBSD: PLIST,v 1.2 2022/11/27 10:41:35 adam Exp $
+${PYSITELIB}/${WHEEL_INFODIR}/INSTALLER
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/REQUESTED
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/direct_url.json
+${PYSITELIB}/${WHEEL_INFODIR}/licenses/LICENSE.txt
 ${PYSITELIB}/hamcrest/__init__.py
 ${PYSITELIB}/hamcrest/__init__.pyc
-${PYSITELIB}/hamcrest/__init__.pyo
+${PYSITELIB}/hamcrest/_version.py
+${PYSITELIB}/hamcrest/_version.pyc
 ${PYSITELIB}/hamcrest/core/__init__.py
 ${PYSITELIB}/hamcrest/core/__init__.pyc
-${PYSITELIB}/hamcrest/core/__init__.pyo
 ${PYSITELIB}/hamcrest/core/assert_that.py
 ${PYSITELIB}/hamcrest/core/assert_that.pyc
-${PYSITELIB}/hamcrest/core/assert_that.pyo
 ${PYSITELIB}/hamcrest/core/base_description.py
 ${PYSITELIB}/hamcrest/core/base_description.pyc
-${PYSITELIB}/hamcrest/core/base_description.pyo
 ${PYSITELIB}/hamcrest/core/base_matcher.py
 ${PYSITELIB}/hamcrest/core/base_matcher.pyc
-${PYSITELIB}/hamcrest/core/base_matcher.pyo
-${PYSITELIB}/hamcrest/core/compat.py
-${PYSITELIB}/hamcrest/core/compat.pyc
-${PYSITELIB}/hamcrest/core/compat.pyo
 ${PYSITELIB}/hamcrest/core/core/__init__.py
 ${PYSITELIB}/hamcrest/core/core/__init__.pyc
-${PYSITELIB}/hamcrest/core/core/__init__.pyo
 ${PYSITELIB}/hamcrest/core/core/allof.py
 ${PYSITELIB}/hamcrest/core/core/allof.pyc
-${PYSITELIB}/hamcrest/core/core/allof.pyo
 ${PYSITELIB}/hamcrest/core/core/anyof.py
 ${PYSITELIB}/hamcrest/core/core/anyof.pyc
-${PYSITELIB}/hamcrest/core/core/anyof.pyo
 ${PYSITELIB}/hamcrest/core/core/described_as.py
 ${PYSITELIB}/hamcrest/core/core/described_as.pyc
-${PYSITELIB}/hamcrest/core/core/described_as.pyo
 ${PYSITELIB}/hamcrest/core/core/is_.py
 ${PYSITELIB}/hamcrest/core/core/is_.pyc
-${PYSITELIB}/hamcrest/core/core/is_.pyo
 ${PYSITELIB}/hamcrest/core/core/isanything.py
 ${PYSITELIB}/hamcrest/core/core/isanything.pyc
-${PYSITELIB}/hamcrest/core/core/isanything.pyo
 ${PYSITELIB}/hamcrest/core/core/isequal.py
 ${PYSITELIB}/hamcrest/core/core/isequal.pyc
-${PYSITELIB}/hamcrest/core/core/isequal.pyo
 ${PYSITELIB}/hamcrest/core/core/isinstanceof.py
 ${PYSITELIB}/hamcrest/core/core/isinstanceof.pyc
-${PYSITELIB}/hamcrest/core/core/isinstanceof.pyo
 ${PYSITELIB}/hamcrest/core/core/isnone.py
 ${PYSITELIB}/hamcrest/core/core/isnone.pyc
-${PYSITELIB}/hamcrest/core/core/isnone.pyo
 ${PYSITELIB}/hamcrest/core/core/isnot.py
 ${PYSITELIB}/hamcrest/core/core/isnot.pyc
-${PYSITELIB}/hamcrest/core/core/isnot.pyo
 ${PYSITELIB}/hamcrest/core/core/issame.py
 ${PYSITELIB}/hamcrest/core/core/issame.pyc
-${PYSITELIB}/hamcrest/core/core/issame.pyo
 ${PYSITELIB}/hamcrest/core/core/raises.py
 ${PYSITELIB}/hamcrest/core/core/raises.pyc
-${PYSITELIB}/hamcrest/core/core/raises.pyo
 ${PYSITELIB}/hamcrest/core/description.py
 ${PYSITELIB}/hamcrest/core/description.pyc
-${PYSITELIB}/hamcrest/core/description.pyo
 ${PYSITELIB}/hamcrest/core/helpers/__init__.py
 ${PYSITELIB}/hamcrest/core/helpers/__init__.pyc
-${PYSITELIB}/hamcrest/core/helpers/__init__.pyo
 ${PYSITELIB}/hamcrest/core/helpers/hasmethod.py
 ${PYSITELIB}/hamcrest/core/helpers/hasmethod.pyc
-${PYSITELIB}/hamcrest/core/helpers/hasmethod.pyo
+${PYSITELIB}/hamcrest/core/helpers/ismock.py
+${PYSITELIB}/hamcrest/core/helpers/ismock.pyc
 ${PYSITELIB}/hamcrest/core/helpers/wrap_matcher.py
 ${PYSITELIB}/hamcrest/core/helpers/wrap_matcher.pyc
-${PYSITELIB}/hamcrest/core/helpers/wrap_matcher.pyo
 ${PYSITELIB}/hamcrest/core/matcher.py
 ${PYSITELIB}/hamcrest/core/matcher.pyc
-${PYSITELIB}/hamcrest/core/matcher.pyo
 ${PYSITELIB}/hamcrest/core/selfdescribing.py
 ${PYSITELIB}/hamcrest/core/selfdescribing.pyc
-${PYSITELIB}/hamcrest/core/selfdescribing.pyo
 ${PYSITELIB}/hamcrest/core/selfdescribingvalue.py
 ${PYSITELIB}/hamcrest/core/selfdescribingvalue.pyc
-${PYSITELIB}/hamcrest/core/selfdescribingvalue.pyo
 ${PYSITELIB}/hamcrest/core/string_description.py
 ${PYSITELIB}/hamcrest/core/string_description.pyc
-${PYSITELIB}/hamcrest/core/string_description.pyo
 ${PYSITELIB}/hamcrest/library/__init__.py
 ${PYSITELIB}/hamcrest/library/__init__.pyc
-${PYSITELIB}/hamcrest/library/__init__.pyo
 ${PYSITELIB}/hamcrest/library/collection/__init__.py
 ${PYSITELIB}/hamcrest/library/collection/__init__.pyc
-${PYSITELIB}/hamcrest/library/collection/__init__.pyo
 ${PYSITELIB}/hamcrest/library/collection/is_empty.py
 ${PYSITELIB}/hamcrest/library/collection/is_empty.pyc
-${PYSITELIB}/hamcrest/library/collection/is_empty.pyo
 ${PYSITELIB}/hamcrest/library/collection/isdict_containing.py
 ${PYSITELIB}/hamcrest/library/collection/isdict_containing.pyc
-${PYSITELIB}/hamcrest/library/collection/isdict_containing.pyo
 ${PYSITELIB}/hamcrest/library/collection/isdict_containingentries.py
 ${PYSITELIB}/hamcrest/library/collection/isdict_containingentries.pyc
-${PYSITELIB}/hamcrest/library/collection/isdict_containingentries.pyo
 ${PYSITELIB}/hamcrest/library/collection/isdict_containingkey.py
 ${PYSITELIB}/hamcrest/library/collection/isdict_containingkey.pyc
-${PYSITELIB}/hamcrest/library/collection/isdict_containingkey.pyo
 ${PYSITELIB}/hamcrest/library/collection/isdict_containingvalue.py
 ${PYSITELIB}/hamcrest/library/collection/isdict_containingvalue.pyc
-${PYSITELIB}/hamcrest/library/collection/isdict_containingvalue.pyo
 ${PYSITELIB}/hamcrest/library/collection/isin.py
 ${PYSITELIB}/hamcrest/library/collection/isin.pyc
-${PYSITELIB}/hamcrest/library/collection/isin.pyo
 ${PYSITELIB}/hamcrest/library/collection/issequence_containing.py
 ${PYSITELIB}/hamcrest/library/collection/issequence_containing.pyc
-${PYSITELIB}/hamcrest/library/collection/issequence_containing.pyo
 ${PYSITELIB}/hamcrest/library/collection/issequence_containinginanyorder.py
 ${PYSITELIB}/hamcrest/library/collection/issequence_containinginanyorder.pyc
-${PYSITELIB}/hamcrest/library/collection/issequence_containinginanyorder.pyo
 ${PYSITELIB}/hamcrest/library/collection/issequence_containinginorder.py
 ${PYSITELIB}/hamcrest/library/collection/issequence_containinginorder.pyc
-${PYSITELIB}/hamcrest/library/collection/issequence_containinginorder.pyo
 ${PYSITELIB}/hamcrest/library/collection/issequence_onlycontaining.py
 ${PYSITELIB}/hamcrest/library/collection/issequence_onlycontaining.pyc
-${PYSITELIB}/hamcrest/library/collection/issequence_onlycontaining.pyo
 ${PYSITELIB}/hamcrest/library/integration/__init__.py
 ${PYSITELIB}/hamcrest/library/integration/__init__.pyc
-${PYSITELIB}/hamcrest/library/integration/__init__.pyo
 ${PYSITELIB}/hamcrest/library/integration/match_equality.py
 ${PYSITELIB}/hamcrest/library/integration/match_equality.pyc
-${PYSITELIB}/hamcrest/library/integration/match_equality.pyo
 ${PYSITELIB}/hamcrest/library/number/__init__.py
 ${PYSITELIB}/hamcrest/library/number/__init__.pyc
-${PYSITELIB}/hamcrest/library/number/__init__.pyo
 ${PYSITELIB}/hamcrest/library/number/iscloseto.py
 ${PYSITELIB}/hamcrest/library/number/iscloseto.pyc
-${PYSITELIB}/hamcrest/library/number/iscloseto.pyo
 ${PYSITELIB}/hamcrest/library/number/ordering_comparison.py
 ${PYSITELIB}/hamcrest/library/number/ordering_comparison.pyc
-${PYSITELIB}/hamcrest/library/number/ordering_comparison.pyo
 ${PYSITELIB}/hamcrest/library/object/__init__.py
 ${PYSITELIB}/hamcrest/library/object/__init__.pyc
-${PYSITELIB}/hamcrest/library/object/__init__.pyo
 ${PYSITELIB}/hamcrest/library/object/haslength.py
 ${PYSITELIB}/hamcrest/library/object/haslength.pyc
-${PYSITELIB}/hamcrest/library/object/haslength.pyo
 ${PYSITELIB}/hamcrest/library/object/hasproperty.py
 ${PYSITELIB}/hamcrest/library/object/hasproperty.pyc
-${PYSITELIB}/hamcrest/library/object/hasproperty.pyo
 ${PYSITELIB}/hamcrest/library/object/hasstring.py
 ${PYSITELIB}/hamcrest/library/object/hasstring.pyc
-${PYSITELIB}/hamcrest/library/object/hasstring.pyo
 ${PYSITELIB}/hamcrest/library/text/__init__.py
 ${PYSITELIB}/hamcrest/library/text/__init__.pyc
-${PYSITELIB}/hamcrest/library/text/__init__.pyo
 ${PYSITELIB}/hamcrest/library/text/isequal_ignoring_case.py
 ${PYSITELIB}/hamcrest/library/text/isequal_ignoring_case.pyc
-${PYSITELIB}/hamcrest/library/text/isequal_ignoring_case.pyo
 ${PYSITELIB}/hamcrest/library/text/isequal_ignoring_whitespace.py
 ${PYSITELIB}/hamcrest/library/text/isequal_ignoring_whitespace.pyc
-${PYSITELIB}/hamcrest/library/text/isequal_ignoring_whitespace.pyo
 ${PYSITELIB}/hamcrest/library/text/stringcontains.py
 ${PYSITELIB}/hamcrest/library/text/stringcontains.pyc
-${PYSITELIB}/hamcrest/library/text/stringcontains.pyo
 ${PYSITELIB}/hamcrest/library/text/stringcontainsinorder.py
 ${PYSITELIB}/hamcrest/library/text/stringcontainsinorder.pyc
-${PYSITELIB}/hamcrest/library/text/stringcontainsinorder.pyo
 ${PYSITELIB}/hamcrest/library/text/stringendswith.py
 ${PYSITELIB}/hamcrest/library/text/stringendswith.pyc
-${PYSITELIB}/hamcrest/library/text/stringendswith.pyo
 ${PYSITELIB}/hamcrest/library/text/stringmatches.py
 ${PYSITELIB}/hamcrest/library/text/stringmatches.pyc
-${PYSITELIB}/hamcrest/library/text/stringmatches.pyo
 ${PYSITELIB}/hamcrest/library/text/stringstartswith.py
 ${PYSITELIB}/hamcrest/library/text/stringstartswith.pyc
-${PYSITELIB}/hamcrest/library/text/stringstartswith.pyo
 ${PYSITELIB}/hamcrest/library/text/substringmatcher.py
 ${PYSITELIB}/hamcrest/library/text/substringmatcher.pyc
-${PYSITELIB}/hamcrest/library/text/substringmatcher.pyo
+${PYSITELIB}/hamcrest/py.typed
diff -r 36fd57f369a8 -r 4b18f04c4ef5 devel/py-hamcrest/distinfo
--- a/devel/py-hamcrest/distinfo        Sun Nov 27 10:15:37 2022 +0000
+++ b/devel/py-hamcrest/distinfo        Sun Nov 27 10:41:35 2022 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.3 2021/10/26 10:18:32 nia Exp $
+$NetBSD: distinfo,v 1.4 2022/11/27 10:41:35 adam Exp $
 
-BLAKE2s (PyHamcrest-1.9.0.tar.gz) = 0e1bb93b255b7a9109958469a384c4cd0016ea32ec6cb5c7e4319024b00f91cc
-SHA512 (PyHamcrest-1.9.0.tar.gz) = 3b8393d0079b619b208ec7f06ed5133c4ff9d9dba050f818adf56347fc2225fd1c85d60f3dc262b7b9722061f0b8e4966180b6b96245a371e578d0d51633b4b0
-Size (PyHamcrest-1.9.0.tar.gz) = 376623 bytes
+BLAKE2s (pyhamcrest-2.0.4.tar.gz) = 46d1a3ec8d6829885fde38799f3f235b690380158987695123e380445347e436
+SHA512 (pyhamcrest-2.0.4.tar.gz) = 0baec352a1a31d660dda99b77d95f3ed8281c32180984fedf44f77b3acc60176eff1abc674905eccee06a9a449497c82686a3256939bbc482595384da11c4abf
+Size (pyhamcrest-2.0.4.tar.gz) = 57649 bytes



Home | Main Index | Thread Index | Old Index