Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-fontParts for 
openSUSE:Factory checked in at 2024-03-04 21:25:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-fontParts (Old)
 and      /work/SRC/openSUSE:Factory/.python-fontParts.new.1770 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-fontParts"

Mon Mar  4 21:25:37 2024 rev:9 rq:1154612 version:0.12.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-fontParts/python-fontParts.changes        
2023-12-08 22:32:00.483899726 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-fontParts.new.1770/python-fontParts.changes  
    2024-03-04 21:25:43.671684079 +0100
@@ -1,0 +2,8 @@
+Sun Mar  3 18:07:37 UTC 2024 - Ben Greiner <c...@bnavigator.de>
+
+- Build PEP517 wheel
+- Clean old flavor directives
+- Add fontParts-pr720-py312tests.patch gh#robotools/fontParts#720
+  for python312 compatibility
+
+-------------------------------------------------------------------

New:
----
  fontParts-pr720-py312tests.patch

BETA DEBUG BEGIN:
  New:- Clean old flavor directives
- Add fontParts-pr720-py312tests.patch gh#robotools/fontParts#720
  for python312 compatibility
BETA DEBUG END:

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

Other differences:
------------------
++++++ python-fontParts.spec ++++++
--- /var/tmp/diff_new_pack.qls31P/_old  2024-03-04 21:25:44.311707303 +0100
+++ /var/tmp/diff_new_pack.qls31P/_new  2024-03-04 21:25:44.311707303 +0100
@@ -1,7 +1,7 @@
 #
-# spec file
+# spec file for package python-fontParts
 #
-# 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
@@ -24,8 +24,7 @@
 %define psuffix %{nil}
 %bcond_with test
 %endif
-%define skip_python2 1
-%define skip_python36 1
+
 Name:           python-fontParts%{psuffix}
 Version:        0.12.1
 Release:        0
@@ -33,8 +32,12 @@
 License:        MIT
 URL:            https://github.com/robotools/fontParts
 Source:         
https://files.pythonhosted.org/packages/source/f/fontParts/fontParts-%{version}.zip
+# PATCH-FIX-UPSTREAM fontParts-pr720-py312tests.patch 
gh#robotools/fontParts#720
+Patch0:         
https://github.com/robotools/fontParts/pull/720.patch#/fontParts-pr720-py312tests.patch
+BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module setuptools_scm}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module wheel}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 BuildRequires:  unzip
@@ -67,16 +70,16 @@
 An API for interacting with the parts of fonts during the font development 
process.
 
 %prep
-%setup -q -n fontParts-%{version}
+%autosetup -p1 -n fontParts-%{version}
 
 %build
 export LANG=C.UTF-8
-%python_build
+%pyproject_wheel
 
 %install
 %if !%{with test}
 export LANG=C.UTF-8
-%python_install
+%pyproject_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 %endif
 
@@ -85,7 +88,7 @@
 %check
 export LANG=C.UTF-8
 export PYTHONDONTWRITEBYTECODE=1
-%python_expand PYTHONPATH=./Lib $python Lib/fontParts/fontshell/test.py
+%python_expand PYTHONPATH=./Lib $python Lib/fontParts/fontshell/test.py -v
 %endif
 
 %if !%{with test}
@@ -93,6 +96,6 @@
 %doc README.rst
 %license LICENSE
 %{python_sitelib}/fontParts
-%{python_sitelib}/fontParts-%{version}*-info
+%{python_sitelib}/fontParts-%{version}.dist-info
 %endif
 

++++++ fontParts-pr720-py312tests.patch ++++++
>From d7484cd98051aa1588683136da0bb99eac31523b Mon Sep 17 00:00:00 2001
From: Martin Weinelt <h...@darmstadt.ccc.de>
Date: Wed, 7 Feb 2024 15:03:48 +0100
Subject: [PATCH] Replace remaining usage of assertEquals with assertEqual

This fixes the tests on Python 3.12, where assertEquals was removed.
---
 Lib/fontParts/test/test_glyph.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Lib/fontParts/test/test_glyph.py b/Lib/fontParts/test/test_glyph.py
index 1cad7814..20d01ae6 100644
--- a/Lib/fontParts/test/test_glyph.py
+++ b/Lib/fontParts/test/test_glyph.py
@@ -1356,9 +1356,9 @@ def test_isEmpty_false_component(self):
 
     def test_removeOverlap(self):
         glyph = self.getGlyph_generic()
-        self.assertEquals(len(glyph), 2)
+        self.assertEqual(len(glyph), 2)
         glyph.removeOverlap()
-        self.assertEquals(len(glyph), 1)
+        self.assertEqual(len(glyph), 1)
 
 
 def test_generator(test_name, metric, value):

Reply via email to