Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/backport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
echo "matched=$matched" >> $GITHUB_OUTPUT
- name: Backport Action
if: fromJSON(steps.check_labels.outputs.matched) > 0
uses: sorenlouv/backport-github-action@v12.0.0
uses: sorenlouv/backport-github-action@v12.0.4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
auto_backport_label_prefix: backport-to-
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 2'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
linter:
uses: ./.github/workflows/linter.yml
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ jobs:
timeout-minutes: 20
runs-on: ${{ matrix.os }}
env:
CFLAGS: -Wall -Wpedantic -Werror -std=c17 -Wconversion
CFLAGS: -Wall -Werror -std=c17 -Wconversion
strategy:
matrix:
os: [ubuntu-24.04]
python-version: [pypy3.11, "graalpy-25.0", "3.x"]
python-version: [pypy3.12, "graalpy-25", "3.x"]
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
with:
fetch-depth: 0
- uses: actions/setup-python@v6
- uses: actions/setup-python@v7
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
Expand All @@ -26,7 +26,7 @@ jobs:
sudo locale-gen ps_AF.UTF-8
- name: Cache GNU GMP builds
id: cache-gmp
uses: actions/cache@v5
uses: actions/cache@v6
with:
path: .local
key: ${{ matrix.os }}-${{ hashFiles('scripts/*') }}
Expand Down Expand Up @@ -59,7 +59,7 @@ jobs:
needs:
- coverage
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
with:
fetch-depth: 0
- run: sudo apt-get update
Expand All @@ -81,7 +81,7 @@ jobs:
path: |
build/coverage/
build/coverage*.info
- uses: codecov/codecov-action@v6
- uses: codecov/codecov-action@v7
with:
token: ${{ secrets.CODECOV_TOKEN }}
gcov_ignore: pythoncapi_compat.h
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ jobs:
linter:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
with:
fetch-depth: 0
- uses: actions/setup-python@v6
- uses: actions/setup-python@v7
with:
python-version: "3.x"
- uses: j178/prek-action@v2
- uses: j178/prek-action@v3.0.0
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
with:
fetch-depth: 0
- uses: actions/setup-python@v6
- uses: actions/setup-python@v7
with:
python-version: "3.x"
- run: sudo apt-get update
- run: sudo apt-get install autoconf-archive
- run: pip install build
- name: Cache GNU GMP builds
id: cache-gmp
uses: actions/cache@v5
uses: actions/cache@v6
with:
path: .local
key: ${{ matrix.os }}-${{ hashFiles('scripts/*') }}
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:
pattern: python-gmp-*
path: dist/
merge-multiple: true
- uses: sigstore/gh-action-sigstore-python@v3.3.0
- uses: sigstore/gh-action-sigstore-python@v3.5.0
with:
inputs: >-
./dist/*.tar.gz
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
msystem: clangarm64
menv: clang-aarch64
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
with:
fetch-depth: 0
- uses: msys2/setup-msys2@v2.31.1
- uses: msys2/setup-msys2@v2.33.0
name: Setup msys2
with:
install: >-
Expand All @@ -42,7 +42,7 @@ jobs:
- run: echo "PKG_CONFIG_PATH=${{ github.workspace }}/.local/lib/pkgconfig" >> $env:GITHUB_ENV
if: ${{ startsWith(matrix.os, 'windows') }}
- name: Build wheels
uses: pypa/cibuildwheel@v4.0.0
uses: pypa/cibuildwheel@84f6233892f964b4c2aba196595e85602bc61b34
- uses: actions/upload-artifact@v7
with:
name: wheels-${{ matrix.os }}
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ functions, compatible with the Python stdlib's submodule `math.integer
<https://docs.python.org/3.15/library/math.integer.html>`_.

This module requires Python 3.11 or later versions and has been tested with
CPython 3.11 through 3.15, with PyPy3.11 7.3.23 and with GraalPy 25.0.3.
CPython 3.11 through 3.15, with PyPy3.12 8.0.0 and with GraalPy 25.3.4.1.
Free-threading builds of the CPython are supported.

Releases are available in the Python Package Index (PyPI) at
Expand Down
8 changes: 5 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[build-system]
build-backend = "mesonpy"
requires = ["meson-python", "meson<1.12"]
requires = ["meson-python"]

[project]
name = "python-gmp"
Expand Down Expand Up @@ -44,7 +44,9 @@ Homepage = "https://github.com/diofant/python-gmp"
Documentation = "https://python-gmp.readthedocs.io/en/latest/"

[project.optional-dependencies]
tests = ["pytest", "hypothesis", "mpmath"]
tests = ["pytest", "hypothesis; implementation_name != 'pypy'",
"hypothesis<=6.150.0; implementation_name == 'pypy'",
"mpmath"]
ci = ["python-gmp[tests]", "pytest-xdist"]
docs = ["sphinx>=8.2"]
develop = ["python-gmp[tests,docs]", "pre-commit", "pyperf"]
Expand All @@ -64,7 +66,7 @@ select = ["E", "F", "I", "PT", "W", "Q", "SIM"]
[tool.cibuildwheel]
build-frontend = {name="build", args=["--verbose", "-Csetup-args=--vsenv"]}
enable = "pypy cpython-prerelease graalpy"
skip = "gp3*win*amd64*"
skip = "gp3*win*amd64* gp312_250-macos*"

before-all = "sh scripts/cibw_before_all.sh"
test-extras = "ci"
Expand Down
Loading
Loading