python-gmp 0.4.0a4__tar.gz → 0.4.0a5__tar.gz

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.
Files changed (42) hide show
  1. {python_gmp-0.4.0a4 → python_gmp-0.4.0a5}/.clang-format +1 -0
  2. {python_gmp-0.4.0a4 → python_gmp-0.4.0a5}/.github/workflows/coverage.yml +1 -1
  3. {python_gmp-0.4.0a4 → python_gmp-0.4.0a5}/.github/workflows/publish.yml +1 -1
  4. {python_gmp-0.4.0a4 → python_gmp-0.4.0a5}/.github/workflows/test.yml +2 -1
  5. python_gmp-0.4.0a5/.github/workflows/wheels.yml +39 -0
  6. {python_gmp-0.4.0a4 → python_gmp-0.4.0a5}/PKG-INFO +4 -4
  7. {python_gmp-0.4.0a4 → python_gmp-0.4.0a5}/README.rst +2 -2
  8. {python_gmp-0.4.0a4 → python_gmp-0.4.0a5}/main.c +385 -2434
  9. {python_gmp-0.4.0a4 → python_gmp-0.4.0a5}/pyproject.toml +15 -5
  10. {python_gmp-0.4.0a4 → python_gmp-0.4.0a5}/python_gmp.egg-info/PKG-INFO +4 -4
  11. {python_gmp-0.4.0a4 → python_gmp-0.4.0a5}/python_gmp.egg-info/SOURCES.txt +3 -2
  12. {python_gmp-0.4.0a4 → python_gmp-0.4.0a5}/python_gmp.egg-info/requires.txt +1 -1
  13. python_gmp-0.4.0a5/python_gmp.egg-info/top_level.txt +1 -0
  14. {python_gmp-0.4.0a4 → python_gmp-0.4.0a5}/pythoncapi_compat.h +385 -7
  15. {python_gmp-0.4.0a4 → python_gmp-0.4.0a5}/scripts/cibw_before_all.sh +4 -0
  16. python_gmp-0.4.0a5/scripts/dll-importexport.diff +13 -0
  17. {python_gmp-0.4.0a4 → python_gmp-0.4.0a5}/setup.py +3 -1
  18. {python_gmp-0.4.0a4 → python_gmp-0.4.0a5}/tests/conftest.py +11 -1
  19. {python_gmp-0.4.0a4 → python_gmp-0.4.0a5}/tests/test_functions.py +15 -6
  20. {python_gmp-0.4.0a4 → python_gmp-0.4.0a5}/tests/test_outofmem.py +2 -0
  21. python_gmp-0.4.0a5/zz.c +1855 -0
  22. python_gmp-0.4.0a5/zz.h +90 -0
  23. python_gmp-0.4.0a4/.github/workflows/wheels.yml +0 -50
  24. python_gmp-0.4.0a4/_gmp_fractions.py +0 -1085
  25. python_gmp-0.4.0a4/python_gmp.egg-info/top_level.txt +0 -2
  26. python_gmp-0.4.0a4/tests/test_mpq.py +0 -68
  27. {python_gmp-0.4.0a4 → python_gmp-0.4.0a5}/.github/dependabot.yml +0 -0
  28. {python_gmp-0.4.0a4 → python_gmp-0.4.0a5}/.github/workflows/docs.yml +0 -0
  29. {python_gmp-0.4.0a4 → python_gmp-0.4.0a5}/.github/workflows/linter.yml +0 -0
  30. {python_gmp-0.4.0a4 → python_gmp-0.4.0a5}/.gitignore +0 -0
  31. {python_gmp-0.4.0a4 → python_gmp-0.4.0a5}/.pre-commit-config.yaml +0 -0
  32. {python_gmp-0.4.0a4 → python_gmp-0.4.0a5}/.readthedocs.yaml +0 -0
  33. {python_gmp-0.4.0a4 → python_gmp-0.4.0a5}/LICENSE +0 -0
  34. {python_gmp-0.4.0a4 → python_gmp-0.4.0a5}/docs/conf.py +0 -0
  35. {python_gmp-0.4.0a4 → python_gmp-0.4.0a5}/docs/index.rst +0 -0
  36. {python_gmp-0.4.0a4 → python_gmp-0.4.0a5}/python_gmp.egg-info/dependency_links.txt +0 -0
  37. {python_gmp-0.4.0a4 → python_gmp-0.4.0a5}/scripts/cibw_repair_wheel_command.sh +0 -0
  38. {python_gmp-0.4.0a4 → python_gmp-0.4.0a5}/scripts/cibw_repair_wheel_command_windows.bat +0 -0
  39. {python_gmp-0.4.0a4 → python_gmp-0.4.0a5}/scripts/cibw_repair_wheel_command_windows.sh +0 -0
  40. {python_gmp-0.4.0a4 → python_gmp-0.4.0a5}/scripts/fat_build_fix.diff +0 -0
  41. {python_gmp-0.4.0a4 → python_gmp-0.4.0a5}/setup.cfg +0 -0
  42. {python_gmp-0.4.0a4 → python_gmp-0.4.0a5}/tests/test_mpz.py +0 -0
@@ -31,3 +31,4 @@ UseTab: Never
31
31
  BreakBeforeBinaryOperators: NonAssignment
32
32
  IndentPPDirectives: AfterHash
33
33
  PPIndentWidth: 2
34
+ PenaltyBreakAssignment: 41
@@ -7,7 +7,7 @@ jobs:
7
7
  strategy:
8
8
  fail-fast: true
9
9
  matrix:
10
- python-version: ["3.x", "pypy3.10"]
10
+ python-version: ["3.x", pypy3.11]
11
11
  steps:
12
12
  - uses: actions/checkout@v4
13
13
  with:
@@ -54,7 +54,7 @@ jobs:
54
54
  pattern: python-gmp-*
55
55
  path: dist/
56
56
  merge-multiple: true
57
- - uses: sigstore/gh-action-sigstore-python@v3.0.0
57
+ - uses: sigstore/gh-action-sigstore-python@v3.0.1
58
58
  with:
59
59
  inputs: >-
60
60
  ./dist/*.tar.gz
@@ -14,7 +14,8 @@ jobs:
14
14
  strategy:
15
15
  fail-fast: true
16
16
  matrix:
17
- python-version: [3.9, '3.10', 'pypy3.10', pypy3.11, graalpy-24.1, 3.11, 3.12, 3.13, 3.14]
17
+ python-version: [3.9, '3.10', 'pypy3.10', pypy3.11, graalpy-24.2,
18
+ 3.11, 3.12, 3.13, 3.13t, 3.14]
18
19
  runs-on: ubuntu-24.04
19
20
  env:
20
21
  PYTEST_ADDOPTS: --verbose --capture=no
@@ -0,0 +1,39 @@
1
+ name: Build Wheels
2
+ on: [workflow_dispatch, workflow_call]
3
+ jobs:
4
+ build_wheels:
5
+ name: Build wheel on ${{ matrix.os }}
6
+ runs-on: ${{ matrix.os }}
7
+ strategy:
8
+ matrix:
9
+ os: [ubuntu-24.04, ubuntu-24.04-arm, macos-13, macos-14,
10
+ windows-2022]
11
+ steps:
12
+ - uses: actions/checkout@v4
13
+ with:
14
+ fetch-depth: 0
15
+ - uses: msys2/setup-msys2@v2.27.0
16
+ name: Setup msys2
17
+ with:
18
+ install: >-
19
+ mingw-w64-ucrt-x86_64-gcc
20
+ autotools
21
+ msystem: ucrt64
22
+ path-type: inherit
23
+ if: ${{ startsWith(matrix.os, 'windows') }}
24
+ - name: Build wheels
25
+ uses: pypa/cibuildwheel@v3.0.0
26
+ - uses: actions/upload-artifact@v4
27
+ with:
28
+ name: wheels-${{ matrix.os }}
29
+ path: ./wheelhouse/
30
+ merge:
31
+ runs-on: ubuntu-24.04
32
+ needs: build_wheels
33
+ steps:
34
+ - name: Merge Wheels
35
+ uses: actions/upload-artifact/merge@v4
36
+ with:
37
+ name: python-gmp-wheels
38
+ pattern: wheels-*
39
+ delete-merged: true
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-gmp
3
- Version: 0.4.0a4
3
+ Version: 0.4.0a5
4
4
  Summary: Safe bindings to the GNU GMP library
5
5
  Author-email: Sergey B Kirpichev <skirpichev@gmail.com>
6
6
  Maintainer-email: Sergey B Kirpichev <skirpichev@gmail.com>
@@ -38,7 +38,7 @@ License-File: LICENSE
38
38
  Provides-Extra: tests
39
39
  Requires-Dist: pytest; extra == "tests"
40
40
  Requires-Dist: hypothesis; extra == "tests"
41
- Requires-Dist: mpmath>=1.4.0a5; extra == "tests"
41
+ Requires-Dist: mpmath>=1.4.0a6; extra == "tests"
42
42
  Provides-Extra: docs
43
43
  Requires-Dist: sphinx>=8.2; extra == "docs"
44
44
  Provides-Extra: develop
@@ -57,8 +57,8 @@ shouldn't crash the interpreter! It requires Python 3.9 or later versions and
57
57
  has been tested with CPython 3.9 through 3.14 and for PyPy 3.10 and 3.11.
58
58
 
59
59
  This module can be used as a gmpy2/python-flint replacement to provide
60
- CPython-compatible integer (mpz) and rational (mpq) types. It includes few
61
- functions (fac, gcd and isqrt), compatible with the stdlib's module math.
60
+ CPython-compatible integer (mpz) type. It includes few functions (factorial,
61
+ gcd and isqrt), compatible with the stdlib's module math.
62
62
 
63
63
  Releases are available in the Python Package Index (PyPI) at
64
64
  https://pypi.org/project/python-gmp/
@@ -6,8 +6,8 @@ shouldn't crash the interpreter! It requires Python 3.9 or later versions and
6
6
  has been tested with CPython 3.9 through 3.14 and for PyPy 3.10 and 3.11.
7
7
 
8
8
  This module can be used as a gmpy2/python-flint replacement to provide
9
- CPython-compatible integer (mpz) and rational (mpq) types. It includes few
10
- functions (fac, gcd and isqrt), compatible with the stdlib's module math.
9
+ CPython-compatible integer (mpz) type. It includes few functions (factorial,
10
+ gcd and isqrt), compatible with the stdlib's module math.
11
11
 
12
12
  Releases are available in the Python Package Index (PyPI) at
13
13
  https://pypi.org/project/python-gmp/