Skip to content

Commit 4b33b00

Browse files
committed
Revert "Block on Python 3.13 version (pytorch#1899)"
This reverts commit 8e013c2.
1 parent ac4f88e commit 4b33b00

File tree

1 file changed

+3
-31
lines changed

1 file changed

+3
-31
lines changed

.github/workflows/build_linux_wheels.yaml

Lines changed: 3 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -27,46 +27,18 @@ jobs:
2727
with-cuda: enable
2828
with-rocm: enable
2929
build-python-only: enable
30-
# TODO: Remove `filter-python-version` after PyArrow releases v18
31-
filter-python-versions:
32-
needs: generate-matrix
33-
runs-on: ubuntu-latest
34-
outputs:
35-
matrix: ${{ steps.set-matrix.outputs.matrix }}
36-
steps:
37-
- name: Filter matrix to exclude Python 3.13
38-
id: set-matrix
39-
shell: python
40-
env:
41-
input-matrix: ${{ needs.generate-matrix.outputs.matrix }}
42-
run: |
43-
import os
44-
import json
45-
46-
# Grab environment variables
47-
input_matrix = json.loads(os.environ["input-matrix"])
48-
github_output_file = os.environ["GITHUB_OUTPUT"]
49-
50-
# Filter out any builds for 3.13
51-
filtered_matrix = {"include": []}
52-
for build in input_matrix["include"]:
53-
if build["python_version"] != "3.13":
54-
filtered_matrix["include"].append(build)
55-
56-
# Write the new matrix to the default outputs file
57-
with open(github_output_file, "w") as handle:
58-
handle.write(f"matrix={json.dumps(filtered_matrix)}")
5930
build:
60-
needs: filter-python-versions
31+
needs: generate-matrix
6132
name: ${{ matrix.repository }}
6233
uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main
34+
if: ${{ needs.generate-matrix.outputs.matrix.python_version }} != '3.13'
6335
strategy:
6436
fail-fast: false
6537
with:
6638
repository: pytorch/torchtune
6739
ref: ""
6840
package-name: torchtune
69-
build-matrix: ${{ needs.filter-python-versions.outputs.matrix }}
41+
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
7042
pre-script: .github/scripts/pre_build_script.sh
7143
trigger-event: ${{ github.event_name }}
7244
build-platform: 'python-build-package'

0 commit comments

Comments
 (0)