Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-icalendar for 
openSUSE:Factory checked in at 2021-10-27 22:21:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-icalendar (Old)
 and      /work/SRC/openSUSE:Factory/.python-icalendar.new.1890 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-icalendar"

Wed Oct 27 22:21:01 2021 rev:32 rq:927592 version:4.0.9

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-icalendar/python-icalendar.changes        
2021-10-16 22:48:22.308728907 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-icalendar.new.1890/python-icalendar.changes  
    2021-10-27 22:21:13.559199285 +0200
@@ -1,0 +2,8 @@
+Tue Oct 26 20:21:42 UTC 2021 - Dirk M??ller <dmuel...@suse.com>
+
+- update to 4.0.9:
+  - Fix vCategories for correct en/de coding.
+  - vDuration property value: Fix changing duration sign after multiple
+    ``to_ical`` calls.
+
+-------------------------------------------------------------------

Old:
----
  icalendar-4.0.8.tar.gz

New:
----
  icalendar-4.0.9.tar.gz

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

Other differences:
------------------
++++++ python-icalendar.spec ++++++
--- /var/tmp/diff_new_pack.KGCsLr/_old  2021-10-27 22:21:14.003199513 +0200
+++ /var/tmp/diff_new_pack.KGCsLr/_new  2021-10-27 22:21:14.007199515 +0200
@@ -21,7 +21,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define        modname icalendar
 Name:           python-%{modname}
-Version:        4.0.8
+Version:        4.0.9
 Release:        0
 Summary:        Python parser/generator of iCalendar files package
 License:        BSD-2-Clause

++++++ icalendar-4.0.8.tar.gz -> icalendar-4.0.9.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/icalendar-4.0.8/CHANGES.rst 
new/icalendar-4.0.9/CHANGES.rst
--- old/icalendar-4.0.8/CHANGES.rst     2021-10-07 15:34:06.000000000 +0200
+++ new/icalendar-4.0.9/CHANGES.rst     2021-10-16 15:24:08.000000000 +0200
@@ -2,6 +2,20 @@
 =========
 
 
+4.0.9 (2021-10-16)
+------------------
+
+Bug fixes:
+
+- Fix vCategories for correct en/de coding.
+  [thet]
+
+- vDuration property value: Fix changing duration sign after multiple 
``to_ical`` calls.
+  Ref: #320
+  Fixes: #319
+  [barlik]
+
+
 4.0.8 (2021-10-07)
 ------------------
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/icalendar-4.0.8/PKG-INFO new/icalendar-4.0.9/PKG-INFO
--- old/icalendar-4.0.8/PKG-INFO        2021-10-07 15:34:07.000000000 +0200
+++ new/icalendar-4.0.9/PKG-INFO        2021-10-16 15:24:08.639386400 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: icalendar
-Version: 4.0.8
+Version: 4.0.9
 Summary: iCalendar parser/generator
 Home-page: https://github.com/collective/icalendar
 Author: Plone Foundation
@@ -70,6 +70,20 @@
         =========
         
         
+        4.0.9 (2021-10-16)
+        ------------------
+        
+        Bug fixes:
+        
+        - Fix vCategories for correct en/de coding.
+          [thet]
+        
+        - vDuration property value: Fix changing duration sign after multiple 
``to_ical`` calls.
+          Ref: #320
+          Fixes: #319
+          [barlik]
+        
+        
         4.0.8 (2021-10-07)
         ------------------
         
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/icalendar-4.0.8/docs/usage.rst 
new/icalendar-4.0.9/docs/usage.rst
--- old/icalendar-4.0.8/docs/usage.rst  2021-10-07 15:34:06.000000000 +0200
+++ new/icalendar-4.0.9/docs/usage.rst  2021-10-16 15:24:08.000000000 +0200
@@ -102,7 +102,7 @@
 So, let's define a function so we can easily display to_ical() output::
 
   >>> def display(cal):
-  ...    return cal.to_ical().replace('\r\n', '\n').strip()
+  ...    return cal.to_ical().replace(b'\r\n', b'\n').strip()
 
 You can set multiple properties like this::
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/icalendar-4.0.8/src/icalendar/__init__.py 
new/icalendar-4.0.9/src/icalendar/__init__.py
--- old/icalendar-4.0.8/src/icalendar/__init__.py       2021-10-07 
15:34:06.000000000 +0200
+++ new/icalendar-4.0.9/src/icalendar/__init__.py       2021-10-16 
15:24:08.000000000 +0200
@@ -1,5 +1,5 @@
 # -*- coding: utf-8 -*-
-__version__ = '4.0.8'
+__version__ = '4.0.9'
 
 from icalendar.cal import (
     Calendar,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/icalendar-4.0.8/src/icalendar/prop.py 
new/icalendar-4.0.9/src/icalendar/prop.py
--- old/icalendar-4.0.8/src/icalendar/prop.py   2021-10-07 15:34:06.000000000 
+0200
+++ new/icalendar-4.0.9/src/icalendar/prop.py   2021-10-16 15:24:08.000000000 
+0200
@@ -278,8 +278,9 @@
         return b",".join([c.to_ical() for c in self.cats])
 
     @staticmethod
-    def from_ical(ical, timezone=None):
-        out = unescape_char(ical).split(",")
+    def from_ical(ical):
+        ical = to_unicode(ical)
+        out = unescape_char(ical).split(',')
         return out
 
 
@@ -454,27 +455,28 @@
 
     def to_ical(self):
         sign = ""
-        if self.td.days < 0:
+        td = self.td
+        if td.days < 0:
             sign = "-"
-            self.td = -self.td
+            td = -td
         timepart = ""
-        if self.td.seconds:
+        if td.seconds:
             timepart = "T"
-            hours = self.td.seconds // 3600
-            minutes = self.td.seconds % 3600 // 60
-            seconds = self.td.seconds % 60
+            hours = td.seconds // 3600
+            minutes = td.seconds % 3600 // 60
+            seconds = td.seconds % 60
             if hours:
                 timepart += "%dH" % hours
             if minutes or (hours and seconds):
                 timepart += "%dM" % minutes
             if seconds:
                 timepart += "%dS" % seconds
-        if self.td.days == 0 and timepart:
+        if td.days == 0 and timepart:
             return (compat.unicode_type(sign).encode('utf-8') + b'P' +
                     compat.unicode_type(timepart).encode('utf-8'))
         else:
             return (compat.unicode_type(sign).encode('utf-8') + b'P' +
-                    compat.unicode_type(abs(self.td.days)).encode('utf-8') +
+                    compat.unicode_type(abs(td.days)).encode('utf-8') +
                     b'D' + compat.unicode_type(timepart).encode('utf-8'))
 
     @staticmethod
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/icalendar-4.0.8/src/icalendar/tests/test_unit_prop.py 
new/icalendar-4.0.9/src/icalendar/tests/test_unit_prop.py
--- old/icalendar-4.0.8/src/icalendar/tests/test_unit_prop.py   2021-10-07 
15:34:06.000000000 +0200
+++ new/icalendar-4.0.9/src/icalendar/tests/test_unit_prop.py   2021-10-16 
15:24:08.000000000 +0200
@@ -192,6 +192,12 @@
 
         self.assertRaises(ValueError, vDuration, 11)
 
+        # calling to_ical twice should result in same output
+        duration = vDuration(timedelta(days=-1, hours=-5))
+        self.assertEqual(duration.to_ical(), b'-P1DT5H')
+        self.assertEqual(duration.to_ical(), b'-P1DT5H')
+
+
     def test_prop_vPeriod(self):
         from ..prop import vPeriod
 
@@ -455,6 +461,15 @@
         self.assertIsInstance(t2.params, Parameters)
         self.assertEqual(t2.params, {'CN': 'Test Osterone'})
 
+    def test_prop_vCategory(self):
+        from ..prop import vCategory
+
+        catz = ['cat 1', 'cat 2', 'cat 3']
+        v_cat = vCategory(catz)
+
+        self.assertEqual(v_cat.to_ical(), b'cat 1,cat 2,cat 3')
+        self.assertEqual(vCategory.from_ical(v_cat.to_ical()), catz)
+
     def test_prop_TypesFactory(self):
         from ..prop import TypesFactory
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/icalendar-4.0.8/src/icalendar.egg-info/PKG-INFO 
new/icalendar-4.0.9/src/icalendar.egg-info/PKG-INFO
--- old/icalendar-4.0.8/src/icalendar.egg-info/PKG-INFO 2021-10-07 
15:34:07.000000000 +0200
+++ new/icalendar-4.0.9/src/icalendar.egg-info/PKG-INFO 2021-10-16 
15:24:08.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: icalendar
-Version: 4.0.8
+Version: 4.0.9
 Summary: iCalendar parser/generator
 Home-page: https://github.com/collective/icalendar
 Author: Plone Foundation
@@ -70,6 +70,20 @@
         =========
         
         
+        4.0.9 (2021-10-16)
+        ------------------
+        
+        Bug fixes:
+        
+        - Fix vCategories for correct en/de coding.
+          [thet]
+        
+        - vDuration property value: Fix changing duration sign after multiple 
``to_ical`` calls.
+          Ref: #320
+          Fixes: #319
+          [barlik]
+        
+        
         4.0.8 (2021-10-07)
         ------------------
         

Reply via email to