Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-calmjs for openSUSE:Factory 
checked in at 2024-12-09 21:12:14
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-calmjs (Old)
 and      /work/SRC/openSUSE:Factory/.python-calmjs.new.29675 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-calmjs"

Mon Dec  9 21:12:14 2024 rev:10 rq:1229184 version:3.4.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-calmjs/python-calmjs.changes      
2023-06-21 22:41:03.238802609 +0200
+++ /work/SRC/openSUSE:Factory/.python-calmjs.new.29675/python-calmjs.changes   
2024-12-09 21:13:24.069558664 +0100
@@ -1,0 +2,7 @@
+Mon Dec  9 03:34:48 UTC 2024 - Steve Kowalik <[email protected]>
+
+- Add patch support-python-313.patch:
+  * Support Python 3.13+ argparse output changes.
+- Switch to pyrpoject macros.
+
+-------------------------------------------------------------------

New:
----
  support-python-313.patch

BETA DEBUG BEGIN:
  New:
- Add patch support-python-313.patch:
  * Support Python 3.13+ argparse output changes.
BETA DEBUG END:

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

Other differences:
------------------
++++++ python-calmjs.spec ++++++
--- /var/tmp/diff_new_pack.9yflg9/_old  2024-12-09 21:13:24.525577743 +0100
+++ /var/tmp/diff_new_pack.9yflg9/_new  2024-12-09 21:13:24.525577743 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-calmjs
 #
-# 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,6 +24,8 @@
 License:        GPL-2.0-or-later
 URL:            https://github.com/calmjs/calmjs/
 Source:         https://github.com/calmjs/calmjs/archive/%{version}.tar.gz
+# PATCH-FIX-OPENSUSE Support Python 3.13 argparse output changes
+Patch0:         support-python-313.patch
 BuildRequires:  %{python_module calmjs.parse >= 1.0.0}
 BuildRequires:  %{python_module calmjs.types}
 BuildRequires:  %{python_module pip}
@@ -33,8 +35,9 @@
 BuildRequires:  python-rpm-macros
 Requires:       python-calmjs.parse >= 1.0.0
 Requires:       python-calmjs.types
+Requires:       python-setuptools
 Requires(post): update-alternatives
-Requires(postun):update-alternatives
+Requires(postun): update-alternatives
 BuildArch:      noarch
 # SECTION test requirements
 BuildRequires:  nodejs-common
@@ -54,11 +57,11 @@
 
 %build
 export LANG=en_US.UTF-8
-%python_build
+%pyproject_wheel
 
 %install
 export LANG=en_US.UTF-8
-%python_install
+%pyproject_install
 %python_clone -a %{buildroot}%{_bindir}/calmjs
 # see https://github.com/calmjs/calmjs/issues/65 for maintainer feedback
 # regarding these two subpackages.
@@ -83,5 +86,5 @@
 %python_alternative %{_bindir}/calmjs
 %{python_sitelib}/calmjs
 %{python_sitelib}/calmjs-%{version}*-nspkg.pth
-%{python_sitelib}/calmjs-%{version}*-info
+%{python_sitelib}/calmjs-%{version}.dist-info
 

++++++ support-python-313.patch ++++++
Index: calmjs-3.4.4/src/calmjs/tests/test_argparse.py
===================================================================
--- calmjs-3.4.4.orig/src/calmjs/tests/test_argparse.py
+++ calmjs-3.4.4/src/calmjs/tests/test_argparse.py
@@ -112,7 +112,10 @@ class HelpFormatterTestCase(unittest.Tes
             for line in stream.getvalue().splitlines() if
             '--' in line
         ]
-        self.assertEqual(options, ['-a', '-g', '-s', '-z'])
+        expected = ['-a', '-g', '-s', '-z']
+        if sys.version_info >= (3, 13):
+            expected = [f"{x}," for x in expected]
+        self.assertEqual(options, expected)
 
     def test_sorted_case_insensitivity(self):
         parser = argparse.ArgumentParser(
@@ -131,7 +134,10 @@ class HelpFormatterTestCase(unittest.Tes
             '--' in line
         ]
         # the case is unspecified due to in-place sorting
-        self.assertEqual(options, ['-a', '-A', '-g', '-S', '-s', '-z'])
+        expected = ['-a', '-A', '-g', '-S', '-s', '-z']
+        if sys.version_info >= (3, 13):
+            expected = [f"{x}," for x in expected]
+        self.assertEqual(options, expected)
 
     def test_sorted_simple_first(self):
         parser = argparse.ArgumentParser(
@@ -150,8 +156,11 @@ class HelpFormatterTestCase(unittest.Tes
             '--' in line and '[' not in line
         ]
         # the case is unspecified due to in-place sorting
-        self.assertEqual(options, [
-            '-a', '-A', '-z', '--goat', '--sheep', '--SNAKE'])
+        long_options = ['--goat', '--sheep', '--SNAKE']
+        expected = ['-a', '-A', '-z']
+        if sys.version_info >= (3, 13):
+            expected = [f"{x}," for x in expected]
+        self.assertEqual(options, expected + long_options)
 
 
 class ArgumentParserTestCase(unittest.TestCase):

Reply via email to