Skip to content

Path to ship wheels from scikit-learn-release repo #34320

Open
1 of 1 issue completed
Open

Description

@thomasjpfan

Warning

This issue is not yet ready for a PR. If you are interested in contributing to scikit-learn, please have a look at our contributing guidelines, and in particular the sections for new contributors and the "Needs triage" label.

I created https://github.com/scikit-learn/scikit-learn-release/ to move wheel building out of this repo. Once it's all configure, this is what releasing will look like:

  1. In this repo, create a new release branch and prepare it for release. Open any PRs and merge in changes.
  2. Trigger the Publish sdist and wheels with the "chain" option. Also set ref to the branch name on scikit-learn/scikit-learn.
  3. With the "chain" option, the wheels are built first and stored as artifacts. The Github UI will need a release manager to trigger the publish to testpypi.
    • The "chain" will publish to testpypi first and then pypi afterwards.
  4. After testpypi publish succeeds, push a tag to scikit-learn/scikit-learn for the release.
  5. In the Github UI, the release manager triggers the final publish to pypi.

Plan

Other things to do at one point

  • Update README.md to do something similar to numpy
  • Reenable CI in scikit-learn-release to run all tests. I have been using pytest --pyargs sklearn.tests.test_dummy for a faster iteration loop. Example
  • In wheels.yml, add secrets for nightly uploads for scientific-python-nightly-wheels

Sub-issues

Sub-issues

1 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. added
    Needs Triage
    on Jun 17, 2026
  2. ogrisel commented on Jun 19, 2026

    @ogrisel
    Member
    1. In scikit-learn-release, create a release branch there too and update SOURCE_REF_TO_BUILD to the release branch.

    Do we need this? Couldn't the SOURCE_REF_TO_BUILD value be passed via a new input field in the manual workflow_dispatch form instead?

  3. added
    Needs Decision
    and removed
    Needs Triage
    on Jun 19, 2026
  4. github-actions commented on Jun 19, 2026

    @github-actions
  5. ogrisel commented on Jun 19, 2026

    @ogrisel
    Member
    1. With the "chain" option, the wheels are built first and stored as artifacts. The Github UI will need a release manager to trigger the publish to testpypi.

      The "chain" will publish to testpypi first and then pypi afterwards

    In which UI does this manual operation happen?

  6. thomasjpfan commented on Jun 19, 2026

    @thomasjpfan
    MemberAuthor

    Do we need this? Couldn't the SOURCE_REF_TO_BUILD value be passed via a new input field in the manual workflow_dispatch form instead?

    Good point. Yea, that works as well.

    In which UI does this manual operation happen?

    It happens in the workflow run page. There will be a "Review deployment" button to unblock the next step. For example, this is what it looks for unblock the testpypi step:

    Image
  7. ogrisel commented on Jun 19, 2026

    @ogrisel
    Member

    TODO: document the policy (and/or a script) to update the contents of https://github.com/scikit-learn/scikit-learn-release/tree/main/requirements

    For the longer term, I would rather use explicit lockfiles instead of simple requirements files. This would improve reproducibility and ease auditing in case of suspicion of malware corruption of our release supply chain. I put more detailed in this issue scikit-learn/scikit-learn-release#1. We don't need to implement it all from the start though.

  8. ogrisel commented on Jun 19, 2026

    @ogrisel
    Member

    I think the github release artifact should also archive the resolved commit hash of SOURCE_REF_TO_BUILD along with the commit hash of scikit-learn-repo at the time of the workflow execution to later allow for independent reproducibility of the build. If we implement the lockfile management, we should also archive a copy of the lock files there.

  9. ogrisel commented on Jun 19, 2026

    @ogrisel
    Member

    Note: I reordered the TODO list in the description of this issue to do things in the right order.

  10. lesteve commented on Sep 4, 2026

    @lesteve
    Member

    I updated the issue description to reflect the current plan:

    • release 1.9.1 from scikit-learn-release around mid-/end-September. Take release notes in a .md file in scikit-learn-release
    • release 1.10 from scikit-learn-release around November/December. Update release notes in scikit-learn maintainer doc.
  11. changed the title [-]Path to ship wheels from scikit-learn-release[/-] [+]Path to ship wheels from scikit-learn-release repo[/+] on Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs Decision

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions