Accepting request 650196 from home:glaubitz:branches:devel:languages:python
- Update to version 0.8.3 - Cherry-pick upstream patch to fix testsuite + add-missing-conftest.patch - Update BuildRequires from setup.py OBS-URL: https://build.opensuse.org/request/show/650196 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-watchdog?expand=0&rev=12
This commit is contained in:
parent
11057d69ae
commit
098d80a9c6
26
add-missing-conftest.patch
Normal file
26
add-missing-conftest.patch
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
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,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Nov 19 13:00:25 UTC 2018 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
|
- Update to version 0.8.3
|
||||||
|
- Cherry-pick upstream patch to fix testsuite
|
||||||
|
+ add-missing-conftest.patch
|
||||||
|
- Update BuildRequires from setup.py
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Aug 9 10:18:35 UTC 2018 - tchvatal@suse.com
|
Thu Aug 9 10:18:35 UTC 2018 - tchvatal@suse.com
|
||||||
|
|
||||||
|
@ -12,20 +12,23 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-watchdog
|
Name: python-watchdog
|
||||||
Version: 0.8.3
|
Version: 0.9.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Filesystem events monitoring
|
Summary: Filesystem events monitoring
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: http://github.com/gorakhargosh/watchdog
|
URL: http://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}
|
BuildRequires: %{python_module pathtools}
|
||||||
|
BuildRequires: %{python_module pytest-cov}
|
||||||
|
BuildRequires: %{python_module pytest-timeout >= 0.3}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
@ -52,6 +55,7 @@ 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'
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:7e65882adb7746039b6f3876ee174952f8eaaa34491ba34333ddf1fe35de4162
|
|
||||||
size 83154
|
|
3
watchdog-0.9.0.tar.gz
Normal file
3
watchdog-0.9.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:965f658d0732de3188211932aeb0bb457587f04f63ab4c1e33eab878e9de961d
|
||||||
|
size 85549
|
Loading…
x
Reference in New Issue
Block a user