commit edfa99297b2abc293975d02515466d2cb2c27540d06d6cf1f6670540f7e4450f Author: Markéta Machová Date: Thu Sep 5 10:15:39 2024 +0000 - Update to 3.2.2 * fix support for Numpy 2.0 (#245). Note: uncertainties.unumpy still provides umatrix based on numpy.matrix. With numpy.matrix discouraged, umatrix is too, and will be dropped in a future release. * use setuptools-scm for setting version number from git tag (#247) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-uncertainties?expand=0&rev=32 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-uncertainties.changes b/python-uncertainties.changes new file mode 100644 index 0000000..c94af98 --- /dev/null +++ b/python-uncertainties.changes @@ -0,0 +1,169 @@ +------------------------------------------------------------------- +Thu Sep 5 09:45:43 UTC 2024 - Ben Greiner + +- Update to 3.2.2 + * fix support for Numpy 2.0 (#245). Note: uncertainties.unumpy + still provides umatrix based on numpy.matrix. With numpy.matrix + discouraged, umatrix is too, and will be dropped in a future + release. + * use setuptools-scm for setting version number from git tag + (#247) + +------------------------------------------------------------------- +Thu Jul 4 03:47:54 UTC 2024 - Steve Kowalik + +- 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 + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Thu Sep 7 01:51:59 UTC 2023 - Steve Kowalik + +- Add patch remove-future-requirement.patch, remove requirement for future +- Switch to pyproject and autosetup macros + +------------------------------------------------------------------- +Thu Jun 23 06:34:32 UTC 2022 - Arun Persaud + +- specfile: + * update copyright year + +- update to version 3.1.7: + * Emphasis added for automatic differentiation + * Made the automatic differentiation capabilities clearer + +------------------------------------------------------------------- +Thu Jul 22 02:06:55 UTC 2021 - Arun Persaud + +- update to version 3.1.6: + * the pretty-print and LaTeX format can now be customized. + +------------------------------------------------------------------- +Fri Feb 19 15:17:25 UTC 2021 - Ben Greiner + +- Don't install and test numpy for python36. With NumPy 1.20, TW + no longer provides a python36-numpy + +------------------------------------------------------------------- +Sat Jan 9 20:05:34 UTC 2021 - Arun Persaud + +- specfile: + * update copyright year + +- update to version 3.1.5: + * added a “p” formatting option, that makes sure that there are + always parentheses around the … ± … part of printed numbers. + +------------------------------------------------------------------- +Mon Jun 29 12:05:59 UTC 2020 - pgajdos@suse.com + +- switch from nosetests to pytest + +------------------------------------------------------------------- +Wed Jun 24 17:13:28 UTC 2020 - Todd R + +- Update to 3.1.4 + * There is now a single code base for Python 2 and Python 3. + +------------------------------------------------------------------- +Fri Aug 16 15:57:12 UTC 2019 - Todd R + +- Update to 3.1.2 + * Starting with NumPy 1.17, numpy.linalg.pinv has a None + __defaults__ attribute, for which the code made no provision. + This is fixed. +- Remove upstream-included patches: + fix_raw_strings.patch + fix_numpy_1_17.patch + +------------------------------------------------------------------- +Wed Jul 31 21:12:28 UTC 2019 - Todd R + +- 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 + +------------------------------------------------------------------- +Mon Jun 3 09:24:16 UTC 2019 - Tomáš Chvátal + +- Update to 3.1.1: + * No upstream changelog provided + +------------------------------------------------------------------- +Tue Oct 30 03:02:29 UTC 2018 - Arun Persaud + +- update to version 3.0.3: + * The deprecation warning raised by inspect.getargspec() in recent + versions of Python 3 is now gone. + +------------------------------------------------------------------- +Thu Sep 6 12:52:28 UTC 2018 - Jan Engelhardt + +- Trim non-RPM markup from description. Ensure neutrality of + description. + +------------------------------------------------------------------- +Wed Sep 5 03:56:06 UTC 2018 - arun@gmx.de + +- specfile: + * update copyright year + * remove devel from noarch + +- update to version 3.0.2: + * This update contains only documentation updates (and new or + updated code comments). Added explicit information on NaN + handling. + +------------------------------------------------------------------- +Thu Jul 6 15:02:18 UTC 2017 - tbechtold@suse.com + +- update to 3.0.1: + See more details at + https://pypi.python.org/pypi/uncertainties#version-history +- convert to singlespec + +------------------------------------------------------------------- +Wed Apr 20 14:10:10 UTC 2016 - tbechtold@suse.com + +- Use tarball from pypi + +------------------------------------------------------------------- +Thu Jul 16 15:51:51 UTC 2015 - seife+obs@b1-systems.com + +- fix build on non-SUSE distros whose rpm does not know Recommends: + +------------------------------------------------------------------- +Thu May 8 10:46:13 UTC 2014 - toddrme2178@gmail.com + +- Updated to release 2.4.6 + See more details at + https://pypi.python.org/pypi/uncertainties#version-history + +------------------------------------------------------------------- +Sat Jan 18 16:50:46 UTC 2014 - toms@opensuse.org + +- Updated to release 2.4.4 + See more details at + https://pypi.python.org/pypi/uncertainties#version-history +- Refreshed spec file + +------------------------------------------------------------------- +Thu Mar 11 20:03:29 UTC 2010 - toms@suse.de + +- Initial package release 1.4.5 + diff --git a/python-uncertainties.spec b/python-uncertainties.spec new file mode 100644 index 0000000..f88a8d2 --- /dev/null +++ b/python-uncertainties.spec @@ -0,0 +1,68 @@ +# +# spec file for package python-uncertainties +# +# 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?sle15_python_module_pythons} +Name: python-uncertainties +Version: 3.2.2 +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 +BuildRequires: %{python_module base >= 3.8} +BuildRequires: %{python_module numpy} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools >= 64} +BuildRequires: %{python_module setuptools_scm >= 8} +BuildRequires: %{python_module testsuite} +BuildRequires: %{python_module tools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +%if 0%{?suse_version} +Recommends: python-numpy +%endif +%python_subpackages + +%description +"uncertainties" allows calculations such as (2±0.1)*2 = 4±0.2 to be +performed transparently. Much more complex mathematical expressions +involving numbers with uncertainties can also be evaluated directly. + +%prep +%autosetup -p1 -n uncertainties-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%license LICENSE.txt +%doc README.rst +%{python_sitelib}/uncertainties/ +%{python_sitelib}/uncertainties-%{version}.dist-info + +%changelog diff --git a/remove-future-requirement.patch b/remove-future-requirement.patch new file mode 100644 index 0000000..2fd86ff --- /dev/null +++ b/remove-future-requirement.patch @@ -0,0 +1,13 @@ +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'], + diff --git a/uncertainties-3.1.7.tar.gz b/uncertainties-3.1.7.tar.gz new file mode 100644 index 0000000..717c164 --- /dev/null +++ b/uncertainties-3.1.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:80111e0839f239c5b233cb4772017b483a0b7a1573a581b92ab7746a35e6faab +size 158727 diff --git a/uncertainties-3.2.1.tar.gz b/uncertainties-3.2.1.tar.gz new file mode 100644 index 0000000..dffd642 --- /dev/null +++ b/uncertainties-3.2.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b05417b58bdef236c20e711fb2fee18e4db7348a92edcec01318b32aab34925e +size 143154 diff --git a/uncertainties-3.2.2.tar.gz b/uncertainties-3.2.2.tar.gz new file mode 100644 index 0000000..da9b27a --- /dev/null +++ b/uncertainties-3.2.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e62c86fdc64429828229de6ab4e11466f114907e6bd343c077858994cc12e00b +size 143865