Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-taskw for openSUSE:Factory 
checked in at 2022-02-17 00:31:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-taskw (Old)
 and      /work/SRC/openSUSE:Factory/.python-taskw.new.1956 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-taskw"

Thu Feb 17 00:31:17 2022 rev:4 rq:955484 version:1.3.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-taskw/python-taskw.changes        
2021-08-20 16:58:21.882828784 +0200
+++ /work/SRC/openSUSE:Factory/.python-taskw.new.1956/python-taskw.changes      
2022-02-17 00:32:42.565410767 +0100
@@ -1,0 +2,9 @@
+Wed Feb 16 20:10:57 UTC 2022 - Dirk M??ller <dmuel...@suse.com>
+
+- update to 1.3.1:
+  * Adds support for Taskwarrior 2.6.0
+  * Fixes changelog syntax
+  * Add tests for pull requests
+- drop taskw-1.3.0-fix-build-with-taskwarrior-2.5.2.patch (upstream)
+
+-------------------------------------------------------------------

Old:
----
  taskw-1.3.0-fix-build-with-taskwarrior-2.5.2.patch
  taskw-1.3.0.tar.gz

New:
----
  taskw-1.3.1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-taskw.spec ++++++
--- /var/tmp/diff_new_pack.gXFDBu/_old  2022-02-17 00:32:43.177410661 +0100
+++ /var/tmp/diff_new_pack.gXFDBu/_new  2022-02-17 00:32:43.181410660 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-taskw
 #
-# 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
@@ -18,15 +18,13 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-taskw
-Version:        1.3.0
+Version:        1.3.1
 Release:        0
 Summary:        Python bindings for taskwarrior
 License:        GPL-3.0-or-later
 Group:          Development/Languages/Python
 URL:            https://github.com/ralphbean/taskw
 Source:         
https://files.pythonhosted.org/packages/source/t/taskw/taskw-%{version}.tar.gz
-# PATCH-FIX-UPSTREAM taskw-1.3.0-fix-build-with-taskwarrior-2.5.2.patch 
https://github.com/ralphbean/taskw/compare/81f703bac941be74149d0297ea102afba11efdc8...0fa72d2656a5d220a105aad5d880ab7fb57a49cd.diff
-Patch0:         taskw-1.3.0-fix-build-with-taskwarrior-2.5.2.patch
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
@@ -51,7 +49,6 @@
 
 %prep
 %setup -q -n taskw-%{version}
-%patch0 -p1
 
 %build
 %python_build

++++++ taskw-1.3.0.tar.gz -> taskw-1.3.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/taskw-1.3.0/PKG-INFO new/taskw-1.3.1/PKG-INFO
--- old/taskw-1.3.0/PKG-INFO    2020-12-08 05:46:26.158625600 +0100
+++ new/taskw-1.3.1/PKG-INFO    2021-11-25 03:29:30.303346200 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: taskw
-Version: 1.3.0
+Version: 1.3.1
 Summary: Python bindings for your taskwarrior database
 Home-page: http://github.com/ralphbean/taskw
 Author: Ralph Bean
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/taskw-1.3.0/setup.py new/taskw-1.3.1/setup.py
--- old/taskw-1.3.0/setup.py    2020-12-07 01:27:37.000000000 +0100
+++ new/taskw-1.3.1/setup.py    2021-11-25 03:22:10.000000000 +0100
@@ -42,7 +42,7 @@
     REQUIREMENTS['install'].append('ordereddict')
 
 setup(name='taskw',
-      version='1.3.0',
+      version='1.3.1',
       description="Python bindings for your taskwarrior database",
       long_description=long_description,
       classifiers=[
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/taskw-1.3.0/taskw/test/test_datas.py 
new/taskw-1.3.1/taskw/test/test_datas.py
--- old/taskw-1.3.0/taskw/test/test_datas.py    2020-12-07 01:20:52.000000000 
+0100
+++ new/taskw-1.3.1/taskw/test/test_datas.py    2021-11-25 03:21:45.000000000 
+0100
@@ -383,7 +383,7 @@
         self.tw.task_add("foobar2")
         self.tw.task_add("foobar+")
         tasks = self.tw.filter_tasks({
-            'description.contains': 'foobar+',
+            'description.contains': '"foobar+"',
         })
         assert len(tasks) == 1
         assert tasks[0]['id'] == 3
@@ -393,7 +393,7 @@
         self.tw.task_add("foobar2")
         self.tw.task_add("foobar-")
         tasks = self.tw.filter_tasks({
-            'description.contains': 'foobar-',
+            'description.contains': '"foobar-"',
         })
         assert len(tasks) == 1
         assert tasks[0]['id'] == 3
@@ -451,7 +451,7 @@
         self.tw.task_add("foobar2")
         self.tw.task_add("foo/bar")
         tasks = self.tw.filter_tasks({
-            'description.contains': 'foo/bar',
+            'description.contains': '"foo/bar"',
         })
         assert len(tasks) == 1
         assert tasks[0]['id'] == 3
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/taskw-1.3.0/taskw/test/test_recursive.py 
new/taskw-1.3.1/taskw/test/test_recursive.py
--- old/taskw-1.3.0/taskw/test/test_recursive.py        2020-12-07 
01:20:52.000000000 +0100
+++ new/taskw-1.3.1/taskw/test/test_recursive.py        2021-11-25 
03:21:45.000000000 +0100
@@ -60,4 +60,4 @@
         task2 = self.tw.task_add('task2')
         depends = [task1['uuid'], task2['uuid']]
         task3 = self.tw.task_add('task3', depends=depends)
-        assert task3['depends'] == [task1['uuid'], task2['uuid']]
+        assert set(task3['depends']) == set([task1['uuid'], task2['uuid']])
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/taskw-1.3.0/taskw/warrior.py 
new/taskw-1.3.1/taskw/warrior.py
--- old/taskw-1.3.0/taskw/warrior.py    2020-12-07 01:21:35.000000000 +0100
+++ new/taskw-1.3.1/taskw/warrior.py    2021-11-25 03:21:45.000000000 +0100
@@ -19,6 +19,7 @@
 import time
 import uuid
 import subprocess
+import sys
 import json
 
 import kitchen.text.converters
@@ -412,10 +413,13 @@
     and https://github.com/ralphbean/taskw/issues/30 for more.
     """
     DEFAULT_CONFIG_OVERRIDES = {
+        # 'verbose' must be the first param. Otherwise due to
+        # https://github.com/GothenburgBitFactory/taskwarrior/issues/1953
+        # adding tasks will not work in taskwarrior 2.5.3.
+        'verbose': 'nothing',
         'json': {
             'array': 'TRUE'
         },
-        'verbose': 'nothing',
         'confirmation': 'no',
         'dependency': {
             'confirmation': 'no',
@@ -438,6 +442,15 @@
 
         if self.get_version() >= LooseVersion('2.4'):
             self.DEFAULT_CONFIG_OVERRIDES['verbose'] = 'new-uuid'
+        # Combination of
+        # https://github.com/GothenburgBitFactory/taskwarrior/issues/1953
+        # and dictionaries random order may cause task add failures in
+        # Python versions before 3.7
+        if (self.get_version() >= LooseVersion('2.5.3') and
+                sys.hexversion < 0x03070000):
+            warnings.once(
+                "Python < 3.7 with TaskWarrior => 2.5.3 is not suppoprted. "
+                "Task addition may fail.")
 
     def get_configuration_override_args(self):
         config_overrides = self.DEFAULT_CONFIG_OVERRIDES.copy()
@@ -616,8 +629,7 @@
         """
         query_args = taskw.utils.encode_query(filter_dict, self.get_version())
         return self._get_task_objects(
-            'export',
-            *query_args
+            *(query_args + ['export'])
         )
 
     def get_task(self, **kw):
@@ -655,7 +667,7 @@
             else:
                 search = [value]
 
-        task = self._get_task_objects('export', *search)
+        task = self._get_task_objects(*(search + ['export']))
 
         if task:
             if isinstance(task, list):
@@ -773,6 +785,8 @@
 
         task_to_modify.pop('uuid', None)
         task_to_modify.pop('id', None)
+        # Urgency field is auto-generated and cannot be modified.
+        task_to_modify.pop('urgency', None)
 
         # Only handle annotation differences if this is an old-style
         # task, or if the task itself says annotations have changed.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/taskw-1.3.0/taskw.egg-info/PKG-INFO 
new/taskw-1.3.1/taskw.egg-info/PKG-INFO
--- old/taskw-1.3.0/taskw.egg-info/PKG-INFO     2020-12-08 05:46:26.000000000 
+0100
+++ new/taskw-1.3.1/taskw.egg-info/PKG-INFO     2021-11-25 03:29:30.000000000 
+0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: taskw
-Version: 1.3.0
+Version: 1.3.1
 Summary: Python bindings for your taskwarrior database
 Home-page: http://github.com/ralphbean/taskw
 Author: Ralph Bean
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/taskw-1.3.0/tox.ini new/taskw-1.3.1/tox.ini
--- old/taskw-1.3.0/tox.ini     2020-12-07 01:20:52.000000000 +0100
+++ new/taskw-1.3.1/tox.ini     2021-11-25 03:21:45.000000000 +0100
@@ -1,5 +1,5 @@
 [tox]
-envlist = py{27,35,36,37,38}-tw{250,251}
+envlist = py{27,35,36,37,38}-tw{250,251} py{38}-tw{253}
 downloadcache = {toxworkdir}/_download/
 
 [testenv]
@@ -12,9 +12,10 @@
 deps =
     -r{toxinidir}/requirements.txt
     -r{toxinidir}/test_requirements.txt
-setenv = 
+setenv =
     tw250: TASKWARRIOR=v2.5.0
     tw251: TASKWARRIOR=v2.5.1
+    tw253: TASKWARRIOR=v2.5.3
 sitepackages = False
 commands =
     {toxinidir}/.tox_build_taskwarrior.sh "{envdir}" "{toxinidir}"

Reply via email to