Skip to content

Commit

Permalink
py-watchdog: update to 3.0.0.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
wiz committed May 5, 2023
1 parent a16af40 commit d6f5044
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
14 changes: 9 additions & 5 deletions 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/}
Expand All @@ -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}
Expand Down
6 changes: 5 additions & 1 deletion 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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions 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

0 comments on commit d6f5044

Please sign in to comment.