1
0

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
This commit is contained in:
Ana Guerrero 2024-07-11 18:32:54 +00:00 committed by Git OBS Bridge
commit 0d4836965c
5 changed files with 20 additions and 21 deletions

View File

@ -1,3 +1,17 @@
-------------------------------------------------------------------
Thu Jul 4 03:47:54 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- 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.
-------------------------------------------------------------------
Thu Dec 28 15:26:42 UTC 2023 - ecsos <ecsos@opensuse.org>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-uncertainties
#
# 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
@ -18,13 +18,13 @@
%{?sle15_python_module_pythons}
Name: python-uncertainties
Version: 3.1.7
Version: 3.2.1
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
Patch0: remove-future-requirement.patch
BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
@ -47,8 +47,6 @@ involving numbers with uncertainties can also be evaluated directly.
%prep
%autosetup -p1 -n uncertainties-%{version}
sed -i -e '/^#!\//, 1d' uncertainties/1to2.py
sed -i -e '/^#!\//, 1d' uncertainties/lib1to2/test_1to2.py
%build
%pyproject_wheel

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'],

View File

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

View File

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