forked from pool/python-watchdog
Accepting request 783317 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/783317 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-watchdog?expand=0&rev=6
This commit is contained in:
commit
539470c69e
@ -1,26 +0,0 @@
|
|||||||
diff -Nru watchdog-0.9.0.old/tests/conftest.py watchdog-0.9.0/tests/conftest.py
|
|
||||||
--- watchdog-0.9.0.old/tests/conftest.py 1970-01-01 01:00:00.000000000 +0100
|
|
||||||
+++ watchdog-0.9.0/tests/conftest.py 2018-11-19 13:54:38.883980668 +0100
|
|
||||||
@@ -0,0 +1,22 @@
|
|
||||||
+from functools import partial
|
|
||||||
+import os
|
|
||||||
+import pytest
|
|
||||||
+from tests import shell
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+@pytest.fixture()
|
|
||||||
+def tmpdir(request):
|
|
||||||
+ path = os.path.realpath(shell.mkdtemp())
|
|
||||||
+ def finalizer():
|
|
||||||
+ shell.rm(path, recursive=True)
|
|
||||||
+ request.addfinalizer(finalizer)
|
|
||||||
+ return path
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+@pytest.fixture()
|
|
||||||
+def p(tmpdir, *args):
|
|
||||||
+ """
|
|
||||||
+ Convenience function to join the temporary directory path
|
|
||||||
+ with the provided arguments.
|
|
||||||
+ """
|
|
||||||
+ return partial(os.path.join, tmpdir)
|
|
@ -1,3 +1,17 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Mar 10 10:24:35 UTC 2020 - pgajdos@suse.com
|
||||||
|
|
||||||
|
- version update to 0.10.2
|
||||||
|
- Fixed the ``build_ext`` command on macOS Catalina (`#628 <https://github.com/gorakhargosh/watchdog/pull/628>`__)
|
||||||
|
- Fixed the installation of macOS requirements on non-macOS OSes (`#635 <https://github.com/gorakhargosh/watchdog/pull/635>`__)
|
||||||
|
- Refactored ``dispatch()`` method of ``FileSystemEventHandler``,
|
||||||
|
``PatternMatchingEventHandler`` and ``RegexMatchingEventHandler``
|
||||||
|
- [bsd] Improved tests support on non Windows/Linux platforms (`#633 <https://github.com/gorakhargosh/watchdog/pull/633>`__, `#639 <https://github.com/gorakhargosh/watchdog/pull/639>`__)
|
||||||
|
- [bsd] Added FreeBSD CI support (`#532 <https://github.com/gorakhargosh/watchdog/pull/532>`__)
|
||||||
|
- [bsd] Restored full support (`#638 <https://github.com/gorakhargosh/watchdog/pull/638>`__, `#641 <https://github.com/gorakhargosh/watchdog/pull/641>`__)
|
||||||
|
- deleted patches
|
||||||
|
- add-missing-conftest.patch (upstreamed)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Nov 6 13:42:24 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
Wed Nov 6 13:42:24 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-watchdog
|
# spec file for package python-watchdog
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2020 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -18,14 +18,13 @@
|
|||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-watchdog
|
Name: python-watchdog
|
||||||
Version: 0.9.0
|
Version: 0.10.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Filesystem events monitoring
|
Summary: Filesystem events monitoring
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
URL: https://github.com/gorakhargosh/watchdog
|
URL: https://github.com/gorakhargosh/watchdog
|
||||||
Source: https://files.pythonhosted.org/packages/source/w/watchdog/watchdog-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/w/watchdog/watchdog-%{version}.tar.gz
|
||||||
Patch0: add-missing-conftest.patch
|
BuildRequires: %{python_module pathtools >= 0.1.1}
|
||||||
BuildRequires: %{python_module pathtools}
|
|
||||||
BuildRequires: %{python_module pytest-timeout >= 0.3}
|
BuildRequires: %{python_module pytest-timeout >= 0.3}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
@ -34,7 +33,7 @@ BuildRequires: python-rpm-macros
|
|||||||
BuildRequires: python3-Sphinx
|
BuildRequires: python3-Sphinx
|
||||||
Requires: python-PyYAML
|
Requires: python-PyYAML
|
||||||
Requires: python-argh
|
Requires: python-argh
|
||||||
Requires: python-pathtools
|
Requires: python-pathtools >= 0.1.1
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@ -49,7 +48,6 @@ This package contains documentation and examples for %{name}.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n watchdog-%{version}
|
%setup -q -n watchdog-%{version}
|
||||||
%patch0 -p1
|
|
||||||
chmod -x README.rst
|
chmod -x README.rst
|
||||||
# Remove all shebangs
|
# Remove all shebangs
|
||||||
find src -name "*.py" | xargs sed -i -e '/^#!\//, 1d'
|
find src -name "*.py" | xargs sed -i -e '/^#!\//, 1d'
|
||||||
@ -63,6 +61,8 @@ cd docs && make html && rm -r build/html/.buildinfo build/html/objects.inv # Bui
|
|||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
sed -i '/--cov/d' setup.cfg
|
||||||
|
export LANG=en_US.UTF-8
|
||||||
%pytest
|
%pytest
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
|
3
watchdog-0.10.2.tar.gz
Normal file
3
watchdog-0.10.2.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:c560efb643faed5ef28784b2245cf8874f939569717a4a12826a173ac644456b
|
||||||
|
size 95505
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:965f658d0732de3188211932aeb0bb457587f04f63ab4c1e33eab878e9de961d
|
|
||||||
size 85549
|
|
Loading…
Reference in New Issue
Block a user