python-gmp 0.5.0b2__cp312-cp312-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-l2tbmoqa\\cp312-win_arm64\\build\\venv\\Scripts\\delvewheel', 'repair', '-w', 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-l2tbmoqa\\cp312-win_arm64\\repaired_wheel', 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-l2tbmoqa\\cp312-win_arm64\\built_wheel\\python_gmp-0.5.0b2-cp312-cp312-win_arm64.whl', '--add-path', '.local/bin']
@@ -0,0 +1,129 @@
1
+ Metadata-Version: 2.4
2
+ Name: python-gmp
3
+ Version: 0.5.0b2
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>`_. This module shouldn't crash the interpreter.
57
+
58
+ The gmp can be used as a `gmpy2`_/`python-flint`_ replacement to provide
59
+ integer type (`mpz`_), compatible with Python's `int`_. It also includes
60
+ functions, compatible with the Python stdlib's submodule `math.integer
61
+ <https://docs.python.org/3.15/library/math.integer.html>`_.
62
+
63
+ This module requires Python 3.11 or later versions and has been tested with
64
+ CPython 3.11 through 3.14, with PyPy3.11 7.3.20 and with GraalPy 25.0.
65
+ Free-threading builds of the CPython are supported.
66
+
67
+ Releases are available in the Python Package Index (PyPI) at
68
+ https://pypi.org/project/python-gmp/.
69
+
70
+
71
+ Motivation
72
+ ----------
73
+
74
+ The CPython (and most other Python implementations, like PyPy) is optimized to
75
+ work with small (machine-sized) integers. Algorithms used here for big
76
+ integers usually aren't best known in the field. Fortunately, it's possible to
77
+ use bindings (for example, the `gmpy2`_ package) to the GNU GMP, which aims to
78
+ be faster than any other bignum library for all operand sizes.
79
+
80
+ But such extension modules usually rely on default GMP's memory management and
81
+ can't recover from allocation failure. So, it's easy to crash the Python
82
+ interpreter during the interactive session. Following example with the gmpy2
83
+ will work if you set address space limit for the Python interpreter (e.g. by
84
+ ``prlimit`` command on Linux):
85
+
86
+ .. code:: pycon
87
+
88
+ >>> import gmpy2
89
+ >>> gmpy2.__version__
90
+ '2.2.1'
91
+ >>> z = gmpy2.mpz(29925959575501)
92
+ >>> while True: # this loop will crash interpter
93
+ ... z = z*z
94
+ ...
95
+ GNU MP: Cannot allocate memory (size=46956584)
96
+ Aborted
97
+
98
+ The gmp module handles such errors correctly:
99
+
100
+ .. code:: pycon
101
+
102
+ >>> import gmp
103
+ >>> z = gmp.mpz(29925959575501)
104
+ >>> while True:
105
+ ... z = z*z
106
+ ...
107
+ Traceback (most recent call last):
108
+ File "<python-input-3>", line 2, in <module>
109
+ z = z*z
110
+ ~^~
111
+ MemoryError
112
+ >>> # interpreter still works, all variables in
113
+ >>> # the current scope are available,
114
+ >>> z.bit_length() # including pre-failure value of z
115
+ 93882077
116
+
117
+
118
+ Warning on --disable-alloca configure option
119
+ --------------------------------------------
120
+
121
+ You should use the GNU GMP library, compiled with the '--disable-alloca'
122
+ configure option to prevent using alloca() for temporary workspace allocation,
123
+ or this module may crash the interpreter in case of a stack overflow.
124
+
125
+
126
+ .. _gmpy2: https://pypi.org/project/gmpy2/
127
+ .. _python-flint: https://pypi.org/project/python-flint/
128
+ .. _mpz: https://python-gmp.readthedocs.io/en/latest/#gmp.mpz
129
+ .. _int: https://docs.python.org/3/library/functions.html#int
@@ -0,0 +1,9 @@
1
+ gmp.cp312-win_arm64.lib,sha256=tkOIMMwnHAA2L5nFHFS83fUKjeMfZixmC5lUja_UKro,1940
2
+ gmp.cp312-win_arm64.pyd,sha256=3l1RpivmGSKxy65TYukJh9LdagrBemIV8gMLVOcaN7E,70656
3
+ python_gmp-0.5.0b2.data/platlib/libgmp-10-b7dc008a047151cb8ef37f5ff55a6cab.dll,sha256=t9wAigRxUcuO839f9Vpsq8Uk-QR0AxeWIfspi0KIp-c,966656
4
+ python_gmp-0.5.0b2.data/platlib/libzz-0-6e0cad5071a0fb5bd7ee058d44997db1.dll,sha256=LIAxAAulrb9WuiFLEW8XMX87jGm7QZQd8NG8C2_WJio,100352
5
+ python_gmp-0.5.0b2.dist-info/DELVEWHEEL,sha256=OEziSMpwo7ct4ucOHETcLAKLTQgFmMMcpplGj43eHeI,433
6
+ python_gmp-0.5.0b2.dist-info/METADATA,sha256=IV3wRMBKScopMUbyb3ISJ-3GWPZm9rgNnZd1gNCMZ_4,5042
7
+ python_gmp-0.5.0b2.dist-info/RECORD,,
8
+ python_gmp-0.5.0b2.dist-info/WHEEL,sha256=laJzGQuA92jz-IGn87zH5BP9eB9fZISYiHjfOKGM0Zo,85
9
+ python_gmp-0.5.0b2.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: cp312-cp312-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.