Skip to content

Commit 2b06674

Browse files
seddonymCopilot
andcommitted
Modify Python version in workflows for release
Updated Python version requirements in workflow files for compatibility. Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 97f7fe7 commit 2b06674

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

‎CONTRIBUTING.rst‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,13 @@ Adding support for a new Python version
131131
classifiers.
132132
2. In ``.github/workflows/main.yml``, add ``"3.x"`` and ``"3.xt"`` to the
133133
``test`` job's ``python-version`` matrix.
134-
3. In ``.github/workflows/release.yml``, add ``"3.x"`` and ``"3.xt"`` to every interpreter
135-
list in the file (``linux``, ``musllinux`` and ``windows`` jobs' YAML anchors, plus the
136-
``macos`` job's literal interpreter lists in two places).
134+
3. In ``.github/workflows/release.yml``, add ``"3.x"`` and ``"3.xt"`` to the shared
135+
``linux`` and ``musllinux`` interpreter lists. For ``windows``, add ``"3.x"`` to
136+
the regular interpreter lists (including the ARM64 literal list) and ``"3.xt"``
137+
to the free-threaded interpreter lists. For ``macos``, add ``3.x`` to the regular
138+
``actions/setup-python`` list and matching ``--interpreter`` arguments, and ``3.xt``
139+
to the corresponding free-threaded step's list and arguments. Keep the regular and
140+
free-threaded installations separate on Windows/macOS to avoid binary shadowing.
137141
4. Push a branch with this change and trigger the release workflow manually, without pushing
138142
a tag, to see which targets can actually build the new version::
139143

0 commit comments

Comments
 (0)