Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-specfile for openSUSE:Factory
checked in at 2026-04-28 16:40:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-specfile (Old)
and /work/SRC/openSUSE:Factory/.python-specfile.new.11940 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-specfile"
Tue Apr 28 16:40:08 2026 rev:41 rq:1349769 version:0.40.2
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-specfile/python-specfile.changes
2026-04-17 20:54:23.837405711 +0200
+++
/work/SRC/openSUSE:Factory/.python-specfile.new.11940/python-specfile.changes
2026-04-28 16:40:09.470943717 +0200
@@ -1,0 +2,7 @@
+Tue Apr 28 09:25:11 UTC 2026 - John Paul Adrian Glaubitz
<[email protected]>
+
+- Update to 0.40.2
+ * Trailing whitespaces at the end of specfile sections are now
+ ignored during parsing. (#531)
+
+-------------------------------------------------------------------
Old:
----
specfile-0.40.1.tar.gz
New:
----
specfile-0.40.2.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-specfile.spec ++++++
--- /var/tmp/diff_new_pack.AuSG6R/_old 2026-04-28 16:40:10.318978788 +0200
+++ /var/tmp/diff_new_pack.AuSG6R/_new 2026-04-28 16:40:10.322978953 +0200
@@ -18,7 +18,7 @@
%{?sle15_python_module_pythons}
Name: python-specfile
-Version: 0.40.1
+Version: 0.40.2
Release: 0
Summary: A library for parsing and manipulating RPM spec files
License: MIT
++++++ specfile-0.40.1.tar.gz -> specfile-0.40.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/specfile-0.40.1/CHANGELOG.md
new/specfile-0.40.2/CHANGELOG.md
--- old/specfile-0.40.1/CHANGELOG.md 2026-03-13 16:35:51.000000000 +0100
+++ new/specfile-0.40.2/CHANGELOG.md 2026-04-23 11:56:58.000000000 +0200
@@ -1,3 +1,7 @@
+# 0.40.2
+
+- Trailing whitespaces at the end of specfile sections are now ignored during
parsing. (#531)
+
# 0.40.1
- Fixed issues related to introduced sanitization (#523, #524, #525).
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/specfile-0.40.1/PKG-INFO new/specfile-0.40.2/PKG-INFO
--- old/specfile-0.40.1/PKG-INFO 2026-03-13 16:35:59.050715400 +0100
+++ new/specfile-0.40.2/PKG-INFO 2026-04-23 11:57:08.665053100 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.4
Name: specfile
-Version: 0.40.1
+Version: 0.40.2
Summary: A library for parsing and manipulating RPM spec files.
Home-page: https://github.com/packit/specfile
Author: Red Hat
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/specfile-0.40.1/centos-integration-sig/python-specfile.spec
new/specfile-0.40.2/centos-integration-sig/python-specfile.spec
--- old/specfile-0.40.1/centos-integration-sig/python-specfile.spec
2026-03-13 16:35:51.000000000 +0100
+++ new/specfile-0.40.2/centos-integration-sig/python-specfile.spec
2026-04-23 11:56:58.000000000 +0200
@@ -7,7 +7,7 @@
in a minimal diff.}
-%global base_version 0.40.1
+%global base_version 0.40.2
#global prerelease rc1
%global package_version %{base_version}%{?prerelease:~%{prerelease}}
@@ -81,6 +81,9 @@
%changelog
+* Thu Apr 23 2026 Packit Team <[email protected]> - 0.40.2-1
+- New upstream release 0.40.2
+
* Fri Mar 13 2026 Packit Team <[email protected]> - 0.40.1-1
- New upstream release 0.40.1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/specfile-0.40.1/epel8/python-specfile.spec
new/specfile-0.40.2/epel8/python-specfile.spec
--- old/specfile-0.40.1/epel8/python-specfile.spec 2026-03-13
16:35:51.000000000 +0100
+++ new/specfile-0.40.2/epel8/python-specfile.spec 2026-04-23
11:56:58.000000000 +0200
@@ -4,7 +4,7 @@
in a minimal diff.}
-%global base_version 0.40.1
+%global base_version 0.40.2
#global prerelease rc1
%global package_version %{base_version}%{?prerelease:~%{prerelease}}
@@ -72,6 +72,9 @@
%changelog
+* Thu Apr 23 2026 Packit Team <[email protected]> - 0.40.2-1
+- New upstream release 0.40.2
+
* Fri Mar 13 2026 Packit Team <[email protected]> - 0.40.1-1
- New upstream release 0.40.1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/specfile-0.40.1/fedora/python-specfile.spec
new/specfile-0.40.2/fedora/python-specfile.spec
--- old/specfile-0.40.1/fedora/python-specfile.spec 2026-03-13
16:35:51.000000000 +0100
+++ new/specfile-0.40.2/fedora/python-specfile.spec 2026-04-23
11:56:58.000000000 +0200
@@ -7,7 +7,7 @@
in a minimal diff.}
-%global base_version 0.40.1
+%global base_version 0.40.2
#global prerelease rc1
%global package_version %{base_version}%{?prerelease:~%{prerelease}}
@@ -81,6 +81,9 @@
%changelog
+* Thu Apr 23 2026 Packit Team <[email protected]> - 0.40.2-1
+- New upstream release 0.40.2
+
* Fri Mar 13 2026 Packit Team <[email protected]> - 0.40.1-1
- New upstream release 0.40.1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/specfile-0.40.1/specfile/sections.py
new/specfile-0.40.2/specfile/sections.py
--- old/specfile-0.40.1/specfile/sections.py 2026-03-13 16:35:51.000000000
+0100
+++ new/specfile-0.40.2/specfile/sections.py 2026-04-23 11:56:58.000000000
+0200
@@ -4,7 +4,7 @@
import collections
import copy
import re
-from typing import TYPE_CHECKING, List, Optional, Union, cast, overload
+from typing import TYPE_CHECKING, List, Optional, Union, overload
from specfile.constants import (
SCRIPT_SECTIONS,
@@ -173,7 +173,13 @@
data = super().__getattribute__("data")
except AttributeError:
return False
- return any(s.normalized_id == cast(str, id).lower() for s in data)
+ if isinstance(id, str):
+ id_lower = id.lower()
+ return any(
+ s.normalized_id == id_lower or s.normalized_name == id_lower
+ for s in data
+ )
+ return id in data
def __getattr__(self, id: str) -> Section:
if id not in self:
@@ -209,8 +215,9 @@
return self.data[self.find(id)]
def find(self, id: str) -> int:
+ id_lower = id.lower()
for i, section in enumerate(self.data):
- if section.normalized_id == id.lower():
+ if section.normalized_id == id_lower or section.normalized_name ==
id_lower:
return i
raise ValueError
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/specfile-0.40.1/specfile.egg-info/PKG-INFO
new/specfile-0.40.2/specfile.egg-info/PKG-INFO
--- old/specfile-0.40.1/specfile.egg-info/PKG-INFO 2026-03-13
16:35:58.000000000 +0100
+++ new/specfile-0.40.2/specfile.egg-info/PKG-INFO 2026-04-23
11:57:08.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.4
Name: specfile
-Version: 0.40.1
+Version: 0.40.2
Summary: A library for parsing and manipulating RPM spec files.
Home-page: https://github.com/packit/specfile
Author: Red Hat
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/specfile-0.40.1/tests/unit/test_sections.py
new/specfile-0.40.2/tests/unit/test_sections.py
--- old/specfile-0.40.1/tests/unit/test_sections.py 2026-03-13
16:35:51.000000000 +0100
+++ new/specfile-0.40.2/tests/unit/test_sections.py 2026-04-23
11:56:58.000000000 +0200
@@ -39,6 +39,23 @@
sections.get("package foo")
+def test_contains_and_getattr():
+ sections = Sections(
+ [
+ Section("package"),
+ Section("package", Options([Token(TokenType.DEFAULT, "baz")]), "
"),
+ Section("install", delimiter=" "),
+ ]
+ )
+ assert "package" in sections
+ assert "install" in sections
+ assert "install " in sections
+ assert sections.package == sections[0]
+ assert getattr(sections, "package baz") == sections[1]
+ assert sections.install == sections[-1]
+ assert getattr(sections, "install ") == sections[-1]
+
+
@pytest.mark.parametrize(
"id, existing, name, options, content",
[