From 80576b4124dc0892a393365754ffe4e1521e3427 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Schoentgen?= Date: Wed, 14 Aug 2024 15:53:18 +0200 Subject: [PATCH] docs: clean-up headers to ease maintenance + add funding --- .github/FUNDING.yml | 2 + COPYING | 6 ++- README.rst | 7 +-- docs/source/conf.py | 2 +- docs/source/global.rst.inc | 6 +-- setup.py | 19 +------- src/watchdog/__init__.py | 14 ------ src/watchdog/events.py | 15 ------- src/watchdog/observers/__init__.py | 17 +------ src/watchdog/observers/api.py | 15 ------- src/watchdog/observers/fsevents.py | 15 ------- src/watchdog/observers/fsevents2.py | 16 +------ src/watchdog/observers/inotify.py | 16 +------ src/watchdog/observers/inotify_buffer.py | 19 +++----- src/watchdog/observers/inotify_c.py | 15 ------- src/watchdog/observers/kqueue.py | 15 ------- src/watchdog/observers/polling.py | 16 ------- .../observers/read_directory_changes.py | 16 ------- src/watchdog/observers/winapi.py | 45 +++++-------------- src/watchdog/tricks/__init__.py | 15 ------- src/watchdog/utils/__init__.py | 16 ------- src/watchdog/utils/bricks.py | 16 ------- src/watchdog/utils/delayed_queue.py | 17 ++----- src/watchdog/utils/dirsnapshot.py | 16 ------- src/watchdog/utils/patterns.py | 11 ++--- src/watchdog/utils/platform.py | 15 ------- src/watchdog/version.py | 16 ------- src/watchdog/watchmedo.py | 22 ++------- src/watchdog_fsevents.c | 19 ++------ tests/__init__.py | 13 ------ tests/shell.py | 16 +------ tests/test_delayed_queue.py | 14 ------ tests/test_emitter.py | 14 ------ tests/test_events.py | 15 ------- tests/test_inotify_buffer.py | 14 ------ tests/test_logging_event_handler.py | 15 ------- tests/test_observer.py | 14 ------ tests/test_observers_api.py | 15 ------- tests/test_observers_polling.py | 16 ------- tests/test_observers_winapi.py | 15 ------- tests/test_pattern_matching_event_handler.py | 15 ------- tests/test_patterns.py | 3 -- tests/test_regex_matching_event_handler.py | 15 ------- tests/test_skip_repeats_queue.py | 15 ------- tests/test_snapshot_diff.py | 14 ------ tools/watchmedo.bat | 7 +-- 46 files changed, 59 insertions(+), 610 deletions(-) create mode 100644 .github/FUNDING.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 000000000..9994e91e2 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,2 @@ +github: [BoboTiG] +polar: tiger-222 diff --git a/COPYING b/COPYING index 8eedbe987..b84e0b3c8 100644 --- a/COPYING +++ b/COPYING @@ -1,5 +1,7 @@ -Copyright 2011 Yesudeep Mangalapilly -Copyright 2012 Google, Inc & contributors. +Copyright 2018-2024 Mickaël Schoentgen & contributors +Copyright 2014-2018 Thomas Amland & contributors +Copyright 2012-2014 Google, Inc. +Copyright 2011-2012 Yesudeep Mangalapilly Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/README.rst b/README.rst index 41656cdfb..bde7f0eb5 100755 --- a/README.rst +++ b/README.rst @@ -220,9 +220,10 @@ Licensing Watchdog is licensed under the terms of the `Apache License, version 2.0`_. -Copyright 2011 `Yesudeep Mangalapilly`_. - -Copyright 2012 Google, Inc & contributors. +- Copyright 2018-2024 Mickaël Schoentgen & contributors +- Copyright 2014-2018 Thomas Amland & contributors +- Copyright 2012-2014 Google, Inc. +- Copyright 2011-2012 Yesudeep Mangalapilly Project `source code`_ is available at Github. Please report bugs and file enhancement requests at the `issue tracker`_. diff --git a/docs/source/conf.py b/docs/source/conf.py index 86e5424f6..dbbd661c6 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -22,7 +22,7 @@ import watchdog.version # noqa: E402 PROJECT_NAME = "watchdog" -AUTHOR_NAME = "Yesudeep Mangalapilly and contributors" +AUTHOR_NAME = "Yesudeep Mangalapilly, Mickaël Schoentgen, and contributors" COPYRIGHT = f"2010-2024, {AUTHOR_NAME}" diff --git a/docs/source/global.rst.inc b/docs/source/global.rst.inc index 4cfeaa422..8368734d0 100644 --- a/docs/source/global.rst.inc +++ b/docs/source/global.rst.inc @@ -1,8 +1,8 @@ .. Global includes, substitutions, and common links. -.. |author_name| replace:: Yesudeep Mangalapilly -.. |author_email| replace:: yesudeep@gmail.com -.. |copyright| replace:: Copyright 2012-2024 Google, Inc & contributors. +.. |author_name| replace:: Mickaël Schoentgen +.. |author_email| replace:: contact@tiger-222.fr +.. |copyright| replace:: Copyright 2011-2024 Yesudeep Mangalapilly, Mickaël Schoentgen & contributors. .. |project_name| replace:: ``watchdog`` .. |project_version| replace:: 5.0.0 diff --git a/setup.py b/setup.py index 923cd532e..b0392d0fb 100644 --- a/setup.py +++ b/setup.py @@ -1,18 +1,3 @@ -# Copyright 2011 Yesudeep Mangalapilly -# Copyright 2012 Google, Inc & contributors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - import importlib.util import sys import os @@ -91,8 +76,8 @@ description="Filesystem events monitoring", long_description=readme + "\n\n" + changelog, long_description_content_type="text/x-rst", - author="Yesudeep Mangalapilly", - author_email="yesudeep@gmail.com", + author="Mickaël Schoentgen", + author_email="contact@tiger-222.fr", license="Apache-2.0", url="https://github.com/gorakhargosh/watchdog", keywords=" ".join( diff --git a/src/watchdog/__init__.py b/src/watchdog/__init__.py index 1bcc1c930..e69de29bb 100644 --- a/src/watchdog/__init__.py +++ b/src/watchdog/__init__.py @@ -1,14 +0,0 @@ -# Copyright 2011 Yesudeep Mangalapilly -# Copyright 2012 Google, Inc & contributors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. diff --git a/src/watchdog/events.py b/src/watchdog/events.py index a7d6d31fb..3beff35b8 100644 --- a/src/watchdog/events.py +++ b/src/watchdog/events.py @@ -1,18 +1,3 @@ -# Copyright 2011 Yesudeep Mangalapilly -# Copyright 2012 Google, Inc & contributors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - """:module: watchdog.events :synopsis: File system events and event handlers. :author: yesudeep@google.com (Yesudeep Mangalapilly) diff --git a/src/watchdog/observers/__init__.py b/src/watchdog/observers/__init__.py index fb4e55d84..e67af022a 100644 --- a/src/watchdog/observers/__init__.py +++ b/src/watchdog/observers/__init__.py @@ -1,18 +1,3 @@ -# Copyright 2011 Yesudeep Mangalapilly -# Copyright 2012 Google, Inc & contributors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - """:module: watchdog.observers :synopsis: Observer that picks a native implementation if available. :author: yesudeep@google.com (Yesudeep Mangalapilly) @@ -37,7 +22,7 @@ |Inotify| Linux 2.6.13+ ``inotify(7)`` based observer |FSEvents| macOS FSEvents based observer |Kqueue| macOS and BSD with kqueue(2) ``kqueue(2)`` based observer -|WinApi| MS Windows Windows API-based observer +|WinApi| Microsoft Windows Windows API-based observer |Polling| Any fallback implementation ============== ================================ ============================== diff --git a/src/watchdog/observers/api.py b/src/watchdog/observers/api.py index 7bb5e52a3..07befce5f 100644 --- a/src/watchdog/observers/api.py +++ b/src/watchdog/observers/api.py @@ -1,18 +1,3 @@ -# Copyright 2011 Yesudeep Mangalapilly -# Copyright 2012 Google, Inc & contributors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - from __future__ import annotations import contextlib diff --git a/src/watchdog/observers/fsevents.py b/src/watchdog/observers/fsevents.py index 5aad87839..e09c6851b 100644 --- a/src/watchdog/observers/fsevents.py +++ b/src/watchdog/observers/fsevents.py @@ -1,18 +1,3 @@ -# Copyright 2011 Yesudeep Mangalapilly -# Copyright 2012 Google, Inc & contributors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - """:module: watchdog.observers.fsevents :synopsis: FSEvents based emitter implementation. :author: yesudeep@google.com (Yesudeep Mangalapilly) diff --git a/src/watchdog/observers/fsevents2.py b/src/watchdog/observers/fsevents2.py index 72f986d2a..cd9db1bcf 100644 --- a/src/watchdog/observers/fsevents2.py +++ b/src/watchdog/observers/fsevents2.py @@ -1,19 +1,7 @@ -# Copyright 2014 Thomas Amland -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - """:module: watchdog.observers.fsevents2 :synopsis: FSEvents based emitter implementation. +:author: thomas.amland@gmail.com (Thomas Amland) +:author: contact@tiger-222.fr (Mickaël Schoentgen) :platforms: macOS """ diff --git a/src/watchdog/observers/inotify.py b/src/watchdog/observers/inotify.py index b2b908dc0..6627a6c1c 100644 --- a/src/watchdog/observers/inotify.py +++ b/src/watchdog/observers/inotify.py @@ -1,24 +1,10 @@ -# Copyright 2011 Yesudeep Mangalapilly -# Copyright 2012 Google, Inc & contributors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - """:module: watchdog.observers.inotify :synopsis: ``inotify(7)`` based emitter implementation. :author: Sebastien Martini :author: Luke McCarthy :author: yesudeep@google.com (Yesudeep Mangalapilly) :author: Tim Cuthbertson +:author: contact@tiger-222.fr (Mickaël Schoentgen) :platforms: Linux 2.6.13+. .. ADMONITION:: About system requirements diff --git a/src/watchdog/observers/inotify_buffer.py b/src/watchdog/observers/inotify_buffer.py index 07a346137..f542974a0 100644 --- a/src/watchdog/observers/inotify_buffer.py +++ b/src/watchdog/observers/inotify_buffer.py @@ -1,16 +1,9 @@ -# Copyright 2014 Thomas Amland -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +""":module: watchdog.observers.inotify_buffer +:synopsis: A wrapper for ``Inotify``. +:author: thomas.amland@gmail.com (Thomas Amland) +:author: contact@tiger-222.fr (Mickaël Schoentgen) +:platforms: linux +""" from __future__ import annotations diff --git a/src/watchdog/observers/inotify_c.py b/src/watchdog/observers/inotify_c.py index b5cecba5e..d6765e14c 100644 --- a/src/watchdog/observers/inotify_c.py +++ b/src/watchdog/observers/inotify_c.py @@ -1,18 +1,3 @@ -# Copyright 2011 Yesudeep Mangalapilly -# Copyright 2012 Google, Inc & contributors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - from __future__ import annotations import contextlib diff --git a/src/watchdog/observers/kqueue.py b/src/watchdog/observers/kqueue.py index 5765f626e..1a99b8cb4 100644 --- a/src/watchdog/observers/kqueue.py +++ b/src/watchdog/observers/kqueue.py @@ -1,18 +1,3 @@ -# Copyright 2011 Yesudeep Mangalapilly -# Copyright 2012 Google, Inc & contributors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - """:module: watchdog.observers.kqueue :synopsis: ``kqueue(2)`` based emitter implementation. :author: yesudeep@google.com (Yesudeep Mangalapilly) diff --git a/src/watchdog/observers/polling.py b/src/watchdog/observers/polling.py index 9817783c5..1f4e9cb05 100644 --- a/src/watchdog/observers/polling.py +++ b/src/watchdog/observers/polling.py @@ -1,19 +1,3 @@ -# Copyright 2011 Yesudeep Mangalapilly -# Copyright 2012 Google, Inc & contributors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - - """:module: watchdog.observers.polling :synopsis: Polling emitter implementation. :author: yesudeep@google.com (Yesudeep Mangalapilly) diff --git a/src/watchdog/observers/read_directory_changes.py b/src/watchdog/observers/read_directory_changes.py index 3701e15f0..84d87f41f 100644 --- a/src/watchdog/observers/read_directory_changes.py +++ b/src/watchdog/observers/read_directory_changes.py @@ -1,19 +1,3 @@ -# Copyright 2011 Yesudeep Mangalapilly -# Copyright 2012 Google, Inc & contributors. -# Copyright 2014 Thomas Amland -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - from __future__ import annotations import os.path diff --git a/src/watchdog/observers/winapi.py b/src/watchdog/observers/winapi.py index 5a7805882..d39b28705 100644 --- a/src/watchdog/observers/winapi.py +++ b/src/watchdog/observers/winapi.py @@ -1,38 +1,13 @@ -# winapi.py: Windows API-Python interface (removes dependency on pywin32) -# -# Copyright (C) 2007 Thomas Heller -# Copyright (C) 2010 Will McGugan -# Copyright (C) 2010 Ryan Kelly -# Copyright (C) 2010 Yesudeep Mangalapilly -# Copyright (C) 2014 Thomas Amland -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# * Redistributions of source code must retain the above copyright notice, this -# list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and / or other materials provided with the distribution. -# * Neither the name of the organization nor the names of its contributors may -# be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# -# Portions of this code were taken from pyfilesystem, which uses the above -# new BSD license. +""":module: watchdog.observers.winapi +:synopsis: Windows API-Python interface (removes dependency on ``pywin32``). +:author: theller@ctypes.org (Thomas Heller) +:author: will@willmcgugan.com (Will McGugan) +:author: ryan@rfk.id.au (Ryan Kelly) +:author: yesudeep@gmail.com (Yesudeep Mangalapilly) +:author: thomas.amland@gmail.com (Thomas Amland) +:author: contact@tiger-222.fr (Mickaël Schoentgen) +:platforms: windows +""" from __future__ import annotations diff --git a/src/watchdog/tricks/__init__.py b/src/watchdog/tricks/__init__.py index 48ad5a8f6..cbec37ed7 100644 --- a/src/watchdog/tricks/__init__.py +++ b/src/watchdog/tricks/__init__.py @@ -1,18 +1,3 @@ -# Copyright 2011 Yesudeep Mangalapilly -# Copyright 2012 Google, Inc & contributors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - """:module: watchdog.tricks :synopsis: Utility event handlers. :author: yesudeep@google.com (Yesudeep Mangalapilly) diff --git a/src/watchdog/utils/__init__.py b/src/watchdog/utils/__init__.py index 48712d38b..18d493eeb 100644 --- a/src/watchdog/utils/__init__.py +++ b/src/watchdog/utils/__init__.py @@ -1,19 +1,3 @@ -# Copyright 2011 Yesudeep Mangalapilly -# Copyright 2012 Google, Inc & contributors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - - """:module: watchdog.utils :synopsis: Utility classes and functions. :author: yesudeep@google.com (Yesudeep Mangalapilly) diff --git a/src/watchdog/utils/bricks.py b/src/watchdog/utils/bricks.py index b540948b5..8dd0afa7a 100644 --- a/src/watchdog/utils/bricks.py +++ b/src/watchdog/utils/bricks.py @@ -1,19 +1,3 @@ -# Copyright 2011 Yesudeep Mangalapilly -# Copyright 2012 Google, Inc & contributors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - - """Utility collections or "bricks". :module: watchdog.utils.bricks diff --git a/src/watchdog/utils/delayed_queue.py b/src/watchdog/utils/delayed_queue.py index fc7dca0bd..e85fa6348 100644 --- a/src/watchdog/utils/delayed_queue.py +++ b/src/watchdog/utils/delayed_queue.py @@ -1,16 +1,7 @@ -# Copyright 2014 Thomas Amland -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +""":module: watchdog.utils.delayed_queue +:author: thomas.amland@gmail.com (Thomas Amland) +:author: contact@tiger-222.fr (Mickaël Schoentgen) +""" from __future__ import annotations diff --git a/src/watchdog/utils/dirsnapshot.py b/src/watchdog/utils/dirsnapshot.py index cda2f247a..ff69b0b35 100644 --- a/src/watchdog/utils/dirsnapshot.py +++ b/src/watchdog/utils/dirsnapshot.py @@ -1,19 +1,3 @@ -# Copyright 2011 Yesudeep Mangalapilly -# Copyright 2012 Google, Inc & contributors. -# Copyright 2014 Thomas Amland -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - """:module: watchdog.utils.dirsnapshot :synopsis: Directory snapshots and comparison. :author: yesudeep@google.com (Yesudeep Mangalapilly) diff --git a/src/watchdog/utils/patterns.py b/src/watchdog/utils/patterns.py index f14f26287..95b479ae6 100644 --- a/src/watchdog/utils/patterns.py +++ b/src/watchdog/utils/patterns.py @@ -1,8 +1,9 @@ -# patterns.py: Common wildcard searching/filtering functionality for files. -# -# Copyright (C) 2010 Yesudeep Mangalapilly -# -# Written by Boris Staletic +""":module: watchdog.utils.patterns +:synopsis: Common wildcard searching/filtering functionality for files. +:author: boris.staletic@gmail.com (Boris Staletic) +:author: yesudeep@gmail.com (Yesudeep Mangalapilly) +:author: contact@tiger-222.fr (Mickaël Schoentgen) +""" from __future__ import annotations diff --git a/src/watchdog/utils/platform.py b/src/watchdog/utils/platform.py index 9d8ed576a..3c11d152c 100644 --- a/src/watchdog/utils/platform.py +++ b/src/watchdog/utils/platform.py @@ -1,18 +1,3 @@ -# Copyright 2011 Yesudeep Mangalapilly -# Copyright 2012 Google, Inc & contributors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - from __future__ import annotations import sys diff --git a/src/watchdog/version.py b/src/watchdog/version.py index d1792b2db..1400d276d 100644 --- a/src/watchdog/version.py +++ b/src/watchdog/version.py @@ -1,19 +1,3 @@ -# Copyright 2011 Yesudeep Mangalapilly -# Copyright 2012 Google, Inc & contributors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - - from __future__ import annotations # When updating this version number, please update the diff --git a/src/watchdog/watchmedo.py b/src/watchdog/watchmedo.py index e095a88ad..3f99786be 100644 --- a/src/watchdog/watchmedo.py +++ b/src/watchdog/watchmedo.py @@ -1,19 +1,3 @@ -# -# Copyright 2011 Yesudeep Mangalapilly -# Copyright 2012 Google, Inc & contributors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - """:module: watchdog.watchmedo :author: yesudeep@google.com (Yesudeep Mangalapilly) :author: contact@tiger-222.fr (Mickaël Schoentgen) @@ -71,8 +55,10 @@ def _split_lines(self, text: str, width: int) -> list[str]: epilog = """\ -Copyright 2011 Yesudeep Mangalapilly . -Copyright 2012 Google, Inc & contributors. +Copyright 2018-2024 Mickaël Schoentgen & contributors +Copyright 2014-2018 Thomas Amland & contributors +Copyright 2012-2014 Google, Inc. +Copyright 2011-2012 Yesudeep Mangalapilly Licensed under the terms of the Apache license, version 2.0. Please see LICENSE in the source code for more information.""" diff --git a/src/watchdog_fsevents.c b/src/watchdog_fsevents.c index 5b1888458..96a0350f8 100644 --- a/src/watchdog_fsevents.c +++ b/src/watchdog_fsevents.c @@ -1,21 +1,10 @@ /** * watchdog_fsevents.c: Python-C bridge to the OS X FSEvents API. * - * Copyright 2010 Malthe Borch - * Copyright 2011 Yesudeep Mangalapilly - * Copyright 2012 Google, Inc & contributors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Copyright 2018-2024 Mickaël Schoentgen & contributors + * Copyright 2012-2018 Google, Inc. + * Copyright 2011-2012 Yesudeep Mangalapilly + * Copyright 2010-2011 Malthe Borch */ diff --git a/tests/__init__.py b/tests/__init__.py index f9df739a8..e69de29bb 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,13 +0,0 @@ -# Copyright 2014 Thomas Amland -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. diff --git a/tests/shell.py b/tests/shell.py index 34cc1e8d4..1ce864a88 100644 --- a/tests/shell.py +++ b/tests/shell.py @@ -1,22 +1,8 @@ -# Copyright 2011 Yesudeep Mangalapilly -# Copyright 2012 Google, Inc & contributors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - """ :module: tests.shell :synopsis: Common shell operations for testing. :author: yesudeep@google.com (Yesudeep Mangalapilly) +:author: contact@tiger-222.fr (Mickaël Schoentgen) """ from __future__ import annotations diff --git a/tests/test_delayed_queue.py b/tests/test_delayed_queue.py index 7f8e0a16e..c5c22df9c 100644 --- a/tests/test_delayed_queue.py +++ b/tests/test_delayed_queue.py @@ -1,17 +1,3 @@ -# Copyright 2014 Thomas Amland -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - from __future__ import annotations from time import time diff --git a/tests/test_emitter.py b/tests/test_emitter.py index 85c31fa65..cd91f2114 100644 --- a/tests/test_emitter.py +++ b/tests/test_emitter.py @@ -1,17 +1,3 @@ -# Copyright 2014 Thomas Amland -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - from __future__ import annotations import logging diff --git a/tests/test_events.py b/tests/test_events.py index 811fe9b48..8d0b50995 100644 --- a/tests/test_events.py +++ b/tests/test_events.py @@ -1,18 +1,3 @@ -# Copyright 2011 Yesudeep Mangalapilly -# Copyright 2012 Google, Inc & contributors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - from __future__ import annotations from watchdog.events import ( diff --git a/tests/test_inotify_buffer.py b/tests/test_inotify_buffer.py index 9a8a650e5..d4c2da7d9 100644 --- a/tests/test_inotify_buffer.py +++ b/tests/test_inotify_buffer.py @@ -1,17 +1,3 @@ -# Copyright 2014 Thomas Amland -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - from __future__ import annotations import pytest diff --git a/tests/test_logging_event_handler.py b/tests/test_logging_event_handler.py index 81a8557cb..6d608215b 100644 --- a/tests/test_logging_event_handler.py +++ b/tests/test_logging_event_handler.py @@ -1,18 +1,3 @@ -# Copyright 2011 Yesudeep Mangalapilly -# Copyright 2012 Google, Inc & contributors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - from __future__ import annotations from watchdog.events import ( diff --git a/tests/test_observer.py b/tests/test_observer.py index 8ac4ff09f..3d6a2cda4 100644 --- a/tests/test_observer.py +++ b/tests/test_observer.py @@ -1,17 +1,3 @@ -# Copyright 2014 Thomas Amland -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - from __future__ import annotations import contextlib diff --git a/tests/test_observers_api.py b/tests/test_observers_api.py index 9bdd55370..b678e0790 100644 --- a/tests/test_observers_api.py +++ b/tests/test_observers_api.py @@ -1,18 +1,3 @@ -# Copyright 2011 Yesudeep Mangalapilly -# Copyright 2012 Google, Inc & contributors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - from __future__ import annotations import time diff --git a/tests/test_observers_polling.py b/tests/test_observers_polling.py index cf782477d..a51b7b2ed 100644 --- a/tests/test_observers_polling.py +++ b/tests/test_observers_polling.py @@ -1,19 +1,3 @@ -# Copyright 2011 Yesudeep Mangalapilly -# Copyright 2012 Google, Inc & contributors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - - from __future__ import annotations import os diff --git a/tests/test_observers_winapi.py b/tests/test_observers_winapi.py index ed677ac53..3b7027df9 100644 --- a/tests/test_observers_winapi.py +++ b/tests/test_observers_winapi.py @@ -1,18 +1,3 @@ -# Copyright 2011 Yesudeep Mangalapilly -# Copyright 2012 Google, Inc & contributors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - from __future__ import annotations import os diff --git a/tests/test_pattern_matching_event_handler.py b/tests/test_pattern_matching_event_handler.py index c5f9aedf9..270a436a2 100644 --- a/tests/test_pattern_matching_event_handler.py +++ b/tests/test_pattern_matching_event_handler.py @@ -1,18 +1,3 @@ -# Copyright 2011 Yesudeep Mangalapilly -# Copyright 2012 Google, Inc & contributors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - from __future__ import annotations from watchdog.events import ( diff --git a/tests/test_patterns.py b/tests/test_patterns.py index 0bd649dad..b66e89c7d 100644 --- a/tests/test_patterns.py +++ b/tests/test_patterns.py @@ -1,6 +1,3 @@ -# Copyright (C) 2010 Yesudeep Mangalapilly -# Copyright 2020 Boris Staletic - from __future__ import annotations import pytest diff --git a/tests/test_regex_matching_event_handler.py b/tests/test_regex_matching_event_handler.py index 84e7bd3cd..8b63354a2 100644 --- a/tests/test_regex_matching_event_handler.py +++ b/tests/test_regex_matching_event_handler.py @@ -1,18 +1,3 @@ -# Copyright 2011 Yesudeep Mangalapilly -# Copyright 2012 Google, Inc & contributors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - from __future__ import annotations from watchdog.events import ( diff --git a/tests/test_skip_repeats_queue.py b/tests/test_skip_repeats_queue.py index cb6862ea4..01a56a3de 100644 --- a/tests/test_skip_repeats_queue.py +++ b/tests/test_skip_repeats_queue.py @@ -1,18 +1,3 @@ -# Copyright 2011 Yesudeep Mangalapilly -# Copyright 2012 Google, Inc & contributors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - from __future__ import annotations import pytest diff --git a/tests/test_snapshot_diff.py b/tests/test_snapshot_diff.py index 4059f88f2..bd69b264f 100644 --- a/tests/test_snapshot_diff.py +++ b/tests/test_snapshot_diff.py @@ -1,17 +1,3 @@ -# Copyright 2014 Thomas Amland -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - from __future__ import annotations import errno diff --git a/tools/watchmedo.bat b/tools/watchmedo.bat index 7818e7d02..e8d3fd8e4 100644 --- a/tools/watchmedo.bat +++ b/tools/watchmedo.bat @@ -1,6 +1,7 @@ -@REM Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation -@REM Copyright 2011 Yesudeep Mangalapilly -@REM Copyright 2012 Google, Inc & contributors. +@REM Copyright 2018-2024 Mickaël Schoentgen & contributors +@REM Copyright 2012-2018 Google, Inc. +@REM Copyright 2011-2012 Yesudeep Mangalapilly +@REM Copyright 2001-2010 The SCons Foundation @REM watchmedo.bat - Wrapper .bat file for the watchmedo Python script. @echo off