* Add CPython 3.10 support * Fix logger displaying CPython 3.1 instead of 3.10 * Fix tests failing with CPython 3.10 * Use pytest instead of nose * feat: --pre flag Apply suggestions from code review Co-authored-by: Matthieu Darbois <mayeut@users.noreply.github.com> * fix: update Python update script to process beta versions * refactor: prerelease-pythons * Use `strtobool` to parse `CIBW_PRERELEASE_PYTHONS` env var * Update python version filtering for universal2 & arm64 * Filter out CPython 3.10 and above for `test_manylinuxXXXX_only[manylinux1]` test * Use CIBW_BUILD filtering rather than CIBW_SKIP for test_docker_images * Use skip_patterns to filter out pre-releases * Use `prerelease_pythons` instead of `pre` * Reword `CIBW_PRERELEASE_PYTHONS` doc per review. * Use `CIBW_PRERELEASE_PYTHONS: True` for usage example. * Update `cibuildwheel --help` doc * docs: add note on spec.filter * Clean up the BuildSelector __repr__ by refactoring * fix: remove platform variants for CIBW_PRERELEASE_PYTHONS * docs: mention the flag Co-authored-by: Henry Schreiner <henryschreineriii@gmail.com> Co-authored-by: Joe Rickerby <joerick@mac.com>
36 lines
1.0 KiB
Python
36 lines
1.0 KiB
Python
import textwrap
|
|
|
|
from . import test_projects, utils
|
|
|
|
project_with_skip_asserts = test_projects.new_c_project(
|
|
setup_py_add=textwrap.dedent(
|
|
r"""
|
|
# explode if run on PyPyor Python 3.7 (these should be skipped)
|
|
if sys.implementation.name != "cpython":
|
|
raise Exception("Only CPython shall be built")
|
|
if sys.version_info[0:2] == (3, 7):
|
|
raise Exception("CPython 3.7 should be skipped")
|
|
"""
|
|
)
|
|
)
|
|
|
|
|
|
def test(tmp_path):
|
|
project_dir = tmp_path / "project"
|
|
project_with_skip_asserts.generate(project_dir)
|
|
|
|
# build the wheels
|
|
actual_wheels = utils.cibuildwheel_run(
|
|
project_dir,
|
|
add_env={
|
|
"CIBW_BUILD": "cp3*-*",
|
|
"CIBW_SKIP": "cp37-*",
|
|
},
|
|
)
|
|
|
|
# check that we got the right wheels. There should be no PyPy or 3.7.
|
|
expected_wheels = [
|
|
w for w in utils.expected_wheels("spam", "0.1.0") if ("-cp3" in w) and ("-cp37" not in w)
|
|
]
|
|
assert set(actual_wheels) == set(expected_wheels)
|