Skip to content

Commit f4b876b

Browse files
committed
[RC 0.11] build and test wheels for all versions (meta-pytorch#1245)
1 parent 89ada0a commit f4b876b

File tree

6 files changed

+35
-31
lines changed

6 files changed

+35
-31
lines changed

.github/workflows/linux_cuda_aarch64_wheel.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,28 +25,29 @@ defaults:
2525

2626
jobs:
2727
generate-matrix:
28-
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
28+
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.11
2929
with:
3030
package-type: wheel
3131
os: linux-aarch64
3232
test-infra-repository: pytorch/test-infra
33-
test-infra-ref: main
33+
test-infra-ref: release/2.11
3434
with-cpu: disable
3535
with-xpu: disable
3636
with-rocm: disable
3737
with-cuda: enable
3838
build-python-only: "disable"
39+
python-versions: '["3.10", "3.11", "3.12", "3.13", "3.14"]'
3940
build:
4041
needs: generate-matrix
4142
strategy:
4243
fail-fast: false
4344
name: Build and Upload wheel
44-
uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main
45+
uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@release/2.11
4546
with:
4647
repository: meta-pytorch/torchcodec
4748
ref: ""
4849
test-infra-repository: pytorch/test-infra
49-
test-infra-ref: main
50+
test-infra-ref: release/2.11
5051
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
5152
pre-script: packaging/pre_build_script.sh
5253
post-script: packaging/post_build_script.sh
@@ -62,8 +63,8 @@ jobs:
6263
strategy:
6364
fail-fast: false
6465
matrix:
65-
python-version: ['3.10']
66-
cuda-version: ['12.6']
66+
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
67+
cuda-version: ['12.6', '12.8', '13.0']
6768
ffmpeg-version-for-tests: ['4.4.2', '5.1.2', '6.1.1', '7.0.1', '8.0']
6869
container:
6970
image: "pytorch/manylinuxaarch64-builder:cuda${{ matrix.cuda-version }}"

.github/workflows/linux_cuda_wheel.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,28 +25,29 @@ defaults:
2525

2626
jobs:
2727
generate-matrix:
28-
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
28+
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.11
2929
with:
3030
package-type: wheel
3131
os: linux
3232
test-infra-repository: pytorch/test-infra
33-
test-infra-ref: main
33+
test-infra-ref: release/2.11
3434
with-cpu: disable
3535
with-xpu: disable
3636
with-rocm: disable
3737
with-cuda: enable
3838
build-python-only: "disable"
39+
python-versions: '["3.10", "3.11", "3.12", "3.13", "3.14"]'
3940
build:
4041
needs: generate-matrix
4142
strategy:
4243
fail-fast: false
4344
name: Build and Upload wheel
44-
uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main
45+
uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@release/2.11
4546
with:
4647
repository: meta-pytorch/torchcodec
4748
ref: ""
4849
test-infra-repository: pytorch/test-infra
49-
test-infra-ref: main
50+
test-infra-ref: release/2.11
5051
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
5152
pre-script: packaging/pre_build_script.sh
5253
post-script: packaging/post_build_script.sh
@@ -66,12 +67,12 @@ jobs:
6667
# PR.
6768
# For the actual release we should add that label and change this to
6869
# include more python versions.
69-
python-version: ['3.10']
70+
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
7071
# We test against 12.6 and 13.0 to avoid having too big of a CI matrix,
7172
# but for releases we should add 12.8.
72-
cuda-version: ['12.6', '13.0']
73+
cuda-version: ['12.6', '12.8', '13.0']
7374
# TODO: put back ffmpeg 5 https://github.com/pytorch/torchcodec/issues/325
74-
ffmpeg-version-for-tests: ['4.4.2', '6', '7', '8.0']
75+
ffmpeg-version-for-tests: ['4.4.2', '5', '6', '7', '8.0']
7576

7677
container:
7778
image: "pytorch/manylinux2_28-builder:cuda${{ matrix.cuda-version }}"

.github/workflows/linux_wheel.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,28 +26,29 @@ defaults:
2626
jobs:
2727

2828
generate-matrix:
29-
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
29+
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.11
3030
with:
3131
package-type: wheel
3232
os: linux
3333
test-infra-repository: pytorch/test-infra
34-
test-infra-ref: main
34+
test-infra-ref: release/2.11
3535
with-xpu: disable
3636
with-rocm: disable
3737
with-cuda: disable
3838
build-python-only: "disable"
39+
python-versions: '["3.10", "3.11", "3.12", "3.13", "3.14"]'
3940

4041
build:
4142
needs: generate-matrix
4243
strategy:
4344
fail-fast: false
4445
name: Build and Upload Linux wheel
45-
uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main
46+
uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@release/2.11
4647
with:
4748
repository: meta-pytorch/torchcodec
4849
ref: ""
4950
test-infra-repository: pytorch/test-infra
50-
test-infra-ref: main
51+
test-infra-ref: release/2.11
5152
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
5253
pre-script: packaging/pre_build_script.sh
5354
post-script: packaging/post_build_script.sh
@@ -62,7 +63,7 @@ jobs:
6263
strategy:
6364
fail-fast: false
6465
matrix:
65-
python-version: ['3.10']
66+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
6667
ffmpeg-version-for-tests: ['4.4.2', '5.1.2', '6.1.1', '7.0.1', '8.0']
6768
needs: build
6869
steps:

.github/workflows/macos_wheel.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,28 +26,29 @@ defaults:
2626
jobs:
2727

2828
generate-matrix:
29-
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
29+
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.11
3030
with:
3131
package-type: wheel
3232
os: macos-arm64
3333
test-infra-repository: pytorch/test-infra
34-
test-infra-ref: main
34+
test-infra-ref: release/2.11
3535
with-xpu: disable
3636
with-rocm: disable
3737
with-cuda: disable
3838
build-python-only: "disable"
39+
python-versions: '["3.10", "3.11", "3.12", "3.13", "3.14"]'
3940

4041
build:
4142
needs: generate-matrix
4243
strategy:
4344
fail-fast: false
4445
name: Build and Upload Mac wheel
45-
uses: pytorch/test-infra/.github/workflows/build_wheels_macos.yml@main
46+
uses: pytorch/test-infra/.github/workflows/build_wheels_macos.yml@release/2.11
4647
with:
4748
repository: meta-pytorch/torchcodec
4849
ref: ""
4950
test-infra-repository: pytorch/test-infra
50-
test-infra-ref: main
51+
test-infra-ref: release/2.11
5152
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
5253
pre-script: packaging/pre_build_script.sh
5354
post-script: packaging/post_build_script.sh
@@ -64,7 +65,7 @@ jobs:
6465
strategy:
6566
fail-fast: false
6667
matrix:
67-
python-version: ['3.10']
68+
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
6869
ffmpeg-version-for-tests: ['4.4.2', '5.1.2', '6.1.1', '7.0.1', '8.0']
6970
needs: build
7071
steps:

.github/workflows/windows_wheel.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,30 +26,30 @@ defaults:
2626
jobs:
2727

2828
generate-matrix:
29-
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
29+
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.11
3030
with:
3131
package-type: wheel
3232
os: windows
3333
test-infra-repository: pytorch/test-infra
34-
test-infra-ref: main
34+
test-infra-ref: release/2.11
3535
with-xpu: disable
3636
with-rocm: disable
3737
with-cuda: disable
3838
build-python-only: "disable"
39-
python-versions: '["3.10", "3.11", "3.12", "3.13"]'
39+
python-versions: '["3.10", "3.11", "3.12", "3.13", "3.14"]'
4040

4141

4242
build:
4343
needs: generate-matrix
4444
strategy:
4545
fail-fast: false
4646
name: Build and Upload Windows wheel
47-
uses: pytorch/test-infra/.github/workflows/build_wheels_windows.yml@main
47+
uses: pytorch/test-infra/.github/workflows/build_wheels_windows.yml@release/2.11
4848
with:
4949
repository: meta-pytorch/torchcodec
5050
ref: ""
5151
test-infra-repository: pytorch/test-infra
52-
test-infra-ref: main
52+
test-infra-ref: release/2.11
5353
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
5454
pre-script: packaging/pre_build_script.sh
5555
# post-script: packaging/post_build_script.sh TODO: consider enabling post-build checks for Windows
@@ -67,11 +67,11 @@ jobs:
6767
strategy:
6868
fail-fast: false
6969
matrix:
70-
python-version: ['3.10']
70+
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
7171
# TODO: FFmpeg 5 on Windows segfaults in avcodec_open2() when passing
7272
# bad parameters.
7373
# See https://github.com/pytorch/torchcodec/pull/806
74-
ffmpeg-version-for-tests: ['4.4.2', '6.1.1', '7.0.1', '8.0']
74+
ffmpeg-version-for-tests: ['4.4.2', '5.1.2', '6.1.1', '7.0.1', '8.0']
7575
needs: build
7676
steps:
7777
- name: Check out repo

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "torchcodec"
33
description = "A video decoder for PyTorch"
44
readme = "README.md"
55
requires-python = ">=3.10"
6-
license-files = ["LICENSE"]
6+
license = {file = "LICENSE"}
77
authors = [
88
{ name = "PyTorch Team", email = "packages@pytorch.org" },
99
]

0 commit comments

Comments
 (0)