From 098d80a9c6d65ecc3f8e952d8360182fd52bea8005efea65c77c2d69ec871c9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 19 Nov 2018 19:32:40 +0000 Subject: [PATCH] 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 --- add-missing-conftest.patch | 26 ++++++++++++++++++++++++++ python-watchdog.changes | 8 ++++++++ python-watchdog.spec | 8 ++++++-- watchdog-0.8.3.tar.gz | 3 --- watchdog-0.9.0.tar.gz | 3 +++ 5 files changed, 43 insertions(+), 5 deletions(-) create mode 100644 add-missing-conftest.patch delete mode 100644 watchdog-0.8.3.tar.gz create mode 100644 watchdog-0.9.0.tar.gz diff --git a/add-missing-conftest.patch b/add-missing-conftest.patch new file mode 100644 index 0000000..9e1002b --- /dev/null +++ b/add-missing-conftest.patch @@ -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) diff --git a/python-watchdog.changes b/python-watchdog.changes index cc904bf..3aa30d5 100644 --- a/python-watchdog.changes +++ b/python-watchdog.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Mon Nov 19 13:00:25 UTC 2018 - John Paul Adrian Glaubitz + +- 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 diff --git a/python-watchdog.spec b/python-watchdog.spec index c018bd0..670bb35 100644 --- a/python-watchdog.spec +++ b/python-watchdog.spec @@ -12,20 +12,23 @@ # license that conforms to the Open Source Definition (Version 1.9) # 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-%{**}} Name: python-watchdog -Version: 0.8.3 +Version: 0.9.0 Release: 0 Summary: Filesystem events monitoring License: Apache-2.0 Group: Development/Languages/Python URL: http://github.com/gorakhargosh/watchdog 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 pytest-cov} +BuildRequires: %{python_module pytest-timeout >= 0.3} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes @@ -52,6 +55,7 @@ This package contains documentation and examples for %{name}. %prep %setup -q -n watchdog-%{version} +%patch0 -p1 chmod -x README.rst # Remove all shebangs find src -name "*.py" | xargs sed -i -e '/^#!\//, 1d' diff --git a/watchdog-0.8.3.tar.gz b/watchdog-0.8.3.tar.gz deleted file mode 100644 index 929f57f..0000000 --- a/watchdog-0.8.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7e65882adb7746039b6f3876ee174952f8eaaa34491ba34333ddf1fe35de4162 -size 83154 diff --git a/watchdog-0.9.0.tar.gz b/watchdog-0.9.0.tar.gz new file mode 100644 index 0000000..283a67b --- /dev/null +++ b/watchdog-0.9.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:965f658d0732de3188211932aeb0bb457587f04f63ab4c1e33eab878e9de961d +size 85549