diff --git a/disable-windows-test.patch b/disable-windows-test.patch index 901a659..b936f16 100644 --- a/disable-windows-test.patch +++ b/disable-windows-test.patch @@ -1,24 +1,12 @@ -Index: tasklib-1.3.0/tasklib/tests.py +Index: tasklib-2.4.3/tasklib/tests.py =================================================================== ---- tasklib-1.3.0.orig/tasklib/tests.py -+++ tasklib-1.3.0/tasklib/tests.py -@@ -64,19 +64,6 @@ class TasklibTest(unittest.TestCase): - shutil.rmtree(self.tmp) +--- tasklib-2.4.3.orig/tasklib/tests.py ++++ tasklib-2.4.3/tasklib/tests.py +@@ -66,6 +66,7 @@ class TasklibTest(unittest.TestCase): + class TaskWarriorTest(TasklibTest): --class TaskWarriorTest(TasklibTest): -- -- def test_custom_command(self): -- # ensure that a custom command which contains multiple parts -- # is properly split up -- tw = self.get_taskwarrior( -- task_command='wsl task', -- # prevent `_get_version` from running as `wsl` may not exist -- version_override=os.getenv('TASK_VERSION'), -- ) -- self.assertEqual(tw._get_task_command(), ['wsl', 'task']) -- -- - class TaskFilterTest(TasklibTest): - - def test_all_empty(self): ++ @unittest.skipUnless(sys.platform.startswith("win"), "requires Windows") + def test_custom_command(self): + # ensure that a custom command which contains multiple parts + # is properly split up diff --git a/python-tasklib.changes b/python-tasklib.changes index bdb87e0..fcaf321 100644 --- a/python-tasklib.changes +++ b/python-tasklib.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Wed Feb 2 06:24:49 UTC 2022 - Steve Kowalik + +- Update to 2.4.3: + * Support for Taskwarrior 2.6 + * Support for tzlocal>=3.0 + * Official support for Python 3.9 in the test matrix +- Rewrite disable-windows-test.patch to be suitable for upstream + ------------------------------------------------------------------- Fri Apr 9 06:26:30 UTC 2021 - Steve Kowalik diff --git a/python-tasklib.spec b/python-tasklib.spec index b5e7cce..4bba86d 100644 --- a/python-tasklib.spec +++ b/python-tasklib.spec @@ -1,7 +1,7 @@ # # spec file for package python-tasklib # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-tasklib -Version: 2.3.0 +Version: 2.4.3 Release: 0 Summary: Python Task Warrior library License: BSD-3-Clause @@ -32,11 +32,11 @@ BuildRequires: %{python_module six >= 1.4} BuildRequires: %{python_module tzlocal} BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRequires: taskwarrior >= 2.1.0 +BuildRequires: taskwarrior >= 2.4.0 Requires: python-pytz Requires: python-six >= 1.4 Requires: python-tzlocal -Requires: taskwarrior >= 2.1.0 +Requires: taskwarrior >= 2.4.0 BuildArch: noarch %python_subpackages diff --git a/tasklib-2.3.0.tar.gz b/tasklib-2.3.0.tar.gz deleted file mode 100644 index 9c8a7bd..0000000 --- a/tasklib-2.3.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7fe8676acb4559129c4e958be7704c12dccdbae302fff47c5398bc0dd1c9e563 -size 23582 diff --git a/tasklib-2.4.3.tar.gz b/tasklib-2.4.3.tar.gz new file mode 100644 index 0000000..0537834 --- /dev/null +++ b/tasklib-2.4.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b523bc12893d26c8173a6b8d84b16259c9a9c5acaaf8932bc018117f907b3bc5 +size 23781