check-python-versions
check-python-versions copied to clipboard
parse cibuildwheel configuration
Recentily I've found an useful package to build python on different OS/archs: cibuildwheel.
It has CIBW_BUILD, CIBW_SKIP configurations regarding python version used to build and test the package (locally and remotely).
Those configuration can be set as environment variables into github action or into pyproject.toml file. E.g. as environment variable:
# Build python 3.10 3.11
CIBW_BUILD: cp310-* cp11-*
# Skip CPython 3.6 and CPython 3.7
CIBW_SKIP: cp36-* cp37-*
as pyproject.toml
# Build python 3.10 3.11
build= ["cp310-*", "cp11-*"]
# Skip CPython 3.6 and CPython 3.7
skip = ["cp36-*", "cp37-*"]
when using this package, it could be useful to add the extracted information to the final list.