Accepting request 956270 from devel:languages:python:numeric
- Update to 2.1.2: * Allow GIL release for mpz/xmpz/mpq types only. * Improve argument type processing by saving type information to decrease the number of type check calls. Especially helpful for mpfr and mpc types. * Avoid MPFR bug in mfr_fac_ui (gmpy2.factorial) on platforms where long is 32-bits and argument is >= 44787929. * Adjust test suite to reflect changes in output in MPFR 4.1.0. * Added cmp() and cmp_abs(). * Improved compatibility with _numbers_ protocol. * Initial support for MPFR4 + Add nrandom() + grandom() now calls nrandom twice; may return different values versus MPFR3 + Add rootn(); same as root() except different sign when taking even root of -0.0 * Thread-safe contexts are now supported. Properly integrating thread-safe contexts required an extensive rewrite of almost all internal functions. * MPFR and MPC are now required. It is no longer possible to build a version of gmpy2 that only supports the GMP library. * The function inverse() now raises an exception if the inverse does not exist. * Context methods have been added for MPFR/MPC related functions. * A new context option (rational_division) has been added that changes the behavior of integer division involving mpz instances to return a rational result instead of a floating point result. * gmpy2 types are now registered in the numeric tower. - Remove unzip BuildRequires, as upstream has switched to tarballs. OBS-URL: https://build.opensuse.org/request/show/956270 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-gmpy2?expand=0&rev=2
This commit is contained in:
parent
e9d45451fe
commit
fade7abf5c
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:dd233e3288b90f21b0bb384bcc7a7e73557bb112ccf0032ad52aa614eb373d3f
|
|
||||||
size 280551
|
|
3
gmpy2-2.1.2.tar.gz
Normal file
3
gmpy2-2.1.2.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:da75140bca128ece795895477e53b43773e3748aa90ba6170eae7ca2c74b82d1
|
||||||
|
size 258445
|
@ -1,3 +1,31 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Feb 21 03:30:39 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Update to 2.1.2:
|
||||||
|
* Allow GIL release for mpz/xmpz/mpq types only.
|
||||||
|
* Improve argument type processing by saving type information to
|
||||||
|
decrease the number of type check calls. Especially helpful for mpfr and mpc types.
|
||||||
|
* Avoid MPFR bug in mfr_fac_ui (gmpy2.factorial) on platforms where
|
||||||
|
long is 32-bits and argument is >= 44787929.
|
||||||
|
* Adjust test suite to reflect changes in output in MPFR 4.1.0.
|
||||||
|
* Added cmp() and cmp_abs().
|
||||||
|
* Improved compatibility with _numbers_ protocol.
|
||||||
|
* Initial support for MPFR4
|
||||||
|
+ Add nrandom()
|
||||||
|
+ grandom() now calls nrandom twice; may return different values versus MPFR3
|
||||||
|
+ Add rootn(); same as root() except different sign when taking even root of -0.0
|
||||||
|
* Thread-safe contexts are now supported. Properly integrating thread-safe contexts required
|
||||||
|
an extensive rewrite of almost all internal functions.
|
||||||
|
* MPFR and MPC are now required. It is no longer possible to build a version of gmpy2 that
|
||||||
|
only supports the GMP library.
|
||||||
|
* The function inverse() now raises an exception if the inverse does not exist.
|
||||||
|
* Context methods have been added for MPFR/MPC related functions.
|
||||||
|
* A new context option (rational_division) has been added that changes the behavior of
|
||||||
|
integer division involving mpz instances to return a rational result instead of a
|
||||||
|
floating point result.
|
||||||
|
* gmpy2 types are now registered in the numeric tower.
|
||||||
|
- Remove unzip BuildRequires, as upstream has switched to tarballs.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu May 24 17:33:34 UTC 2018 - toddrme2178@gmail.com
|
Thu May 24 17:33:34 UTC 2018 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-gmpy2
|
# spec file for package python-gmpy2
|
||||||
#
|
#
|
||||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2022 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -12,19 +12,18 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-gmpy2
|
Name: python-gmpy2
|
||||||
Version: 2.0.8
|
Version: 2.1.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: GMP/MPIR, MPFR, and MPC interface to Python 2.6+ and 3x
|
Summary: GMP/MPIR, MPFR, and MPC interface to Python 2.6+ and 3x
|
||||||
License: LGPL-3.0
|
License: LGPL-3.0-only
|
||||||
Group: Development/Languages/Python
|
URL: https://github.com/aleaxit/gmpy
|
||||||
Url: https://github.com/aleaxit/gmpy
|
Source: https://files.pythonhosted.org/packages/source/g/gmpy2/gmpy2-%{version}.tar.gz
|
||||||
Source: https://files.pythonhosted.org/packages/source/g/gmpy2/gmpy2-%{version}.zip
|
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
@ -33,7 +32,6 @@ BuildRequires: libmpir-devel
|
|||||||
BuildRequires: mpc-devel
|
BuildRequires: mpc-devel
|
||||||
BuildRequires: mpfr-devel
|
BuildRequires: mpfr-devel
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: unzip
|
|
||||||
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user