Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-crochet for openSUSE:Factory 
checked in at 2024-02-05 22:01:20
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-crochet (Old)
 and      /work/SRC/openSUSE:Factory/.python-crochet.new.1815 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-crochet"

Mon Feb  5 22:01:20 2024 rev:4 rq:1144074 version:2.1.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-crochet/python-crochet.changes    
2023-07-12 17:27:51.518713508 +0200
+++ /work/SRC/openSUSE:Factory/.python-crochet.new.1815/python-crochet.changes  
2024-02-05 22:01:27.555574215 +0100
@@ -1,0 +2,8 @@
+Mon Feb  5 01:36:41 UTC 2024 - Steve Kowalik <[email protected]>
+
+- Add patch update-versioneer.patch:
+  * Fix build failure with Python 3.12.
+- Switch to pyproject and autosetup macros.
+- Stop using greedy globs in %files.
+
+-------------------------------------------------------------------

New:
----
  update-versioneer.patch

BETA DEBUG BEGIN:
  New:
- Add patch update-versioneer.patch:
  * Fix build failure with Python 3.12.
BETA DEBUG END:

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

Other differences:
------------------
++++++ python-crochet.spec ++++++
--- /var/tmp/diff_new_pack.ZheBSh/_old  2024-02-05 22:01:28.111594331 +0100
+++ /var/tmp/diff_new_pack.ZheBSh/_new  2024-02-05 22:01:28.111594331 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-crochet
 #
-# 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,17 +16,18 @@
 #
 
 
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
-%define skip_python2 1
 Name:           python-crochet
 Version:        2.1.1
 Release:        0
 Summary:        Use Twisted from any applications
 License:        MIT
-Group:          Development/Languages/Python
 URL:            https://github.com/itamarst/crochet
 Source:         
https://files.pythonhosted.org/packages/source/c/crochet/crochet-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM gh#itamarst/crochet#150
+Patch0:         update-versioneer.patch
+BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module wheel}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:       python-Twisted >= 16.0
@@ -44,13 +45,13 @@
 framework.
 
 %prep
-%setup -q -n crochet-%{version}
+%autosetup -p1 -n crochet-%{version}
 
 %build
-%python_build
+%pyproject_wheel
 
 %install
-%python_install
+%pyproject_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
@@ -59,5 +60,6 @@
 %files %{python_files}
 %doc README.rst docs/*.rst
 %license LICENSE
-%{python_sitelib}/*
+%{python_sitelib}/crochet
+%{python_sitelib}/crochet-%{version}.dist-info
 

++++++ update-versioneer.patch ++++++
>From a36d05f9fe9553fa37d585f43b8ae434dba0c6c3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hrn=C4=8Diar?= <[email protected]>
Date: Mon, 3 Jul 2023 16:41:50 +0200
Subject: [PATCH] Adjust versioneer.py for compatibility with Python 3.12

---
 versioneer.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/versioneer.py b/versioneer.py
index 7ed2a21..b7cdb0f 100644
--- a/versioneer.py
+++ b/versioneer.py
@@ -409,9 +409,9 @@ def get_config_from_root(root):
     # configparser.NoOptionError (if it lacks "VCS="). See the docstring at
     # the top of versioneer.py for instructions on writing your setup.cfg .
     setup_cfg = os.path.join(root, "setup.cfg")
-    parser = configparser.SafeConfigParser()
+    parser = configparser.ConfigParser()
     with open(setup_cfg, "r") as f:
-        parser.readfp(f)
+        parser.read_file(f)
     VCS = parser.get("versioneer", "VCS")  # mandatory
 
     def get(parser, name):

Reply via email to