From 7ef4a0095703129879ed94a889b5ead0d1a8a1852b2fb5b4fc42ec3fd99bf38f Mon Sep 17 00:00:00 2001 From: Nico Krapp Date: Thu, 23 Jan 2025 12:57:53 +0000 Subject: [PATCH] Accepting request 1239854 from home:glaubitz:branches:devel:languages:python - Update to 1.19 * Support for Python 2.7 as well as 3.7 and earlier has been removed. * Generally use ``.as_integer_ratio()`` in the constructor if available. * Add a classmethod ``.from_number()`` that requires a number argument, not a string. * Mixed calculations with other ``Rational`` classes could return the wrong type. * In mixed calculations with ``complex``, the Fraction is now converted to ``float`` instead of ``complex`` to avoid certain corner cases in complex calculation. * Using ``complex`` numbers in division shows better tracebacks. * Subclass instantiations and calculations could fail in some cases. OBS-URL: https://build.opensuse.org/request/show/1239854 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-quicktions?expand=0&rev=27 --- python-quicktions.changes | 16 ++++++++++++++++ python-quicktions.spec | 4 ++-- quicktions-1.18.tar.gz | 3 --- quicktions-1.19.tar.gz | 3 +++ 4 files changed, 21 insertions(+), 5 deletions(-) delete mode 100644 quicktions-1.18.tar.gz create mode 100644 quicktions-1.19.tar.gz diff --git a/python-quicktions.changes b/python-quicktions.changes index 53f8813..914659a 100644 --- a/python-quicktions.changes +++ b/python-quicktions.changes @@ -1,3 +1,19 @@ +------------------------------------------------------------------- +Thu Jan 23 11:53:37 UTC 2025 - John Paul Adrian Glaubitz + +- Update to 1.19 + * Support for Python 2.7 as well as 3.7 and earlier has been removed. + * Generally use ``.as_integer_ratio()`` in the constructor if available. + * Add a classmethod ``.from_number()`` that requires a number argument, + not a string. + * Mixed calculations with other ``Rational`` classes could return the + wrong type. + * In mixed calculations with ``complex``, the Fraction is now converted + to ``float`` instead of ``complex`` to avoid certain corner cases in + complex calculation. + * Using ``complex`` numbers in division shows better tracebacks. + * Subclass instantiations and calculations could fail in some cases. + ------------------------------------------------------------------- Mon Jun 10 09:45:47 UTC 2024 - Dirk Müller diff --git a/python-quicktions.spec b/python-quicktions.spec index a54046c..cf9aff4 100644 --- a/python-quicktions.spec +++ b/python-quicktions.spec @@ -1,7 +1,7 @@ # # spec file for package python-quicktions # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: python-quicktions -Version: 1.18 +Version: 1.19 Release: 0 Summary: Fast fractions data type for rational numbers License: Python-2.0 diff --git a/quicktions-1.18.tar.gz b/quicktions-1.18.tar.gz deleted file mode 100644 index 7553caa..0000000 --- a/quicktions-1.18.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5128bc0f7c994d485f147ad4ab88a1df0108fc93f320f5a13d2763f3737beff9 -size 370981 diff --git a/quicktions-1.19.tar.gz b/quicktions-1.19.tar.gz new file mode 100644 index 0000000..ebefb97 --- /dev/null +++ b/quicktions-1.19.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:81ded2cb8e1e89c94eadc406c01673ad81c079ebda2773a15a6623e62e1b446f +size 374449