1
0

33 Commits

Author SHA256 Message Date
7faef1fac4 Accepting request 1316726 from devel:languages:python:numeric
- Update to 3.2.3:
  * Changes:
    + Changes how numpy is handled as an optional dependency. Now a
      NotImplementedError is raised indicating that the function can't be
      used because numpy couldn't be imported.
    + Refactors the implementation for the calculation of the derivatives
      of the power function and improves the corresponding testing.
  * Fixes:
    + Adds documentation for ufloat_fromstr behavior for strings which do
      not contain uncertainty.
    + Fixes typos in ufloat_fromstr docstring examples (#285)
    + Fixes a bug that resulted in a ZeroDivisionError while formatting
      very small numbers with uncertainty (#135)
- Add patch support-python314.patch:
  * Support Python 3.14 changes.

OBS-URL: https://build.opensuse.org/request/show/1316726
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-uncertainties?expand=0&rev=18
2025-11-10 18:16:32 +00:00
33bd4c4b76 - Update to 3.2.3:
* Changes:
    + Changes how numpy is handled as an optional dependency. Now a
      NotImplementedError is raised indicating that the function can't be
      used because numpy couldn't be imported.
    + Refactors the implementation for the calculation of the derivatives
      of the power function and improves the corresponding testing.
  * Fixes:
    + Adds documentation for ufloat_fromstr behavior for strings which do
      not contain uncertainty.
    + Fixes typos in ufloat_fromstr docstring examples (#285)
    + Fixes a bug that resulted in a ZeroDivisionError while formatting
      very small numbers with uncertainty (#135)
- Add patch support-python314.patch:
  * Support Python 3.14 changes.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-uncertainties?expand=0&rev=34
2025-11-10 02:58:16 +00:00
a84d1f426c Accepting request 1198944 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/1198944
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-uncertainties?expand=0&rev=17
2024-09-05 13:47:41 +00:00
0d4836965c Accepting request 1186728 from devel:languages:python:numeric
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1186728
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-uncertainties?expand=0&rev=16
2024-07-11 18:32:54 +00:00
a1f3995bd7 - Update to 3.2.1:
* Drop future dependency. Uncertainties now has no external dependencies
    when not using Numpy integration
  * Drop support for Python versions before 3.8, including Python 2
  * remove 1to2 and deprecations
  * Moved from setup.py to pyproject.toml
  * Move tests to tests folder
  * Update unumpy test to be compatible with numpy 2
  * Mark docstrings with backslashes as raw strings in tests
- Drop patch remove-future-requirement.patch, no longer required.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-uncertainties?expand=0&rev=30
2024-07-04 03:48:07 +00:00
31d9de0435 Accepting request 1135596 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/1135596
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-uncertainties?expand=0&rev=15
2024-01-03 11:23:37 +00:00
f30b9b1d4a Accepting request 1135498 from home:ecsos:python
- Add %{?sle15_python_module_pythons}

OBS-URL: https://build.opensuse.org/request/show/1135498
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-uncertainties?expand=0&rev=28
2023-12-29 08:55:13 +00:00
394a4f9727 Accepting request 1109381 from devel:languages:python:numeric
- Add patch remove-future-requirement.patch, remove requirement for future
- Switch to pyproject and autosetup macros

OBS-URL: https://build.opensuse.org/request/show/1109381
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-uncertainties?expand=0&rev=14
2023-09-07 19:13:06 +00:00
b364381e1e - Add patch remove-future-requirement.patch, remove requirement for future
- Switch to pyproject and autosetup macros

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-uncertainties?expand=0&rev=26
2023-09-07 01:52:28 +00:00
f3aada53b9 Accepting request 984877 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/984877
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-uncertainties?expand=0&rev=13
2022-06-25 08:24:16 +00:00
426fbcf3ab Accepting request 984666 from home:apersaud:branches:devel:languages:python:numeric
update to latest version

OBS-URL: https://build.opensuse.org/request/show/984666
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-uncertainties?expand=0&rev=24
2022-06-24 11:32:12 +00:00
e34480cf30 Accepting request 907691 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/907691
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-uncertainties?expand=0&rev=12
2021-07-22 20:43:30 +00:00
24b9609628 Accepting request 907612 from home:apersaud:branches:devel:languages:python:numeric
update to latest version

OBS-URL: https://build.opensuse.org/request/show/907612
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-uncertainties?expand=0&rev=23
2021-07-22 09:42:40 +00:00
7d5789c092 Accepting request 873829 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/873829
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-uncertainties?expand=0&rev=11
2021-02-19 22:45:56 +00:00
106726e2f7 Accepting request 873812 from home:bnavigator:branches:devel:languages:python:numeric
- Don't install and test numpy for python36. With NumPy 1.20, TW
  no longer provides a python36-numpy

OBS-URL: https://build.opensuse.org/request/show/873812
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-uncertainties?expand=0&rev=21
2021-02-19 16:04:11 +00:00
e7e8d58402 Accepting request 862133 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/862133
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-uncertainties?expand=0&rev=10
2021-01-11 16:13:31 +00:00
41857e81fa Accepting request 862030 from home:apersaud:branches:devel:languages:python:numeric
update to latest version

OBS-URL: https://build.opensuse.org/request/show/862030
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-uncertainties?expand=0&rev=19
2021-01-10 15:39:51 +00:00
90c5cc05e4 Accepting request 817716 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/817716
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-uncertainties?expand=0&rev=9
2020-06-29 19:18:24 +00:00
Tomáš Chvátal
148570cc43 Accepting request 817704 from home:pgajdos:python
- switch from nosetests to pytest

OBS-URL: https://build.opensuse.org/request/show/817704
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-uncertainties?expand=0&rev=17
2020-06-29 12:33:22 +00:00
29b5d82361 Accepting request 817313 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/817313
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-uncertainties?expand=0&rev=8
2020-06-27 21:22:40 +00:00
Todd R
1244bdf94c Accepting request 817312 from home:TheBlackCat:branches:devel:languages:python:numeric
- Update to 3.1.4
  * There is now a single code base for Python 2 and Python 3.

OBS-URL: https://build.opensuse.org/request/show/817312
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-uncertainties?expand=0&rev=15
2020-06-26 18:58:50 +00:00
02f9afe299 Accepting request 724152 from devel:languages:python:numeric
Update to 3.1.2

OBS-URL: https://build.opensuse.org/request/show/724152
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-uncertainties?expand=0&rev=7
2019-08-19 19:38:18 +00:00
Todd R
e69f96fde6 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-uncertainties?expand=0&rev=13 2019-08-16 16:33:00 +00:00
Todd R
9e6da24423 Accepting request 724143 from home:TheBlackCat:branches:devel:languages:python:numeric
Update to 3.1.2

OBS-URL: https://build.opensuse.org/request/show/724143
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-uncertainties?expand=0&rev=12
2019-08-16 16:12:08 +00:00
51585dcba3 Accepting request 720231 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/720231
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-uncertainties?expand=0&rev=6
2019-08-05 08:37:46 +00:00
Todd R
dfdab4c14a Accepting request 720230 from home:TheBlackCat:branches:devel:languages:python:numeric
- Add fix_raw_strings.patch
  Fix raw string escaping
  From: gh#lebigot/uncertainties#98
- Add fix_numpy_1_17.patch
  Fix building for numpy 1.17
  See: gh#lebigot/uncertainties#89

OBS-URL: https://build.opensuse.org/request/show/720230
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-uncertainties?expand=0&rev=10
2019-08-01 14:06:12 +00:00
23575491e1 Accepting request 707107 from devel:languages:python:numeric
- Update to 3.1.1:
  * No upstream changelog provided

OBS-URL: https://build.opensuse.org/request/show/707107
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-uncertainties?expand=0&rev=5
2019-06-03 16:57:34 +00:00
Tomáš Chvátal
87fa551805 - Update to 3.1.1:
* No upstream changelog provided

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-uncertainties?expand=0&rev=8
2019-06-03 09:53:19 +00:00
3b81a1d903 Accepting request 645470 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/645470
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-uncertainties?expand=0&rev=4
2018-10-31 12:15:52 +00:00
Tomáš Chvátal
3705fade02 Accepting request 645394 from home:apersaud:branches:devel:languages:python:numeric
update to latest version

OBS-URL: https://build.opensuse.org/request/show/645394
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-uncertainties?expand=0&rev=6
2018-10-30 08:34:44 +00:00
03b2fc1a8c Accepting request 633740 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/633740
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-uncertainties?expand=0&rev=3
2018-09-07 13:41:41 +00:00
80c8b991b2 Accepting request 508800 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/508800
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-uncertainties?expand=0&rev=2
2017-08-04 09:58:43 +00:00
06c8e0305c Accepting request 391152 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/391152
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-uncertainties?expand=0&rev=1
2016-04-28 14:55:31 +00:00
8 changed files with 57 additions and 24 deletions

View File

@@ -1,3 +1,22 @@
-------------------------------------------------------------------
Mon Nov 10 02:56:04 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 3.2.3:
* Changes:
+ Changes how numpy is handled as an optional dependency. Now a
NotImplementedError is raised indicating that the function can't be
used because numpy couldn't be imported.
+ Refactors the implementation for the calculation of the derivatives
of the power function and improves the corresponding testing.
* Fixes:
+ Adds documentation for ufloat_fromstr behavior for strings which do
not contain uncertainty.
+ Fixes typos in ufloat_fromstr docstring examples (#285)
+ Fixes a bug that resulted in a ZeroDivisionError while formatting
very small numbers with uncertainty (#135)
- Add patch support-python314.patch:
* Support Python 3.14 changes.
-------------------------------------------------------------------
Thu Sep 5 09:45:43 UTC 2024 - Ben Greiner <code@bnavigator.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-uncertainties
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 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
@@ -18,12 +18,14 @@
%{?sle15_python_module_pythons}
Name: python-uncertainties
Version: 3.2.2
Version: 3.2.3
Release: 0
Summary: Uncertainties on the Quantities Involved (aka "Error Propagation")
License: BSD-3-Clause
URL: https://github.com/lebigot/uncertainties/
Source: https://files.pythonhosted.org/packages/source/u/uncertainties/uncertainties-%{version}.tar.gz
# PATCH-FIX-UPSTREAM Based on gh#lmfit/uncertainties#341
Patch0: support-python314.patch
BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module pip}

View File

@@ -1,13 +0,0 @@
Index: uncertainties-3.1.7/setup.py
===================================================================
--- uncertainties-3.1.7.orig/setup.py
+++ uncertainties-3.1.7/setup.py
@@ -337,7 +337,7 @@ try:
'Source': 'https://github.com/lebigot/uncertainties'
},
- install_requires=['future'],
+ install_requires=[],
tests_require=['nose', 'numpy'],

31
support-python314.patch Normal file
View File

@@ -0,0 +1,31 @@
From 2f184a480a073473cc8f5ab10cb016eaba3ba867 Mon Sep 17 00:00:00 2001
From: Will Shanks <wshaos@posteo.net>
Date: Sun, 7 Sep 2025 09:34:56 -0400
Subject: [PATCH 1/9] Update `log` exception test to work Python 3.14
---
tests/test_umath.py | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)
Index: uncertainties-3.2.3/tests/test_umath.py
===================================================================
--- uncertainties-3.2.3.orig/tests/test_umath.py
+++ uncertainties-3.2.3/tests/test_umath.py
@@ -241,6 +241,17 @@ def test_math_module():
assert err_math_args == err_ufloat.args
else:
raise Exception("%s exception expected" % exception_class.__name__)
+
+ # Exception message is different for int and float so create the math
+ # exception for float rather than reusing the int one above
+ try:
+ math.log(0.0)
+ except Exception as err_math:
+ # Python 3 does not make exceptions local variables: they are
+ # restricted to their except block:
+ err_math_args = err_math.args
+ exception_class = err_math.__class__
+
try:
umath_core.log(ufloat(0, 0))
except exception_class as err_ufloat:

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:80111e0839f239c5b233cb4772017b483a0b7a1573a581b92ab7746a35e6faab
size 158727

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b05417b58bdef236c20e711fb2fee18e4db7348a92edcec01318b32aab34925e
size 143154

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e62c86fdc64429828229de6ab4e11466f114907e6bd343c077858994cc12e00b
size 143865

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:76a5653e686f617a42922d546a239e9efce72e6b35411b7750a1d12dcba03031
size 160492