Skip to content

Commit b3725a7

Browse files
authoredApr 24, 2025··
Release 0.3.0 (#651)
1 parent 484e2c8 commit b3725a7

File tree

7 files changed

+31
-29
lines changed

7 files changed

+31
-29
lines changed
 

‎.github/workflows/build_ffmpeg.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
fail-fast: false
2929
matrix:
3030
ffmpeg-version: ["4.4.4", "5.1.4", "6.1.1", "7.0.1"]
31-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
31+
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.7
3232
permissions:
3333
id-token: write
3434
contents: read
@@ -53,7 +53,7 @@ jobs:
5353
fail-fast: false
5454
matrix:
5555
ffmpeg-version: ["4.4.4", "5.1.4", "6.1.1", "7.0.1"]
56-
uses: pytorch/test-infra/.github/workflows/macos_job.yml@main
56+
uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.7
5757
with:
5858
job-name: Build
5959
upload-artifact: ffmpeg-lgpl-macos-${{ matrix.ffmpeg-version }}

‎.github/workflows/docs.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ defaults:
1515

1616
jobs:
1717
generate-matrix:
18-
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
18+
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.7
1919
with:
2020
package-type: wheel
2121
os: linux
2222
test-infra-repository: pytorch/test-infra
23-
test-infra-ref: main
23+
test-infra-ref: release/2.7
2424
with-cpu: disable
2525
with-xpu: disable
2626
with-rocm: disable
@@ -31,12 +31,12 @@ jobs:
3131
strategy:
3232
fail-fast: false
3333
name: Build and Upload wheel
34-
uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main
34+
uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@release/2.7
3535
with:
3636
repository: pytorch/torchcodec
3737
ref: ""
3838
test-infra-repository: pytorch/test-infra
39-
test-infra-ref: main
39+
test-infra-ref: release/2.7
4040
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
4141
pre-script: packaging/pre_build_script.sh
4242
post-script: packaging/post_build_script.sh
@@ -73,7 +73,7 @@ jobs:
7373
name: pytorch_torchcodec__${{ matrix.python-version }}_cu${{ env.cuda_version_without_periods }}_x86_64
7474
path: pytorch/torchcodec/dist/
7575
- name: Setup miniconda using test-infra
76-
uses: pytorch/test-infra/.github/actions/setup-miniconda@main
76+
uses: pytorch/test-infra/.github/actions/setup-miniconda@release/2.7
7777
with:
7878
python-version: ${{ matrix.python-version }}
7979
# We install conda packages at the start because otherwise conda may have conflicts with dependencies.
@@ -91,7 +91,7 @@ jobs:
9191
run: ${CONDA_RUN} python -m pip install --upgrade pip
9292
- name: Install PyTorch
9393
run: |
94-
${CONDA_RUN} python -m pip install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cu${{ env.cuda_version_without_periods }}
94+
${CONDA_RUN} python -m pip install torch torchvision --index-url https://download.pytorch.org/whl/cu${{ env.cuda_version_without_periods }}
9595
${CONDA_RUN} python -c 'import torch; print(f"{torch.__version__}"); print(f"{torch.__file__}"); print(f"{torch.cuda.is_available()=}")'
9696
- name: Install torchcodec from the wheel
9797
run: |

‎.github/workflows/linux_cuda_wheel.yaml

+8-8
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ 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.7
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.7
3434
with-cpu: disable
3535
with-xpu: disable
3636
with-rocm: disable
@@ -41,12 +41,12 @@ jobs:
4141
strategy:
4242
fail-fast: false
4343
name: Build and Upload wheel
44-
uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main
44+
uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@release/2.7
4545
with:
4646
repository: pytorch/torchcodec
4747
ref: ""
4848
test-infra-repository: pytorch/test-infra
49-
test-infra-ref: main
49+
test-infra-ref: release/2.7
5050
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
5151
pre-script: packaging/pre_build_script.sh
5252
post-script: packaging/post_build_script.sh
@@ -66,10 +66,10 @@ jobs:
6666
# PR.
6767
# For the actual release we should add that label and change this to
6868
# include more python versions.
69-
python-version: ['3.9']
69+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
7070
cuda-version: ['11.8', '12.6', '12.8']
7171
# TODO: put back ffmpeg 5 https://github.com/pytorch/torchcodec/issues/325
72-
ffmpeg-version-for-tests: ['4.4.2', '6', '7']
72+
ffmpeg-version-for-tests: ['4.4.2', '5', '6', '7']
7373

7474
container:
7575
image: "pytorch/manylinux2_28-builder:cuda${{ matrix.cuda-version }}"
@@ -87,7 +87,7 @@ jobs:
8787
name: pytorch_torchcodec__${{ matrix.python-version }}_cu${{ env.cuda_version_without_periods }}_x86_64
8888
path: pytorch/torchcodec/dist/
8989
- name: Setup miniconda using test-infra
90-
uses: pytorch/test-infra/.github/actions/setup-miniconda@main
90+
uses: pytorch/test-infra/.github/actions/setup-miniconda@release/2.7
9191
with:
9292
python-version: ${{ matrix.python-version }}
9393
# We install conda packages at the start because otherwise conda may have conflicts with dependencies.
@@ -105,7 +105,7 @@ jobs:
105105
run: ${CONDA_RUN} python -m pip install --upgrade pip
106106
- name: Install PyTorch
107107
run: |
108-
${CONDA_RUN} python -m pip install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cu${{ env.cuda_version_without_periods }}
108+
${CONDA_RUN} python -m pip install torch torchvision --index-url https://download.pytorch.org/whl/cu${{ env.cuda_version_without_periods }}
109109
${CONDA_RUN} python -c 'import torch; print(f"{torch.__version__}"); print(f"{torch.__file__}"); print(f"{torch.cuda.is_available()=}")'
110110
- name: Install torchcodec from the wheel
111111
run: |

‎.github/workflows/linux_wheel.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ 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.7
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.7
3535
with-xpu: disable
3636
with-rocm: disable
3737
with-cuda: disable
@@ -42,12 +42,12 @@ jobs:
4242
strategy:
4343
fail-fast: false
4444
name: Build and Upload Linux wheel
45-
uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main
45+
uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@release/2.7
4646
with:
4747
repository: pytorch/torchcodec
4848
ref: ""
4949
test-infra-repository: pytorch/test-infra
50-
test-infra-ref: main
50+
test-infra-ref: release/2.7
5151
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
5252
pre-script: packaging/pre_build_script.sh
5353
post-script: packaging/post_build_script.sh
@@ -62,7 +62,7 @@ jobs:
6262
strategy:
6363
fail-fast: false
6464
matrix:
65-
python-version: ['3.9']
65+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
6666
ffmpeg-version-for-tests: ['4.4.2', '5.1.2', '6.1.1', '7.0.1']
6767
needs: build
6868
steps:
@@ -81,7 +81,7 @@ jobs:
8181
run: python -m pip install --upgrade pip
8282
- name: Install PyTorch
8383
run: |
84-
python -m pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu
84+
python -m pip install torch --index-url https://download.pytorch.org/whl/cpu
8585
- name: Install torchcodec from the wheel
8686
run: |
8787
wheel_path=`find pytorch/torchcodec/dist -type f -name "*.whl"`

‎.github/workflows/macos_wheel.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ 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.7
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.7
3535
with-xpu: disable
3636
with-rocm: disable
3737
with-cuda: disable
@@ -42,12 +42,12 @@ jobs:
4242
strategy:
4343
fail-fast: false
4444
name: Build and Upload Mac wheel
45-
uses: pytorch/test-infra/.github/workflows/build_wheels_macos.yml@main
45+
uses: pytorch/test-infra/.github/workflows/build_wheels_macos.yml@release/2.7
4646
with:
4747
repository: pytorch/torchcodec
4848
ref: ""
4949
test-infra-repository: pytorch/test-infra
50-
test-infra-ref: main
50+
test-infra-ref: release/2.7
5151
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
5252
pre-script: packaging/pre_build_script.sh
5353
post-script: packaging/post_build_script.sh
@@ -63,7 +63,7 @@ jobs:
6363
strategy:
6464
fail-fast: false
6565
matrix:
66-
python-version: ['3.9']
66+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
6767
ffmpeg-version-for-tests: ['4.4.2', '5.1.2', '6.1.1', '7.0.1']
6868
needs: build
6969
steps:
@@ -85,7 +85,7 @@ jobs:
8585

8686
- name: Install PyTorch
8787
run: |
88-
python -m pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu
88+
python -m pip install torch --index-url https://download.pytorch.org/whl/cpu
8989
9090
- name: Install torchcodec from the wheel
9191
run: |

‎setup.py

+2
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,14 @@ def _write_version_files():
184184
# the content of `version.txt` plus some suffix like "+cpu" or "+cu112".
185185
# See
186186
# https://github.com/pytorch/test-infra/blob/61e6da7a6557152eb9879e461a26ad667c15f0fd/tools/pkg-helpers/pytorch_pkg_helpers/version.py#L113
187+
version = version.replace("+cpu", "")
187188
with open(_ROOT_DIR / "version.txt", "w") as f:
188189
f.write(f"{version}")
189190
else:
190191
with open(_ROOT_DIR / "version.txt") as f:
191192
version = f.readline().strip()
192193
try:
194+
version = version.replace("+cpu", "")
193195
sha = (
194196
subprocess.check_output(
195197
["git", "rev-parse", "HEAD"], cwd=str(_ROOT_DIR)

‎version.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.3.0a0
1+
0.3.0

0 commit comments

Comments
 (0)
Please sign in to comment.