Skip to content

Commit d6f5044

Browse files
committed
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 <https://github.com/gorakhargosh/watchdog/pull/980>`__) - [ci] Lots of improvements - [inotify] Return from ``InotifyEmitter.queue_events()`` if not launched when thread is inactive (`#963 <https://github.com/gorakhargosh/watchdog/pull/963>`__) - [tests] Stability improvements - [utils] Remove handling of ``threading.Event.isSet`` spelling (`#962 <https://github.com/gorakhargosh/watchdog/pull/962>`__) - [watchmedo] Fixed tricks YAML generation (`#965 <https://github.com/gorakhargosh/watchdog/pull/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 <https://github.com/gorakhargosh/watchdog/pull/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 <https://github.com/gorakhargosh/watchdog/pull/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 <https://github.com/gorakhargosh/watchdog/pull/941>`__) - [watchmedo] Add optional event debouncing for ``auto-restart``, only restarting once if many events happen in quick succession (``--debounce-interval``) (`#940 <https://github.com/gorakhargosh/watchdog/pull/940>`__) - [watchmedo] Exit gracefully on ``KeyboardInterrupt`` exception (Ctrl+C) (`#945 <https://github.com/gorakhargosh/watchdog/pull/945>`__) - [watchmedo] Add option to not auto-restart the command after it exits (``--no-restart-on-command-exit``) (`#946 <https://github.com/gorakhargosh/watchdog/pull/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 <https://github.com/gorakhargosh/watchdog/pull/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 <https://github.com/gorakhargosh/watchdog/pull/935>`__) - Thanks to our beloved contributors: @BoboTiG, @simon04, @piotrpdev 2.2.0 ~~~~~ - [build] Wheels are now available for Python 3.11 (`#932 <https://github.com/gorakhargosh/watchdog/pull/932>`__) - [documentation] HTML documentation builds are now tested for errors (`#902 <https://github.com/gorakhargosh/watchdog/pull/902>`__) - [documentation] Fix typos here, and there (`#910 <https://github.com/gorakhargosh/watchdog/pull/910>`__) - [fsevents2] The ``fsevents2`` observer is now deprecated (`#909 <https://github.com/gorakhargosh/watchdog/pull/909>`__) - [tests] The error message returned by musl libc for error code ``-1`` is now allowed (`#923 <https://github.com/gorakhargosh/watchdog/pull/923>`__) - [utils] Remove unnecessary code in ``dirsnapshot.py`` (`#930 <https://github.com/gorakhargosh/watchdog/pull/930>`__) - [watchmedo] Handle shutdown events from ``SIGHUP`` (`#912 <https://github.com/gorakhargosh/watchdog/pull/912>`__) - Thanks to our beloved contributors: @kurtmckee, @babymastodon, @QuantumEnergyE, @timgates42, @BoboTiG
1 parent a16af40 commit d6f5044

3 files changed

Lines changed: 18 additions & 10 deletions

File tree

‎sysutils/py-watchdog/Makefile‎

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# $NetBSD: Makefile,v 1.15 2022/11/14 17:24:37 wiz Exp $
1+
# $NetBSD: Makefile,v 1.16 2023/05/05 11:39:41 wiz Exp $
22

3-
DISTNAME= watchdog-2.1.9
3+
DISTNAME= watchdog-3.0.0
44
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
55
CATEGORIES= sysutils python
66
MASTER_SITES= ${MASTER_SITE_PYPI:=w/watchdog/}
@@ -11,17 +11,21 @@ COMMENT= Filesystem events monitoring
1111
LICENSE= apache-2.0
1212

1313
DEPENDS+= ${PYPKGPREFIX}-yaml>=3.10:../../textproc/py-yaml
14+
TEST_DEPENDS+= ${PYPKGPREFIX}-mypy-[0-9]*:../../lang/py-mypy
1415
TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
1516
TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov
1617
TEST_DEPENDS+= ${PYPKGPREFIX}-test-timeout>=0.3:../../devel/py-test-timeout
1718

1819
PYTHON_VERSIONS_INCOMPATIBLE= 27
1920

20-
# 3 failed, 135 passed, 13 skipped, 20 warnings
21-
PYSETUPTESTTARGET= pytest
22-
2321
USE_PKG_RESOURCES= yes
2422

23+
TEST_ENV+= PYTHONPATH=${WRKSRC}/build/lib
24+
# as of 3.0.0
25+
# 3 failed, 141 passed, 13 skipped, 20 warnings, 1 error
26+
do-test:
27+
cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX}
28+
2529
post-install:
2630
cd ${DESTDIR}${PREFIX}/bin && \
2731
${MV} watchmedo watchmedo-${PYVERSSUFFIX} || ${TRUE}

‎sysutils/py-watchdog/PLIST‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@comment $NetBSD: PLIST,v 1.4 2022/11/14 17:24:37 wiz Exp $
1+
@comment $NetBSD: PLIST,v 1.5 2023/05/05 11:39:41 wiz Exp $
22
bin/watchmedo-${PYVERSSUFFIX}
33
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
44
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
@@ -46,6 +46,7 @@ ${PYSITELIB}/watchdog/observers/read_directory_changes.pyo
4646
${PYSITELIB}/watchdog/observers/winapi.py
4747
${PYSITELIB}/watchdog/observers/winapi.pyc
4848
${PYSITELIB}/watchdog/observers/winapi.pyo
49+
${PYSITELIB}/watchdog/py.typed
4950
${PYSITELIB}/watchdog/tricks/__init__.py
5051
${PYSITELIB}/watchdog/tricks/__init__.pyc
5152
${PYSITELIB}/watchdog/tricks/__init__.pyo
@@ -64,6 +65,9 @@ ${PYSITELIB}/watchdog/utils/dirsnapshot.pyo
6465
${PYSITELIB}/watchdog/utils/echo.py
6566
${PYSITELIB}/watchdog/utils/echo.pyc
6667
${PYSITELIB}/watchdog/utils/echo.pyo
68+
${PYSITELIB}/watchdog/utils/event_debouncer.py
69+
${PYSITELIB}/watchdog/utils/event_debouncer.pyc
70+
${PYSITELIB}/watchdog/utils/event_debouncer.pyo
6771
${PYSITELIB}/watchdog/utils/patterns.py
6872
${PYSITELIB}/watchdog/utils/patterns.pyc
6973
${PYSITELIB}/watchdog/utils/patterns.pyo

‎sysutils/py-watchdog/distinfo‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
$NetBSD: distinfo,v 1.9 2022/11/14 17:24:37 wiz Exp $
1+
$NetBSD: distinfo,v 1.10 2023/05/05 11:39:41 wiz Exp $
22

3-
BLAKE2s (watchdog-2.1.9.tar.gz) = 4dae6dac7cefa2ddc701867c180bd0b3f9b945258554fb2eb39b9859533b93d9
4-
SHA512 (watchdog-2.1.9.tar.gz) = 677aa6d066d7fc6b68ed4a78811aeb0340f02133a64e4f4923996dcdbcae99ef7d1acc224604bcbc6f374d1843ac0faf8f8bce797b68d44ed178cf35dfc3e4c7
5-
Size (watchdog-2.1.9.tar.gz) = 119171 bytes
3+
BLAKE2s (watchdog-3.0.0.tar.gz) = ee9358f8c6cb50cc5d94a233219901bf15de8cbcc4abe3ddd6453708e670abb8
4+
SHA512 (watchdog-3.0.0.tar.gz) = fa1421b01af99d7fa676c9077b2330ead17c004d9bb9e9edd78d4bbf87cf41624ecd669ca48613d99be2109373bbab4e004b69665d2ca42e082573e4740c13d0
5+
Size (watchdog-3.0.0.tar.gz) = 124593 bytes

0 commit comments

Comments
 (0)