python-gmp 0.5.0__cp313-cp313t-win_arm64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
Binary file
@@ -0,0 +1,2 @@
1
+ Version: 1.12.0
2
+ Arguments: ['C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-_0krcwoy\\cp313t-win_arm64\\build\\venv\\Scripts\\delvewheel', 'repair', '-w', 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-_0krcwoy\\cp313t-win_arm64\\repaired_wheel', 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-_0krcwoy\\cp313t-win_arm64\\built_wheel\\python_gmp-0.5.0-cp313-cp313t-win_arm64.whl', '--add-path', '.local/bin']
@@ -0,0 +1,130 @@
1
+ Metadata-Version: 2.4
2
+ Name: python-gmp
3
+ Version: 0.5.0
4
+ Summary: Safe bindings to the GNU GMP library
5
+ Keywords: gmp,multiple-precision,arbitrary-precision,bignum
6
+ Author-Email: Sergey B Kirpichev <skirpichev@gmail.com>
7
+ Maintainer-Email: Sergey B Kirpichev <skirpichev@gmail.com>
8
+ License-Expression: MIT
9
+ License-File: LICENSE
10
+ Classifier: Development Status :: 4 - Beta
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: Intended Audience :: Science/Research
13
+ Classifier: Natural Language :: English
14
+ Classifier: Operating System :: POSIX
15
+ Classifier: Programming Language :: C
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3 :: Only
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Programming Language :: Python :: 3.14
22
+ Classifier: Programming Language :: Python :: Free Threading :: 2 - Beta
23
+ Classifier: Programming Language :: Python :: Implementation :: CPython
24
+ Classifier: Programming Language :: Python :: Implementation :: PyPy
25
+ Classifier: Programming Language :: Python :: Implementation :: GraalPy
26
+ Classifier: Operating System :: Microsoft :: Windows
27
+ Classifier: Operating System :: POSIX
28
+ Classifier: Operating System :: Unix
29
+ Classifier: Operating System :: MacOS
30
+ Classifier: Topic :: Scientific/Engineering :: Mathematics
31
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
32
+ Project-URL: Homepage, https://github.com/diofant/python-gmp
33
+ Project-URL: Source Code, https://github.com/diofant/python-gmp
34
+ Project-URL: Bug Tracker, https://github.com/diofant/python-gmp/issues
35
+ Project-URL: Documentation, https://python-gmp.readthedocs.io/en/latest/
36
+ Requires-Python: >=3.11
37
+ Provides-Extra: tests
38
+ Requires-Dist: pytest; extra == "tests"
39
+ Requires-Dist: hypothesis; extra == "tests"
40
+ Requires-Dist: mpmath; extra == "tests"
41
+ Provides-Extra: ci
42
+ Requires-Dist: python-gmp[tests]; extra == "ci"
43
+ Requires-Dist: pytest-xdist; extra == "ci"
44
+ Provides-Extra: docs
45
+ Requires-Dist: sphinx>=8.2; extra == "docs"
46
+ Provides-Extra: develop
47
+ Requires-Dist: python-gmp[docs,tests]; extra == "develop"
48
+ Requires-Dist: pre-commit; extra == "develop"
49
+ Requires-Dist: pyperf; extra == "develop"
50
+ Description-Content-Type: text/x-rst
51
+
52
+ Python-GMP
53
+ ==========
54
+
55
+ Python extension module, providing bindings to the GNU GMP via the `ZZ library
56
+ <https://github.com/diofant/zz>`_ (version 0.8.0 or later required). This
57
+ module shouldn't crash the interpreter.
58
+
59
+ The gmp can be used as a `gmpy2`_/`python-flint`_ replacement to provide
60
+ integer type (`mpz`_), compatible with Python's `int`_. It also includes
61
+ functions, compatible with the Python stdlib's submodule `math.integer
62
+ <https://docs.python.org/3.15/library/math.integer.html>`_.
63
+
64
+ This module requires Python 3.11 or later versions and has been tested with
65
+ CPython 3.11 through 3.14, with PyPy3.11 7.3.20 and with GraalPy 25.0.
66
+ Free-threading builds of the CPython are supported.
67
+
68
+ Releases are available in the Python Package Index (PyPI) at
69
+ https://pypi.org/project/python-gmp/.
70
+
71
+
72
+ Motivation
73
+ ----------
74
+
75
+ The CPython (and most other Python implementations, like PyPy) is optimized to
76
+ work with small (machine-sized) integers. Algorithms used here for big
77
+ integers usually aren't best known in the field. Fortunately, it's possible to
78
+ use bindings (for example, the `gmpy2`_ package) to the GNU GMP, which aims to
79
+ be faster than any other bignum library for all operand sizes.
80
+
81
+ But such extension modules usually rely on default GMP's memory management and
82
+ can't recover from allocation failure. So, it's easy to crash the Python
83
+ interpreter during the interactive session. Following example with the gmpy2
84
+ will work if you set address space limit for the Python interpreter (e.g. by
85
+ ``prlimit`` command on Linux):
86
+
87
+ .. code:: pycon
88
+
89
+ >>> import gmpy2
90
+ >>> gmpy2.__version__
91
+ '2.2.1'
92
+ >>> z = gmpy2.mpz(29925959575501)
93
+ >>> while True: # this loop will crash interpter
94
+ ... z = z*z
95
+ ...
96
+ GNU MP: Cannot allocate memory (size=46956584)
97
+ Aborted
98
+
99
+ The gmp module handles such errors correctly:
100
+
101
+ .. code:: pycon
102
+
103
+ >>> import gmp
104
+ >>> z = gmp.mpz(29925959575501)
105
+ >>> while True:
106
+ ... z = z*z
107
+ ...
108
+ Traceback (most recent call last):
109
+ File "<python-input-3>", line 2, in <module>
110
+ z = z*z
111
+ ~^~
112
+ MemoryError
113
+ >>> # interpreter still works, all variables in
114
+ >>> # the current scope are available,
115
+ >>> z.bit_length() # including pre-failure value of z
116
+ 93882077
117
+
118
+
119
+ Warning on --disable-alloca configure option
120
+ --------------------------------------------
121
+
122
+ You should use the GNU GMP library, compiled with the '--disable-alloca'
123
+ configure option to prevent using alloca() for temporary workspace allocation,
124
+ or this module may crash the interpreter in case of a stack overflow.
125
+
126
+
127
+ .. _gmpy2: https://pypi.org/project/gmpy2/
128
+ .. _python-flint: https://pypi.org/project/python-flint/
129
+ .. _mpz: https://python-gmp.readthedocs.io/en/latest/#gmp.mpz
130
+ .. _int: https://docs.python.org/3/library/functions.html#int
@@ -0,0 +1,9 @@
1
+ gmp.cp313t-win_arm64.lib,sha256=gBUk5_XrCixYpMQ6vAR6QVvt9H_Y9OUaZjOA0Pb9F-Y,1954
2
+ gmp.cp313t-win_arm64.pyd,sha256=EaD1tQJxAEtMSfZmHtOH5G5_ARaJgduE6C8Px7MpgfI,75264
3
+ python_gmp-0.5.0.data/platlib/libgmp-10-16ed890ff31c79edb2fa288b144f046f.dll,sha256=Fu2JD_Mcee2y-iiLFE8EbxXtBjDpCd0aXSfUT9zliXE,966656
4
+ python_gmp-0.5.0.data/platlib/libzz-0-03d931f16ce9c4bdf4c589ead4c26a71.dll,sha256=yRFS18oSq5nVhUSvxDz4bmvJtFHVNkGHYK0sZVZhSAg,100352
5
+ python_gmp-0.5.0.dist-info/DELVEWHEEL,sha256=pHOkJaSWLMOBVeSxSkmFbFsB6x1vKB6MxNEJmoNKkI8,435
6
+ python_gmp-0.5.0.dist-info/METADATA,sha256=DmviDthFRQnIY6Ef6WA6W4fb-Vta_sge9qpGo4IFQp8,5074
7
+ python_gmp-0.5.0.dist-info/RECORD,,
8
+ python_gmp-0.5.0.dist-info/WHEEL,sha256=Duf2rmmFunmLIL94QmTkkXj9tD8LEdawUpDmDkTNf1s,86
9
+ python_gmp-0.5.0.dist-info/licenses/LICENSE,sha256=jdP2BAZAlUI2_f_ilPWMjC5Zh1rRwqhPTRylEFRvtv4,1101
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: meson
3
+ Root-Is-Purelib: false
4
+ Tag: cp313-cp313t-win_arm64
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024-2026 Sergey B Kirpichev
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.