From d6f50440a3f6f7a594f96baa8ebc3442809addcc Mon Sep 17 00:00:00 2001 From: wiz Date: Fri, 5 May 2023 11:39:41 +0000 Subject: [PATCH] py-watchdog: update to 3.0.0. 3.0.0 ~~~~~ - Drop support for Python 3.6. - ``watchdog`` is now PEP 561 compatible, and tested with ``mypy`` - Fix missing ``>`` in ``FileSystemEvent.__repr__()`` (`#980 `__) - [ci] Lots of improvements - [inotify] Return from ``InotifyEmitter.queue_events()`` if not launched when thread is inactive (`#963 `__) - [tests] Stability improvements - [utils] Remove handling of ``threading.Event.isSet`` spelling (`#962 `__) - [watchmedo] Fixed tricks YAML generation (`#965 `__) - Thanks to our beloved contributors: @kurtmckee, @altendky, @agroszer, @BoboTiG 2.3.1 ~~~~~ - Run ``black`` on the entire source code - Bundle the ``requirements-tests.txt`` file in the source distribution (`#939 `__) - [watchmedo] Exclude ``FileOpenedEvent`` events from ``AutoRestartTrick``, and ``ShellCommandTrick``, to restore watchdog < 2.3.0 behavior. A better solution should be found in the future. (`#949 `__) - [watchmedo] Log ``FileOpenedEvent``, and ``FileClosedEvent``, events in ``LoggerTrick`` - Thanks to our beloved contributors: @BoboTiG 2.3.0 ~~~~~ - [inotify] Add support for ``IN_OPEN`` events: a ``FileOpenedEvent`` event will be fired (`#941 `__) - [watchmedo] Add optional event debouncing for ``auto-restart``, only restarting once if many events happen in quick succession (``--debounce-interval``) (`#940 `__) - [watchmedo] Exit gracefully on ``KeyboardInterrupt`` exception (Ctrl+C) (`#945 `__) - [watchmedo] Add option to not auto-restart the command after it exits (``--no-restart-on-command-exit``) (`#946 `__) - Thanks to our beloved contributors: @BoboTiG, @dstaple, @taleinat, @cernekj 2.2.1 ~~~~~ - Enable ``mypy`` to discover type hints as specified in PEP 561 (`#933 `__) - [ci] Set the expected Python version when building release files - [ci] Update actions versions in use - [watchmedo] [regression] Fix usage of missing ``signal.SIGHUP`` attribute on non-Unix OSes (`#935 `__) - Thanks to our beloved contributors: @BoboTiG, @simon04, @piotrpdev 2.2.0 ~~~~~ - [build] Wheels are now available for Python 3.11 (`#932 `__) - [documentation] HTML documentation builds are now tested for errors (`#902 `__) - [documentation] Fix typos here, and there (`#910 `__) - [fsevents2] The ``fsevents2`` observer is now deprecated (`#909 `__) - [tests] The error message returned by musl libc for error code ``-1`` is now allowed (`#923 `__) - [utils] Remove unnecessary code in ``dirsnapshot.py`` (`#930 `__) - [watchmedo] Handle shutdown events from ``SIGHUP`` (`#912 `__) - Thanks to our beloved contributors: @kurtmckee, @babymastodon, @QuantumEnergyE, @timgates42, @BoboTiG --- sysutils/py-watchdog/Makefile | 14 +++++++++----- sysutils/py-watchdog/PLIST | 6 +++++- sysutils/py-watchdog/distinfo | 8 ++++---- 3 files changed, 18 insertions(+), 10 deletions(-) diff --git a/sysutils/py-watchdog/Makefile b/sysutils/py-watchdog/Makefile index d57eb93e9759..e3454ff1300c 100644 --- a/sysutils/py-watchdog/Makefile +++ b/sysutils/py-watchdog/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.15 2022/11/14 17:24:37 wiz Exp $ +# $NetBSD: Makefile,v 1.16 2023/05/05 11:39:41 wiz Exp $ -DISTNAME= watchdog-2.1.9 +DISTNAME= watchdog-3.0.0 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} CATEGORIES= sysutils python MASTER_SITES= ${MASTER_SITE_PYPI:=w/watchdog/} @@ -11,17 +11,21 @@ COMMENT= Filesystem events monitoring LICENSE= apache-2.0 DEPENDS+= ${PYPKGPREFIX}-yaml>=3.10:../../textproc/py-yaml +TEST_DEPENDS+= ${PYPKGPREFIX}-mypy-[0-9]*:../../lang/py-mypy TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov TEST_DEPENDS+= ${PYPKGPREFIX}-test-timeout>=0.3:../../devel/py-test-timeout PYTHON_VERSIONS_INCOMPATIBLE= 27 -# 3 failed, 135 passed, 13 skipped, 20 warnings -PYSETUPTESTTARGET= pytest - USE_PKG_RESOURCES= yes +TEST_ENV+= PYTHONPATH=${WRKSRC}/build/lib +# as of 3.0.0 +# 3 failed, 141 passed, 13 skipped, 20 warnings, 1 error +do-test: + cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} + post-install: cd ${DESTDIR}${PREFIX}/bin && \ ${MV} watchmedo watchmedo-${PYVERSSUFFIX} || ${TRUE} diff --git a/sysutils/py-watchdog/PLIST b/sysutils/py-watchdog/PLIST index fcb506658f11..4a7bd1507141 100644 --- a/sysutils/py-watchdog/PLIST +++ b/sysutils/py-watchdog/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.4 2022/11/14 17:24:37 wiz Exp $ +@comment $NetBSD: PLIST,v 1.5 2023/05/05 11:39:41 wiz Exp $ bin/watchmedo-${PYVERSSUFFIX} ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt @@ -46,6 +46,7 @@ ${PYSITELIB}/watchdog/observers/read_directory_changes.pyo ${PYSITELIB}/watchdog/observers/winapi.py ${PYSITELIB}/watchdog/observers/winapi.pyc ${PYSITELIB}/watchdog/observers/winapi.pyo +${PYSITELIB}/watchdog/py.typed ${PYSITELIB}/watchdog/tricks/__init__.py ${PYSITELIB}/watchdog/tricks/__init__.pyc ${PYSITELIB}/watchdog/tricks/__init__.pyo @@ -64,6 +65,9 @@ ${PYSITELIB}/watchdog/utils/dirsnapshot.pyo ${PYSITELIB}/watchdog/utils/echo.py ${PYSITELIB}/watchdog/utils/echo.pyc ${PYSITELIB}/watchdog/utils/echo.pyo +${PYSITELIB}/watchdog/utils/event_debouncer.py +${PYSITELIB}/watchdog/utils/event_debouncer.pyc +${PYSITELIB}/watchdog/utils/event_debouncer.pyo ${PYSITELIB}/watchdog/utils/patterns.py ${PYSITELIB}/watchdog/utils/patterns.pyc ${PYSITELIB}/watchdog/utils/patterns.pyo diff --git a/sysutils/py-watchdog/distinfo b/sysutils/py-watchdog/distinfo index e2ffd5bd37cd..7cf95d8155e2 100644 --- a/sysutils/py-watchdog/distinfo +++ b/sysutils/py-watchdog/distinfo @@ -1,5 +1,5 @@ -$NetBSD: distinfo,v 1.9 2022/11/14 17:24:37 wiz Exp $ +$NetBSD: distinfo,v 1.10 2023/05/05 11:39:41 wiz Exp $ -BLAKE2s (watchdog-2.1.9.tar.gz) = 4dae6dac7cefa2ddc701867c180bd0b3f9b945258554fb2eb39b9859533b93d9 -SHA512 (watchdog-2.1.9.tar.gz) = 677aa6d066d7fc6b68ed4a78811aeb0340f02133a64e4f4923996dcdbcae99ef7d1acc224604bcbc6f374d1843ac0faf8f8bce797b68d44ed178cf35dfc3e4c7 -Size (watchdog-2.1.9.tar.gz) = 119171 bytes +BLAKE2s (watchdog-3.0.0.tar.gz) = ee9358f8c6cb50cc5d94a233219901bf15de8cbcc4abe3ddd6453708e670abb8 +SHA512 (watchdog-3.0.0.tar.gz) = fa1421b01af99d7fa676c9077b2330ead17c004d9bb9e9edd78d4bbf87cf41624ecd669ca48613d99be2109373bbab4e004b69665d2ca42e082573e4740c13d0 +Size (watchdog-3.0.0.tar.gz) = 124593 bytes