pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/py-flexmock py-flexmock: updated to 0.11.3



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b88e7f721f63
branches:  trunk
changeset: 389068:b88e7f721f63
user:      adam <adam%pkgsrc.org@localhost>
date:      Tue Nov 29 21:14:10 2022 +0000

description:
py-flexmock: updated to 0.11.3

Release 0.11.3

Added

- Add PEP 561 `py.typed` marker file.

Changed

- Remove documentation and test files from wheels build.
- Re-organize unit tests.

Documentation

- Add a warning about the usage of `.new_instances()` method in the documentation.

Release 0.11.2

Fixed

- Fix subunit testrunner integration is broken.
- Fix: TeamCity (PyCharm) testrunner integration is broken.

Infrastructure

- Run tests with testtools, subunit, TeamCity, and doctest testrunners using tox.

Documentation

- Test flexmock API examples using doctest.
- Re-add Sphinx support for generating man pages.
- Fix 404 page not loading CSS and Javascript resources in documentation.
- Small fixes to documentation.

Release 0.11.1

Fixed

- Fix Zope testrunner integration is broken.

Infrastructure

- Run tests with Zope testrunner using tox.

Release 0.11.0

Added

- Add Python 3.8, 3.9, 3.10, and 3.11 support.
- Add type annotations.

Changed

- **BREAKING CHANGE**: Flexmock needs to be imported explicitly using `from flexmock import flexmock`.
 The hack that allowed flexmock to be imported directly using `import flexmock` did not work well with static analysis tools.
- Many error messages have been improved.
- Undocumented methods `Expectation.reset`, `Expectation.verify`, and `Expectation.match_args` that were unintentionally left public are now private methods.
- Undocumented attributes in `Mock` and `Expectation` are now private. These attributes were never meant to be accessed directly.

Removed

- Drop Python 2.7, 3.4, 3.5 support.
- Drop Pytest 4.x support.
- Remove unittest2 and nose integrations. unittest2 and nose are not maintained anymore.
- **BREAKING CHANGE**: Removed support for calling `once`, `twice`, `never`, and `mock` methods
 without parentheses. This allows code completion and static analysis to work with these methods.

Fixed

- Fix `should_call` is broken if called on a fake object.
- Fix `and_raise` allows invalid arguments for an exception.

Infrastructure

- Run linters and tests using Github Actions.
- Add coverage reporting using Codecov.

Documentation

- Add contribution documentation.
- Use Mkdocs instead of Sphinx to build the documentation.

diffstat:

 devel/py-flexmock/Makefile |   9 +++++----
 devel/py-flexmock/PLIST    |  18 ++++++++++++++----
 devel/py-flexmock/distinfo |   8 ++++----
 3 files changed, 23 insertions(+), 12 deletions(-)

diffs (65 lines):

diff -r ac2d73b521cc -r b88e7f721f63 devel/py-flexmock/Makefile
--- a/devel/py-flexmock/Makefile        Tue Nov 29 21:05:08 2022 +0000
+++ b/devel/py-flexmock/Makefile        Tue Nov 29 21:14:10 2022 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.10 2022/01/04 20:53:05 wiz Exp $
+# $NetBSD: Makefile,v 1.11 2022/11/29 21:14:10 adam Exp $
 
-DISTNAME=      flexmock-0.10.10
+DISTNAME=      flexmock-0.11.3
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   1
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=f/flexmock/}
 
@@ -13,8 +12,10 @@
 
 USE_LANGUAGES= # none
 
+PYTHON_VERSIONS_INCOMPATIBLE=  27
+
 do-test:
-       cd ${WRKSRC}/tests && ${PYTHONBIN} -m unittest flexmock_test
+       cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHONBIN} -m unittest discover -v
 
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r ac2d73b521cc -r b88e7f721f63 devel/py-flexmock/PLIST
--- a/devel/py-flexmock/PLIST   Tue Nov 29 21:05:08 2022 +0000
+++ b/devel/py-flexmock/PLIST   Tue Nov 29 21:14:10 2022 +0000
@@ -1,8 +1,18 @@
-@comment $NetBSD: PLIST,v 1.2 2017/07/22 12:40:01 adam Exp $
+@comment $NetBSD: PLIST,v 1.3 2022/11/29 21:14:10 adam Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
 ${PYSITELIB}/${EGG_INFODIR}/top_level.txt
-${PYSITELIB}/flexmock.py
-${PYSITELIB}/flexmock.pyc
-${PYSITELIB}/flexmock.pyo
+${PYSITELIB}/flexmock/__init__.py
+${PYSITELIB}/flexmock/__init__.pyc
+${PYSITELIB}/flexmock/__init__.pyo
+${PYSITELIB}/flexmock/_api.py
+${PYSITELIB}/flexmock/_api.pyc
+${PYSITELIB}/flexmock/_api.pyo
+${PYSITELIB}/flexmock/_integrations.py
+${PYSITELIB}/flexmock/_integrations.pyc
+${PYSITELIB}/flexmock/_integrations.pyo
+${PYSITELIB}/flexmock/exceptions.py
+${PYSITELIB}/flexmock/exceptions.pyc
+${PYSITELIB}/flexmock/exceptions.pyo
+${PYSITELIB}/flexmock/py.typed
diff -r ac2d73b521cc -r b88e7f721f63 devel/py-flexmock/distinfo
--- a/devel/py-flexmock/distinfo        Tue Nov 29 21:05:08 2022 +0000
+++ b/devel/py-flexmock/distinfo        Tue Nov 29 21:14:10 2022 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.10 2021/10/26 10:18:28 nia Exp $
+$NetBSD: distinfo,v 1.11 2022/11/29 21:14:10 adam Exp $
 
-BLAKE2s (flexmock-0.10.10.tar.gz) = afc9b36a86d3087fb5568d12d1c51b28d239e6c2bae1a987f1edcf16b90badeb
-SHA512 (flexmock-0.10.10.tar.gz) = 211939bf40ecb25981a70d5bfe897ef8127ef38d5adf6a48b086c4b6f49b05e1a04f09afb73f428e3eb21a8090ba33ca86e605c2c1ac70d9fc269fdd640ccb73
-Size (flexmock-0.10.10.tar.gz) = 49201 bytes
+BLAKE2s (flexmock-0.11.3.tar.gz) = 6d6f45a838fd23bfc9014cf75a6de220e7bc37042fb7fa12d29ab4a121d3790d
+SHA512 (flexmock-0.11.3.tar.gz) = 38387529d8b7e359cf6e578c9be8ae028cd28929567267bce1bb7f44032c00480520335315bb1c510229728e1101aa379b809fb89aeddafd19590e38e7ebdcf2
+Size (flexmock-0.11.3.tar.gz) = 52509 bytes



Home | Main Index | Thread Index | Old Index