Skip to content

CI: Build cp310-cp315 wheels with cibuildwheel 4.3.1 (trial build) - #27

Merged
bashtage merged 1 commit into
mainfrom
lm71-whl1-wheels
Oct 12, 2026
Merged

bashtage merged 1 commit into
mainfrom
lm71-whl1-wheels

Conversation

@bashtage

Copy link
Copy Markdown
Owner

Prepares the linearmodels 7.1 wheels for Python 3.15.0 final and pytest 9. As committed this is the trial configuration: it builds linearmodels main and uploads nothing. Open it as a pull request to run all 24 jobs. The change for the release itself is two lines, listed under "Release day".

Changes to .github/workflows/build-wheels.yml

  • pypa/cibuildwheel v4.2 -> v4.3.1. The old pin resolves to v4.2.1, which builds and tests with CPython 3.15.0rc2 (v4.3.0 has rc3). v4.3.1 is the first release with 3.15.0 final, which came out on 2026-10-09.
  • cp315 is added to the Python matrix. Four runners and six Pythons are 24 jobs. Each Python gives six wheels (manylinux x86_64, manylinux aarch64, musllinux x86_64, Windows AMD64, macOS arm64, macOS x86_64), so 36 wheels where 7.0 had 30.
  • CIBW_TEST_REQUIRES pytest==8.4.2 -> pytest>=9,<10. linearmodels 7.1 sets minversion = "9.0" in the pyproject.toml it installs next to the package, and linearmodels.test() runs pytest on that directory, so pytest 8.4.2 would stop with a usage error before running a test in every job that runs tests. The specifier contains < and >, which cibuildwheel before v4.3.0 handed to cmd.exe on Windows (fix: don't run call() through cmd.exe on Windows pypa/cibuildwheel#2978), so this pin needs the new cibuildwheel.
  • BUILD_COMMIT "v7.0" -> "main" and PYPI_UPLOAD true -> false, for the trial only. Pull requests from branches of this repository receive the PyPI secrets, and the upload step runs after every build while PYPI_UPLOAD is true, so a trial with it set would upload wheels built from main.
  • OPENLAS_NUM_THREADS -> OPENBLAS_NUM_THREADS. The misspelt variable was never read, so OpenBLAS was not limited to one thread. cibuildwheel passes only the variables listed in CIBW_ENVIRONMENT_PASS_LINUX into the Linux containers and this workflow lists none, so the fix applies to the Windows and macOS jobs.

No free-threaded wheels. cibuildwheel v4.3.1 has no opt-in group for them (they are built unless skipped), so CIBW_BUILD is what keeps them out: "cp315-" does not match "cp315t-". CIBW_BUILD is unchanged.

What the trial should show

  • All 24 jobs green. fail-fast is off, so a failure does not hide the others. The jobs that matter most are the 12 macOS ones (macos-latest is arm64, macos-15-intel is x86_64), which nothing else exercises, and the musllinux wheel in each Ubuntu job. The aarch64 wheels are built under QEMU and their tests are skipped.
  • 36 wheels. The Summary page of the run has one table per job: three wheels for each Ubuntu job (manylinux_x86_64, manylinux_aarch64, musllinux_x86_64) and one for every other job, about 1.5 MB each (7.0: 1.50-1.53 MB).
  • No cp314t or cp315t wheel or build identifier in any job.
  • "All PyPi uploading is disabled" in the Upload wheels step of every job.

Release day, once the trial is green
BUILD_COMMIT: "v7.1"
PYPI_UPLOAD: true
BUILD_COMMIT is checked out in the submodule before every build, so the submodule pointer does not have to move. "RLS: Release 7" moved it to v7.0 as well; doing the same records what was released.

Checked locally, without running Actions

  • The file parses with yaml.safe_load, the parsed document differs from origin/main in exactly the values above, and the file is still LF-only.
  • Replaying cibuildwheel v4.3.1's build selection (selector.py and build-platforms.toml, read from the tag) over this workflow selects 36 identifiers, six per Python and none free-threaded. The same replay of the old workflow gives the 30 wheels that 7.0 shipped.
  • From the wheel tags on PyPI, pip's newest-first choice is a wheel and not an sdist for every compiled package, on every platform of the matrix and for each Python from 3.10 to 3.15: numpy, Cython, ninja and patchelf in the build environment, aarch64 included, and numpy, scipy, pandas, statsmodels and wrapt in the test environment. Those five are the only compiled packages among its 24. On 3.15 they are numpy 2.5.4, scipy 1.18.1, pandas 3.0.6, statsmodels 0.15.0 and wrapt 2.5.0.
  • A pytest older than minversion exits with code 4 and "'minversion' requires pytest-X, actual pytest-Y" before it runs a test. Not checked: the build itself, which only the trial can show.

Prepares the linearmodels 7.1 wheels for Python 3.15.0 final and pytest 9.
As committed this is the trial configuration: it builds linearmodels main
and uploads nothing. Open it as a pull request to run all 24 jobs. The
change for the release itself is two lines, listed under "Release day".

Changes to .github/workflows/build-wheels.yml
- pypa/cibuildwheel v4.2 -> v4.3.1. The old pin resolves to v4.2.1, which
  builds and tests with CPython 3.15.0rc2 (v4.3.0 has rc3). v4.3.1 is the
  first release with 3.15.0 final, which came out on 2026-10-09.
- cp315 is added to the Python matrix. Four runners and six Pythons are 24
  jobs. Each Python gives six wheels (manylinux x86_64, manylinux aarch64,
  musllinux x86_64, Windows AMD64, macOS arm64, macOS x86_64), so 36 wheels
  where 7.0 had 30.
- CIBW_TEST_REQUIRES pytest==8.4.2 -> pytest>=9,<10. linearmodels 7.1 sets
  minversion = "9.0" in the pyproject.toml it installs next to the package,
  and linearmodels.test() runs pytest on that directory, so pytest 8.4.2
  would stop with a usage error before running a test in every job that
  runs tests. The specifier contains < and >, which cibuildwheel before
  v4.3.0 handed to cmd.exe on Windows (pypa/cibuildwheel#2978), so this pin
  needs the new cibuildwheel.
- BUILD_COMMIT "v7.0" -> "main" and PYPI_UPLOAD true -> false, for the trial
  only. Pull requests from branches of this repository receive the PyPI
  secrets, and the upload step runs after every build while PYPI_UPLOAD is
  true, so a trial with it set would upload wheels built from main.
- OPENLAS_NUM_THREADS -> OPENBLAS_NUM_THREADS. The misspelt variable was
  never read, so OpenBLAS was not limited to one thread. cibuildwheel passes
  only the variables listed in CIBW_ENVIRONMENT_PASS_LINUX into the Linux
  containers and this workflow lists none, so the fix applies to the
  Windows and macOS jobs.

No free-threaded wheels. cibuildwheel v4.3.1 has no opt-in group for them
(they are built unless skipped), so CIBW_BUILD is what keeps them out:
"cp315-*" does not match "cp315t-*". CIBW_BUILD is unchanged.

What the trial should show
- All 24 jobs green. fail-fast is off, so a failure does not hide the
  others. The jobs that matter most are the 12 macOS ones (macos-latest is
  arm64, macos-15-intel is x86_64), which nothing else exercises, and the
  musllinux wheel in each Ubuntu job. The aarch64 wheels are built under
  QEMU and their tests are skipped.
- 36 wheels. The Summary page of the run has one table per job: three
  wheels for each Ubuntu job (manylinux_x86_64, manylinux_aarch64,
  musllinux_x86_64) and one for every other job, about 1.5 MB each (7.0:
  1.50-1.53 MB).
- No cp314t or cp315t wheel or build identifier in any job.
- "All PyPi uploading is disabled" in the Upload wheels step of every job.

Release day, once the trial is green
    BUILD_COMMIT: "v7.1"
    PYPI_UPLOAD: true
BUILD_COMMIT is checked out in the submodule before every build, so the
submodule pointer does not have to move. "RLS: Release 7" moved it to v7.0
as well; doing the same records what was released.

Checked locally, without running Actions
- The file parses with yaml.safe_load, the parsed document differs from
  origin/main in exactly the values above, and the file is still LF-only.
- Replaying cibuildwheel v4.3.1's build selection (selector.py and
  build-platforms.toml, read from the tag) over this workflow selects 36
  identifiers, six per Python and none free-threaded. The same replay of the
  old workflow gives the 30 wheels that 7.0 shipped.
- From the wheel tags on PyPI, pip's newest-first choice is a wheel and not
  an sdist for every compiled package, on every platform of the matrix and
  for each Python from 3.10 to 3.15: numpy, Cython, ninja and patchelf in
  the build environment, aarch64 included, and numpy, scipy, pandas,
  statsmodels and wrapt in the test environment. Those five are the only
  compiled packages among its 24. On 3.15 they are numpy 2.5.4, scipy
  1.18.1, pandas 3.0.6, statsmodels 0.15.0 and wrapt 2.5.0.
- A pytest older than minversion exits with code 4 and "'minversion'
  requires pytest-X, actual pytest-Y" before it runs a test.
Not checked: the build itself, which only the trial can show.
@bashtage
bashtage merged commit 14d8130 into main Oct 12, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant