Skip to content

Commit 9361af3

Browse files
authored
feat: riscv64 builds are now enabled by default (#2509)
PyPI now accepts `riscv64` uploads for manylinux/musllinux. Those builds do not require an opt-in anymore.
1 parent 47c5a35 commit 9361af3

File tree

4 files changed

+1
-20
lines changed

4 files changed

+1
-20
lines changed

cibuildwheel/selector.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,6 @@ def __call__(self, build_id: str) -> bool:
9393
return False
9494
if EnableGroup.PyPyEoL not in self.enable and fnmatch(build_id, "pp3?-*"):
9595
return False
96-
if EnableGroup.CPythonExperimentalRiscV64 not in self.enable and fnmatch(
97-
build_id, "*_riscv64"
98-
):
99-
return False
10096
if EnableGroup.GraalPy not in self.enable and fnmatch(build_id, "gp*"):
10197
return False
10298
# TODO: Re-enable this when we have Pyodide prereleases again (e.g., 0.29.0a1+)

docs/options.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ The list of supported and currently selected build identifiers can also be retri
7171
The format is `python_tag-platform_tag`, with tags similar to those in [PEP 425](https://www.python.org/dev/peps/pep-0425/#details).
7272

7373
Windows arm64 platform support is experimental.
74-
Linux riscv64 platform support is experimental and requires an explicit opt-in through [`enable`](#enable).
7574

7675
See the [cibuildwheel 2 documentation](https://cibuildwheel.pypa.io/en/2.x/) for past end-of-life versions of Python.
7776

@@ -201,8 +200,6 @@ Options:
201200
to use [`build`](#build-skip) with this option to target specific
202201
architectures via build selectors.
203202

204-
Linux riscv64 platform support is experimental and requires an explicit opt-in through [`enable`](#enable).
205-
206203
Default: `auto`
207204

208205
| Runner | `native` | `auto` | `auto64` | `auto32` |
@@ -356,9 +353,6 @@ values are:
356353
free-threaded builds are no longer experimental, so this enable is not needed.
357354
- `pypy`: Enable PyPy.
358355
- `pypy-eol`: Enable PyPy versions that have passed end of life (if still available).
359-
- `cpython-experimental-riscv64`: Enable experimental riscv64 builds. Those builds
360-
are disabled by default as they can't be uploaded to PyPI and a PEP will most likely
361-
be required before this can happen.
362356
- `graalpy`: Enable GraalPy.
363357
- `pyodide-prerelease`: Pyodide versions that haven't released yet, if one is
364358
available. Safe if you are shipping a site with an early build, not for

test/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def get_platform() -> str:
5151
raise Exception(msg)
5252

5353

54-
DEFAULT_CIBW_ENABLE = "cpython-freethreading cpython-prerelease cpython-experimental-riscv64"
54+
DEFAULT_CIBW_ENABLE = "cpython-freethreading cpython-prerelease"
5555

5656

5757
def get_enable_groups() -> frozenset[EnableGroup]:

unit_test/build_selector_test.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -217,15 +217,6 @@ def test_build_free_threaded_python():
217217
assert build_selector("cp313t-manylinux_x86_64")
218218

219219

220-
def test_build_riscv64_enable():
221-
build_selector = BuildSelector(build_config="*", skip_config="")
222-
assert not build_selector("cp313-manylinux_riscv64")
223-
build_selector = BuildSelector(
224-
build_config="*", skip_config="", enable=frozenset([EnableGroup.CPythonExperimentalRiscV64])
225-
)
226-
assert build_selector("cp313-manylinux_riscv64")
227-
228-
229220
def test_testing_selector():
230221
# This is not a global import to keep pytest from collecting it as a test
231222
test_selector = cibuildwheel.selector.TestSelector(skip_config="cp36-*")

0 commit comments

Comments
 (0)