Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-PyWebDAV3-GNUHealth for 
openSUSE:Factory checked in at 2024-02-04 19:10:00
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-PyWebDAV3-GNUHealth (Old)
 and      /work/SRC/openSUSE:Factory/.python-PyWebDAV3-GNUHealth.new.1815 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-PyWebDAV3-GNUHealth"

Sun Feb  4 19:10:00 2024 rev:4 rq:1143995 version:0.12.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-PyWebDAV3-GNUHealth/python-PyWebDAV3-GNUHealth.changes
    2023-07-19 19:10:28.408509803 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-PyWebDAV3-GNUHealth.new.1815/python-PyWebDAV3-GNUHealth.changes
  2024-02-04 19:12:25.707585582 +0100
@@ -1,0 +2,6 @@
+Sun Feb  4 12:12:34 UTC 2024 - Ben Greiner <c...@bnavigator.de>
+
+- Add pywebdav-server-configparser.patch: Replace long deprecated
+  SafeConfigParser
+
+-------------------------------------------------------------------

New:
----
  pywebdav-server-configparser.patch

BETA DEBUG BEGIN:
  New:
- Add pywebdav-server-configparser.patch: Replace long deprecated
  SafeConfigParser
BETA DEBUG END:

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

Other differences:
------------------
++++++ python-PyWebDAV3-GNUHealth.spec ++++++
--- /var/tmp/diff_new_pack.MLCKRI/_old  2024-02-04 19:12:26.219604034 +0100
+++ /var/tmp/diff_new_pack.MLCKRI/_new  2024-02-04 19:12:26.219604034 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-PyWebDAV3-GNUHealth
 #
-# Copyright (c) 2023 SUSE LLC
+# Copyright (c) 2024 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,9 +16,7 @@
 #
 
 
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
-%define         oldpython python
-%define         skip_python2 1
+%{?sle15_python_module_pythons}
 %bcond_without  test
 Name:           python-PyWebDAV3-GNUHealth
 Version:        0.12.0
@@ -30,18 +28,17 @@
 URL:            https://health.gnu.org
 Source0:        
https://files.pythonhosted.org/packages/source/P/PyWebDAV3-GNUHealth/PyWebDAV3-GNUHealth-%{version}.tar.gz
 Source1:        http://www.webdav.org/neon/litmus/litmus-%{ltmsver}.tar.gz
-BuildRequires:  %{python_module devel}
+# TODO: send this upstream (where?)
+Patch0:         pywebdav-server-configparser.patch
+BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module wheel}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 %if %{with test}
 BuildRequires:  %{python_module pytest}
 %endif
 Conflicts:      python-PyWebDAV3
-%ifpython2
-Obsoletes:      %{oldpython}-PyWebDAV < %{version}
-Provides:       %{oldpython}-PyWebDAV = %{version}
-%endif
 BuildArch:      noarch
 Requires(post): update-alternatives
 Requires(postun):update-alternatives
@@ -59,14 +56,14 @@
 Port from Andrew Leech PyWebDAV3 library to Support GNU Health.
 
 %prep
-%setup -q -n PyWebDAV3-GNUHealth-%{version}
+%autosetup -p1 -n PyWebDAV3-GNUHealth-%{version}
 cp %{SOURCE1} test/
 
 %build
-%python_build
+%pyproject_wheel
 
 %install
-%python_install
+%pyproject_install
 
 %{python_expand chmod a+x 
%{buildroot}%{$python_sitelib}/pywebdav/server/server.py
 sed -i "s|^#!/usr/bin/env python$|#!%{__$python}|" 
%{buildroot}%{$python_sitelib}/pywebdav/server/server.py
@@ -80,7 +77,7 @@
 
 %if %{with test}
 %check
-%python_expand py.test-%{$python_bin_suffix}
+%pytest
 %endif
 
 %post
@@ -90,9 +87,9 @@
 %python_uninstall_alternative davserver
 
 %files %{python_files}
-%defattr(-,root,root,-)
 %license doc/LICENSE
 %doc README.rst doc/Changes doc/TODO
 %python_alternative %{_bindir}/davserver
-%{python_sitelib}/*
+%{python_sitelib}/pywebdav
+%{python_sitelib}/PyWebDAV3_GNUHealth-%{version}.dist-info
 

++++++ pywebdav-server-configparser.patch ++++++
diff -ur PyWebDAV3-GNUHealth-0.12.0/pywebdav/lib/INI_Parse.py 
PyWebDAV3-GNUHealth-0.12.0.patched/pywebdav/lib/INI_Parse.py
--- PyWebDAV3-GNUHealth-0.12.0/pywebdav/lib/INI_Parse.py        2023-07-14 
17:28:43.000000000 +0200
+++ PyWebDAV3-GNUHealth-0.12.0.patched/pywebdav/lib/INI_Parse.py        
2024-02-04 13:05:29.322027790 +0100
@@ -1,8 +1,12 @@
-from configparser import SafeConfigParser
+try:
+    from configparser import ConfigParser
+except ImportError:
+    from configparser import SafeConfigParser as ConfigParser
+
 
 class Configuration:
     def __init__(self, fileName):
-        cp = SafeConfigParser()
+        cp = ConfigParser()
         cp.read(fileName)
         self.__parser = cp
         self.fileName = fileName

Reply via email to