14
0

- 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tasklib?expand=0&rev=8
This commit is contained in:
2022-02-02 06:28:03 +00:00
committed by Git OBS Bridge
parent e32429bd46
commit 6b6a2a4ad0
5 changed files with 25 additions and 28 deletions

View File

@@ -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-2.4.3.orig/tasklib/tests.py
+++ tasklib-1.3.0/tasklib/tests.py +++ tasklib-2.4.3/tasklib/tests.py
@@ -64,19 +64,6 @@ class TasklibTest(unittest.TestCase): @@ -66,6 +66,7 @@ class TasklibTest(unittest.TestCase):
shutil.rmtree(self.tmp)
class TaskWarriorTest(TasklibTest):
-class TaskWarriorTest(TasklibTest): + @unittest.skipUnless(sys.platform.startswith("win"), "requires Windows")
- def test_custom_command(self):
- def test_custom_command(self): # ensure that a custom command which contains multiple parts
- # ensure that a custom command which contains multiple parts # is properly split up
- # 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):

View File

@@ -1,3 +1,12 @@
-------------------------------------------------------------------
Wed Feb 2 06:24:49 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
- 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 <steven.kowalik@suse.com> Fri Apr 9 06:26:30 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-tasklib # 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 # 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
@@ -19,7 +19,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1 %define skip_python2 1
Name: python-tasklib Name: python-tasklib
Version: 2.3.0 Version: 2.4.3
Release: 0 Release: 0
Summary: Python Task Warrior library Summary: Python Task Warrior library
License: BSD-3-Clause License: BSD-3-Clause
@@ -32,11 +32,11 @@ BuildRequires: %{python_module six >= 1.4}
BuildRequires: %{python_module tzlocal} BuildRequires: %{python_module tzlocal}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildRequires: taskwarrior >= 2.1.0 BuildRequires: taskwarrior >= 2.4.0
Requires: python-pytz Requires: python-pytz
Requires: python-six >= 1.4 Requires: python-six >= 1.4
Requires: python-tzlocal Requires: python-tzlocal
Requires: taskwarrior >= 2.1.0 Requires: taskwarrior >= 2.4.0
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7fe8676acb4559129c4e958be7704c12dccdbae302fff47c5398bc0dd1c9e563
size 23582

3
tasklib-2.4.3.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b523bc12893d26c8173a6b8d84b16259c9a9c5acaaf8932bc018117f907b3bc5
size 23781