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/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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@v3.4.0
uses: pypa/cibuildwheel@v3.4.1
- uses: actions/upload-artifact@v7
with:
name: wheels-${{ matrix.os }}
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ select = ["E", "F", "I", "PT", "W", "Q", "SIM"]

[tool.cibuildwheel]
build-frontend = {name="build", args=["--verbose", "-Csetup-args=--vsenv"]}
enable = "pypy cpython-prerelease cpython-freethreading graalpy"
enable = "pypy cpython-prerelease graalpy"
skip = "gp311_242* gp3*win*amd64*"

before-all = "sh scripts/cibw_before_all.sh"
Expand Down
14 changes: 5 additions & 9 deletions tests/test_mpz.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ def test_format_interface():
mx.__format__(321)
with pytest.raises(ValueError, match="Unknown format code"):
format(mx, "q")
if platform.python_implementation() != "PyPy": # XXX: pypy/pypy#5311
with pytest.raises(ValueError, match="Unknown format code"):
format(mx, "\x81")
with pytest.raises(ValueError,
match="(Unknown format code|Invalid format specifier)"):
format(mx, "\x81")
with pytest.raises(ValueError,
match=(r"Negative zero coercion \(z\) not allowed|"
"Invalid conversion specification")):
Expand Down Expand Up @@ -195,10 +195,6 @@ def test_format_interface():
assert format(mx, ".,f") == "123.000,000"
assert format(mx, "._f") == "123.000_000"

if (platform.python_implementation() == "PyPy"
and sys.pypy_version_info[:3] <= (7, 3, 20)):
return # XXX: pypy/pypy#5311

try:
locale.setlocale(locale.LC_ALL, "ru_RU.UTF-8")
s = locale.localeconv()["thousands_sep"]
Expand Down Expand Up @@ -700,11 +696,11 @@ def test_power_mod(x, y, z):
assert pow(mx, my, mz) == r
assert pow(mx, my, z) == r
assert pow(mx, y, mz) == r
if platform.python_implementation() == "PyPy":
return # XXX: pypy/pypy#5207
assert pow(x, my, mz) == r
assert pow(mx, y, z) == r
assert pow(x, my, z) == r
if platform.python_implementation() == "PyPy":
return # XXX: pypy/pypy#5207
assert pow(x, y, mz) == r


Expand Down
16 changes: 2 additions & 14 deletions utils.h
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
#ifndef UTILS_H
#define UTILS_H

#if defined(__MINGW32__) && defined(__GNUC__)
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Warray-bounds"
#endif
#if defined(__clang__)
# pragma GCC diagnostic push /* XXX: pypy/pypy#5312 */
# pragma GCC diagnostic ignored "-Wnewline-eof"
#endif
/* For GraalVM: unicodeobject.h, implicit conversion changes
signedness: 'enum PyUnicode_Kind' to 'int' */
#if defined(__GNUC__) || defined(__clang__)
# pragma GCC diagnostic push /* XXX: oracle/graalpython#580 */
# pragma GCC diagnostic ignored "-Wsign-conversion"
Expand All @@ -22,12 +16,6 @@
#if defined(__GNUC__) || defined(__clang__)
# pragma GCC diagnostic pop
#endif
#if defined(__clang__)
# pragma GCC diagnostic pop
#endif
#if defined(__MINGW32__) && defined(__GNUC__)
# pragma GCC diagnostic pop
#endif

typedef struct gmp_pyargs {
Py_ssize_t maxpos;
Expand Down
Loading