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 2026-11-30 14:25:22
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-icalendar (Old)
 and      /work/SRC/openSUSE:Factory/.python-icalendar.new.1340718 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-icalendar"

Mon Nov 30 14:25:22 2026 rev:44 rq:1401355 version:7.3.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-icalendar/python-icalendar.changes        
2026-09-14 16:24:34.872100678 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-icalendar.new.1340718/python-icalendar.changes
   2026-11-30 14:27:31.581775291 +0100
@@ -1,0 +2,6 @@
+Sat Nov 21 22:01:07 UTC 2026 - Dirk Müller <[email protected]>
+
+- update to 7.3.2:
+  * bugfixes
+
+-------------------------------------------------------------------

Old:
----
  icalendar-7.3.0.tar.gz

New:
----
  icalendar-7.3.2.tar.gz

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

Other differences:
------------------
++++++ python-icalendar.spec ++++++
--- /var/tmp/diff_new_pack.XrzUKV/_old  2026-11-30 14:27:33.035836377 +0100
+++ /var/tmp/diff_new_pack.XrzUKV/_new  2026-11-30 14:27:33.037836461 +0100
@@ -21,7 +21,7 @@
 %define        modname icalendar
 %{?sle15_python_module_pythons}
 Name:           python-%{modname}
-Version:        7.3.0
+Version:        7.3.2
 Release:        0
 Summary:        Python parser/generator of iCalendar files package
 License:        BSD-2-Clause

++++++ icalendar-7.3.0.tar.gz -> icalendar-7.3.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/icalendar-7.3.0/PKG-INFO new/icalendar-7.3.2/PKG-INFO
--- old/icalendar-7.3.0/PKG-INFO        2020-02-02 01:00:00.000000000 +0100
+++ new/icalendar-7.3.2/PKG-INFO        2020-02-02 01:00:00.000000000 +0100
@@ -1,10 +1,10 @@
 Metadata-Version: 2.5
 Name: icalendar
-Version: 7.3.0
+Version: 7.3.2
 Summary: RFC 5545 compatible parser and generator of iCalendar files
 Project-URL: Homepage, https://icalendar.readthedocs.io/en/stable/
 Project-URL: Repository, https://github.com/collective/icalendar
-Project-URL: source_archive, 
https://github.com/collective/icalendar/archive/138c8453db34fbb584bbcbc592fd7bd4b972e8ef.zip
+Project-URL: source_archive, 
https://github.com/collective/icalendar/archive/3451fdb2104343598322f35cbcfaced590c30489.zip
 Project-URL: Issues, https://github.com/collective/icalendar/issues
 Project-URL: Documentation, https://icalendar.readthedocs.io/en/stable/
 Project-URL: Changelog, 
https://icalendar.readthedocs.io/en/stable/changelog.html
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/icalendar-7.3.0/src/icalendar/_version.py 
new/icalendar-7.3.2/src/icalendar/_version.py
--- old/icalendar-7.3.0/src/icalendar/_version.py       2020-02-02 
01:00:00.000000000 +0100
+++ new/icalendar-7.3.2/src/icalendar/_version.py       2020-02-02 
01:00:00.000000000 +0100
@@ -18,7 +18,7 @@
 commit_id: str | None
 __commit_id__: str | None
 
-__version__ = version = '7.3.0'
-__version_tuple__ = version_tuple = (7, 3, 0)
+__version__ = version = '7.3.2'
+__version_tuple__ = version_tuple = (7, 3, 2)
 
 __commit_id__ = commit_id = None
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/icalendar-7.3.0/src/icalendar/cal/component.py 
new/icalendar-7.3.2/src/icalendar/cal/component.py
--- old/icalendar-7.3.0/src/icalendar/cal/component.py  2020-02-02 
01:00:00.000000000 +0100
+++ new/icalendar-7.3.2/src/icalendar/cal/component.py  2020-02-02 
01:00:00.000000000 +0100
@@ -527,12 +527,14 @@
     @overload
     @classmethod
     def from_ical(
-        cls, st: str | bytes, multiple: Literal[False] = False
+        cls, st: str | bytes | Path, multiple: Literal[False] = False
     ) -> Component: ...
 
     @overload
     @classmethod
-    def from_ical(cls, st: str | bytes, multiple: Literal[True]) -> 
list[Component]: ...
+    def from_ical(
+        cls, st: str | bytes | Path, multiple: Literal[True]
+    ) -> list[Component]: ...
 
     @classmethod
     def _get_ical_parser(cls, st: str | bytes) -> ComponentIcalParser:
@@ -549,7 +551,7 @@
 
         Parameters:
             st: iCalendar data as bytes or string, or a path to an iCalendar 
file as
-                :class:`pathlib.Path` or string.
+                :class:`pathlib.Path`.
             multiple: If ``True``, returns list. If ``False``, returns single 
component.
 
         Returns:
@@ -560,22 +562,6 @@
         """
         if isinstance(st, Path):
             st = st.read_bytes()
-        elif isinstance(st, str) and "\n" not in st and "\r" not in st:
-            # A string is only probed as a file path when it contains no line
-            # breaks. Valid iCalendar data is always folded with CRLF line
-            # endings (RFC 5545), so real calendar content never reaches this
-            # branch and is never read from disk. File paths, conversely, do
-            # not contain line breaks on the platforms we support.
-            try:
-                is_file = Path(st).is_file()
-            except (OSError, ValueError):
-                # The string is not usable as a path on this platform (e.g. it
-                # is too long, or contains characters the OS rejects such as an
-                # embedded null byte). Treat it as calendar data, not a file, 
so
-                # the parser raises a consistent ValueError across platforms.
-                is_file = False
-            if is_file:
-                st = Path(st).read_bytes()
         parser = cls._get_ical_parser(st)
         components = parser.parse()
         if multiple:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/icalendar-7.3.0/src/icalendar/prop/dt/time.py 
new/icalendar-7.3.2/src/icalendar/prop/dt/time.py
--- old/icalendar-7.3.0/src/icalendar/prop/dt/time.py   2020-02-02 
01:00:00.000000000 +0100
+++ new/icalendar-7.3.2/src/icalendar/prop/dt/time.py   2020-02-02 
01:00:00.000000000 +0100
@@ -186,15 +186,18 @@
         if len(ical) != 6 or not ical.isascii() or not ical.isdigit():
             raise ValueError(f"Expected time, got: {ical}")
         try:
-            timetuple = (int(ical[:2]), int(ical[2:4]), int(ical[4:6]))
-            if tzinfo:
-                return tzp.localize(time(*timetuple), tzinfo)
-            if utc:
-                return tzp.localize_utc(time(*timetuple))
-            return time(*timetuple)
+            result = time(int(ical[:2]), int(ical[2:4]), int(ical[4:6]))
         except Exception as e:
             raise ValueError(f"Expected time, got: {ical}") from e
 
+        if tzinfo:
+            return tzp.localize(result, tzinfo)
+
+        if utc:
+            return tzp.localize_utc(result)
+
+        return result
+
     @classmethod
     def examples(cls) -> list[Self]:
         """Examples of vTime."""
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/icalendar-7.3.0/src/icalendar/tests/test_issue_756_read_calendar_from_file.py
 
new/icalendar-7.3.2/src/icalendar/tests/test_issue_756_read_calendar_from_file.py
--- 
old/icalendar-7.3.0/src/icalendar/tests/test_issue_756_read_calendar_from_file.py
   2020-02-02 01:00:00.000000000 +0100
+++ 
new/icalendar-7.3.2/src/icalendar/tests/test_issue_756_read_calendar_from_file.py
   2020-02-02 01:00:00.000000000 +0100
@@ -28,12 +28,29 @@
     assert actual_cal.to_ical() == expected_cal.to_ical()
 
 
-def test_reading_cal_from_string_path(dummy_cal):
-    """Test reading a calendar from a valid string path."""
-    expected_cal, path = dummy_cal
-    actual_cal = Calendar.from_ical(str(path))
+def test_existing_calendar_path_as_string_is_not_read(dummy_cal):
+    """A string that matches an existing calendar file is parsed as data, not 
read.
 
-    assert actual_cal.to_ical() == expected_cal.to_ical()
+    The path points at a real, parseable calendar file. If the string were 
still
+    probed as a path, this call would read the file and return that calendar. 
It
+    now parses the path string itself as iCalendar data, which fails.
+    """
+    _, path = dummy_cal
+
+    with pytest.raises(ValueError):
+        Calendar.from_ical(str(path))
+
+
+def test_nonexistent_path_as_string_raises_parse_error(tmp_path: Path):
+    """A path-like string that does not exist is parsed as data, not opened.
+
+    A non-existent path must not raise ``FileNotFoundError`` (which would mean 
the
+    parser tried to open it); it is parsed as data and raises a ``ValueError``.
+    """
+    missing = str(tmp_path / "does-not-exist.ics")
+
+    with pytest.raises(ValueError):
+        Calendar.from_ical(missing)
 
 
 def test_reading_cal_from_long_string(dummy_cal):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/icalendar-7.3.0/src/icalendar/tests/test_time.py 
new/icalendar-7.3.2/src/icalendar/tests/test_time.py
--- old/icalendar-7.3.0/src/icalendar/tests/test_time.py        2020-02-02 
01:00:00.000000000 +0100
+++ new/icalendar-7.3.2/src/icalendar/tests/test_time.py        2020-02-02 
01:00:00.000000000 +0100
@@ -49,7 +49,7 @@
     assert floating.tzinfo is None
 
 
-def test_vtime_with_tzinfo_object():
+def test_vtime_with_tzinfo_object(tzp):
     tz = datetime.timezone.utc
 
     parsed = vTime.from_ical("083000", timezone=tz)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/icalendar-7.3.0/src/icalendar/timezone/pytz.py 
new/icalendar-7.3.2/src/icalendar/timezone/pytz.py
--- old/icalendar-7.3.0/src/icalendar/timezone/pytz.py  2020-02-02 
01:00:00.000000000 +0100
+++ new/icalendar-7.3.2/src/icalendar/timezone/pytz.py  2020-02-02 
01:00:00.000000000 +0100
@@ -8,6 +8,8 @@
 import pytz
 from pytz.tzinfo import DstTzInfo
 
+from icalendar.tools import normalize_pytz
+
 from .provider import TZProvider
 
 if TYPE_CHECKING:
@@ -31,7 +33,9 @@
 
     def localize(self, dt: datetime, tz: tzinfo) -> datetime:
         """Localize a datetime to a timezone."""
-        return tz.localize(dt)
+        if hasattr(tz, "localize"):
+            return tz.localize(dt)
+        return normalize_pytz(dt.replace(tzinfo=tz))
 
     def knows_timezone_id(self, tzid: str) -> bool:
         """Whether the timezone is already cached by the implementation."""

Reply via email to