Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-numericalunits for
openSUSE:Factory checked in at 2026-05-15 23:56:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-numericalunits (Old)
and /work/SRC/openSUSE:Factory/.python-numericalunits.new.1966 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-numericalunits"
Fri May 15 23:56:37 2026 rev:9 rq:1353411 version:1.26
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-numericalunits/python-numericalunits.changes
2025-07-06 17:19:12.995020878 +0200
+++
/work/SRC/openSUSE:Factory/.python-numericalunits.new.1966/python-numericalunits.changes
2026-05-15 23:58:32.129520771 +0200
@@ -1,0 +2,6 @@
+Thu May 14 18:20:43 UTC 2026 - Marius Grossu <[email protected]>
+
+- Added fix-python314.patch: Compatibility with Python 3.14 and
+ replaced removed ast.Num usage with ast.Constant
+
+-------------------------------------------------------------------
New:
----
fix-python314.patch
----------(New B)----------
New:
- Added fix-python314.patch: Compatibility with Python 3.14 and
replaced removed ast.Num usage with ast.Constant
----------(New E)----------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-numericalunits.spec ++++++
--- /var/tmp/diff_new_pack.uR8WY6/_old 2026-05-15 23:58:32.765546952 +0200
+++ /var/tmp/diff_new_pack.uR8WY6/_new 2026-05-15 23:58:32.765546952 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-numericalunits
#
-# Copyright (c) 2025 SUSE LLC
+# Copyright (c) 2026 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -24,6 +24,7 @@
URL: https://github.com/sbyrnes321/numericalunits
Source:
https://files.pythonhosted.org/packages/source/n/numericalunits/numericalunits-%{version}.tar.gz
Source1:
https://raw.githubusercontent.com/sbyrnes321/numericalunits/master/tests/tests.py
+Patch0: fix-python314.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
@@ -47,6 +48,7 @@
%setup -q -n numericalunits-%{version}
dos2unix numericalunits.py
cp %{SOURCE1} .
+%patch -P 0 -p1
%build
%pyproject_wheel
++++++ fix-python314.patch ++++++
Index: numericalunits-1.26/numericalunits.py
===================================================================
--- numericalunits-1.26.orig/numericalunits.py
+++ numericalunits-1.26/numericalunits.py
@@ -450,8 +450,8 @@ def nu_eval(expression):
operators = {ast.Mult: op.mul, ast.Div: op.truediv, ast.Pow: op.pow,
ast.USub: op.neg}
def _eval(node):
- if isinstance(node, ast.Num):
- return node.n
+ if isinstance(node, ast.Constant):
+ return node.value
elif isinstance(node, ast.BinOp): # <left> <operator> <right>
return operators[type(node.op)](_eval(node.left),
_eval(node.right))
elif isinstance(node, ast.UnaryOp): # <operator> <operand> e.g., -1