Hello community,

here is the log from the commit of package python-watchdog for openSUSE:Factory 
checked in at 2020-07-24 10:00:11
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-watchdog (Old)
 and      /work/SRC/openSUSE:Factory/.python-watchdog.new.3592 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-watchdog"

Fri Jul 24 10:00:11 2020 rev:9 rq:822237 version:0.10.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-watchdog/python-watchdog.changes  
2020-06-04 17:57:13.769150746 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-watchdog.new.3592/python-watchdog.changes    
    2020-07-24 10:02:32.997787935 +0200
@@ -1,0 +2,8 @@
+Wed Jul 22 10:26:11 UTC 2020 - Marketa Calabkova <mcalabk...@suse.com>
+
+- Update to 0.10.3
+  * Ensure ``ObservedWatch.path`` is a string 
+  * [inotify] Allow to monitor single file 
+  * [inotify] Prevent raising an exception when a file in a monitored folder 
has no permissions 
+
+-------------------------------------------------------------------

Old:
----
  watchdog-0.10.2.tar.gz

New:
----
  watchdog-0.10.3.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-watchdog.spec ++++++
--- /var/tmp/diff_new_pack.0Lk8eN/_old  2020-07-24 10:02:37.153791804 +0200
+++ /var/tmp/diff_new_pack.0Lk8eN/_new  2020-07-24 10:02:37.153791804 +0200
@@ -18,21 +18,21 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-watchdog
-Version:        0.10.2
+Version:        0.10.3
 Release:        0
 Summary:        Filesystem events monitoring
 License:        Apache-2.0
 URL:            https://github.com/gorakhargosh/watchdog
 Source:         
https://files.pythonhosted.org/packages/source/w/watchdog/watchdog-%{version}.tar.gz
 BuildRequires:  %{python_module pathtools >= 0.1.1}
-BuildRequires:  %{python_module pytest-timeout >= 0.3}
+BuildRequires:  %{python_module pytest-timeout}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 BuildRequires:  python3-Sphinx
-Requires:       python-PyYAML
-Requires:       python-argh
+Requires:       python-PyYAML >= 3.10
+Requires:       python-argh >= 0.24.1
 Requires:       python-pathtools >= 0.1.1
 Requires(post): update-alternatives
 Requires(postun): update-alternatives

++++++ watchdog-0.10.2.tar.gz -> watchdog-0.10.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/watchdog-0.10.2/PKG-INFO new/watchdog-0.10.3/PKG-INFO
--- old/watchdog-0.10.2/PKG-INFO        2020-02-09 00:16:38.703685300 +0100
+++ new/watchdog-0.10.3/PKG-INFO        2020-06-25 22:33:59.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: watchdog
-Version: 0.10.2
+Version: 0.10.3
 Summary: Filesystem events monitoring
 Home-page: http://github.com/gorakhargosh/watchdog
 Author: Yesudeep Mangalapilly
@@ -304,6 +304,17 @@
         Changelog
         ---------
         
+        0.10.3
+        ~~~~~~
+        
+        2020-0x-xx • `full history 
<https://github.com/gorakhargosh/watchdog/compare/v0.10.2...master>`__
+        
+        - Ensure ``ObservedWatch.path`` is a string (`#651 
<https://github.com/gorakhargosh/watchdog/pull/651>`_)
+        - [inotify] Allow to monitor single file (`#655 
<https://github.com/gorakhargosh/watchdog/pull/655>`__)
+        - [inotify] Prevent raising an exception when a file in a monitored 
folder has no permissions (`#669 
<https://github.com/gorakhargosh/watchdog/pull/669>`__, `#670 
<https://github.com/gorakhargosh/watchdog/pull/670>`__)
+        - Thanks to our beloved contributors: @brant-ruan, @rec, @andfoy, 
@BoboTiG
+        
+        
         0.10.2
         ~~~~~~
         
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/watchdog-0.10.2/changelog.rst 
new/watchdog-0.10.3/changelog.rst
--- old/watchdog-0.10.2/changelog.rst   2020-02-09 00:12:18.000000000 +0100
+++ new/watchdog-0.10.3/changelog.rst   2020-06-25 22:30:27.000000000 +0200
@@ -3,6 +3,17 @@
 Changelog
 ---------
 
+0.10.3
+~~~~~~
+
+2020-0x-xx • `full history 
<https://github.com/gorakhargosh/watchdog/compare/v0.10.2...master>`__
+
+- Ensure ``ObservedWatch.path`` is a string (`#651 
<https://github.com/gorakhargosh/watchdog/pull/651>`_)
+- [inotify] Allow to monitor single file (`#655 
<https://github.com/gorakhargosh/watchdog/pull/655>`__)
+- [inotify] Prevent raising an exception when a file in a monitored folder has 
no permissions (`#669 <https://github.com/gorakhargosh/watchdog/pull/669>`__, 
`#670 <https://github.com/gorakhargosh/watchdog/pull/670>`__)
+- Thanks to our beloved contributors: @brant-ruan, @rec, @andfoy, @BoboTiG
+
+
 0.10.2
 ~~~~~~
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/watchdog-0.10.2/docs/source/conf.py 
new/watchdog-0.10.3/docs/source/conf.py
--- old/watchdog-0.10.2/docs/source/conf.py     2020-02-09 00:11:59.000000000 
+0100
+++ new/watchdog-0.10.3/docs/source/conf.py     2020-06-21 19:44:01.000000000 
+0200
@@ -21,7 +21,7 @@
 SRC_DIR_PATH = os.path.join(TOP_DIR_PATH, 'src')  # noqa
 sys.path.insert(0, SRC_DIR_PATH)  # noqa
 
-import watchdog.version
+import watchdog.version  # noqa
 
 PROJECT_NAME = 'watchdog'
 AUTHOR_NAME = 'Yesudeep Mangalapilly and contributors'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/watchdog-0.10.2/src/watchdog/observers/api.py 
new/watchdog-0.10.3/src/watchdog/observers/api.py
--- old/watchdog-0.10.2/src/watchdog/observers/api.py   2020-01-26 
18:29:08.000000000 +0100
+++ new/watchdog-0.10.3/src/watchdog/observers/api.py   2020-06-21 
19:41:00.000000000 +0200
@@ -21,6 +21,10 @@
 from watchdog.utils import BaseThread
 from watchdog.utils.compat import queue
 from watchdog.utils.bricks import SkipRepeatsQueue
+try:
+    from pathlib import Path as _PATH_CLASSES
+except ImportError:
+    _PATH_CLASSES = ()
 
 DEFAULT_EMITTER_TIMEOUT = 1    # in seconds.
 DEFAULT_OBSERVER_TIMEOUT = 1   # in seconds.
@@ -46,7 +50,10 @@
     """
 
     def __init__(self, path, recursive):
-        self._path = path
+        if isinstance(path, _PATH_CLASSES):
+            self._path = str(path)
+        else:
+            self._path = path
         self._is_recursive = recursive
 
     @property
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/watchdog-0.10.2/src/watchdog/observers/inotify_c.py 
new/watchdog-0.10.3/src/watchdog/observers/inotify_c.py
--- old/watchdog-0.10.2/src/watchdog/observers/inotify_c.py     2020-01-26 
18:29:08.000000000 +0100
+++ new/watchdog-0.10.3/src/watchdog/observers/inotify_c.py     2020-06-21 
19:41:00.000000000 +0200
@@ -197,7 +197,10 @@
         self._path = path
         self._event_mask = event_mask
         self._is_recursive = recursive
-        self._add_dir_watch(path, recursive, event_mask)
+        if os.path.isdir(path):
+            self._add_dir_watch(path, recursive, event_mask)
+        else:
+            self._add_watch(path, event_mask)
         self._moved_from_events = dict()
 
     @property
@@ -421,6 +424,10 @@
             raise OSError(errno.ENOSPC, "inotify watch limit reached")
         elif err == errno.EMFILE:
             raise OSError(errno.EMFILE, "inotify instance limit reached")
+        elif err == errno.EACCES:
+            # Prevent raising an exception when a file with no permissions
+            # changes
+            pass
         else:
             raise OSError(err, os.strerror(err))
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/watchdog-0.10.2/src/watchdog/version.py 
new/watchdog-0.10.3/src/watchdog/version.py
--- old/watchdog-0.10.2/src/watchdog/version.py 2020-02-09 00:12:18.000000000 
+0100
+++ new/watchdog-0.10.3/src/watchdog/version.py 2020-02-08 23:55:20.000000000 
+0100
@@ -21,7 +21,7 @@
 # ``docs/source/global.rst.inc`` file as well.
 VERSION_MAJOR = 0
 VERSION_MINOR = 10
-VERSION_BUILD = 2
+VERSION_BUILD = 3
 VERSION_INFO = (VERSION_MAJOR, VERSION_MINOR, VERSION_BUILD)
 VERSION_STRING = "%d.%d.%d" % VERSION_INFO
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/watchdog-0.10.2/src/watchdog.egg-info/PKG-INFO 
new/watchdog-0.10.3/src/watchdog.egg-info/PKG-INFO
--- old/watchdog-0.10.2/src/watchdog.egg-info/PKG-INFO  2020-02-09 
00:16:37.000000000 +0100
+++ new/watchdog-0.10.3/src/watchdog.egg-info/PKG-INFO  2020-06-25 
22:33:59.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: watchdog
-Version: 0.10.2
+Version: 0.10.3
 Summary: Filesystem events monitoring
 Home-page: http://github.com/gorakhargosh/watchdog
 Author: Yesudeep Mangalapilly
@@ -304,6 +304,17 @@
         Changelog
         ---------
         
+        0.10.3
+        ~~~~~~
+        
+        2020-0x-xx • `full history 
<https://github.com/gorakhargosh/watchdog/compare/v0.10.2...master>`__
+        
+        - Ensure ``ObservedWatch.path`` is a string (`#651 
<https://github.com/gorakhargosh/watchdog/pull/651>`_)
+        - [inotify] Allow to monitor single file (`#655 
<https://github.com/gorakhargosh/watchdog/pull/655>`__)
+        - [inotify] Prevent raising an exception when a file in a monitored 
folder has no permissions (`#669 
<https://github.com/gorakhargosh/watchdog/pull/669>`__, `#670 
<https://github.com/gorakhargosh/watchdog/pull/670>`__)
+        - Thanks to our beloved contributors: @brant-ruan, @rec, @andfoy, 
@BoboTiG
+        
+        
         0.10.2
         ~~~~~~
         
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/watchdog-0.10.2/tests/test_inotify_c.py 
new/watchdog-0.10.3/tests/test_inotify_c.py
--- old/watchdog-0.10.2/tests/test_inotify_c.py 2020-01-26 18:29:08.000000000 
+0100
+++ new/watchdog-0.10.3/tests/test_inotify_c.py 2020-06-21 19:41:00.000000000 
+0200
@@ -168,3 +168,13 @@
         assert event.src_path == path
         # Just make sure it doesn't raise an exception.
         assert repr(event)
+
+
+def test_watch_file():
+    path = p("this_is_a_file")
+    with open(path, "a"):
+        pass
+    with watching(path):
+        os.remove(path)
+        event, _ = event_queue.get(timeout=5)
+        assert repr(event)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/watchdog-0.10.2/tests/test_observers_api.py 
new/watchdog-0.10.3/tests/test_observers_api.py
--- old/watchdog-0.10.2/tests/test_observers_api.py     2020-01-26 
18:29:08.000000000 +0100
+++ new/watchdog-0.10.3/tests/test_observers_api.py     2020-06-21 
19:41:00.000000000 +0200
@@ -30,6 +30,14 @@
 )
 
 
+def test_observer_constructor():
+    try:
+        from pathlib import Path
+    except ImportError:
+        return
+    ObservedWatch(Path('/foobar'), True)
+
+
 def test_observer__eq__():
     watch1 = ObservedWatch('/foobar', True)
     watch2 = ObservedWatch('/foobar', True)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/watchdog-0.10.2/tests/test_watchmedo.py 
new/watchdog-0.10.3/tests/test_watchmedo.py
--- old/watchdog-0.10.2/tests/test_watchmedo.py 2020-01-26 18:29:08.000000000 
+0100
+++ new/watchdog-0.10.3/tests/test_watchmedo.py 2020-06-21 19:44:56.000000000 
+0200
@@ -8,11 +8,11 @@
 # in README.rst
 yaml = pytest.importorskip('yaml')  # noqa
 
-import os
+import os  # noqa
 
-from watchdog import watchmedo
-from yaml.constructor import ConstructorError
-from yaml.scanner import ScannerError
+from watchdog import watchmedo  # noqa
+from yaml.constructor import ConstructorError  # noqa
+from yaml.scanner import ScannerError  # noqa
 
 
 def test_load_config_valid(tmpdir):


Reply via email to