diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 92daeddbd..f9b7e4b05 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -26,6 +26,7 @@ jobs: with-rocm: disable with-cuda: enable build-python-only: "disable" + python-versions: '["3.10", "3.11", "3.12", "3.13", "3.14"]' build: needs: generate-matrix strategy: @@ -92,7 +93,7 @@ jobs: run: ${CONDA_RUN} python -m pip install --upgrade pip - name: Install PyTorch run: | - ${CONDA_RUN} python -m pip install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cu${{ env.cuda_version_without_periods }} + ${CONDA_RUN} python -m pip install torch torchvision --index-url https://download.pytorch.org/whl/cu${{ env.cuda_version_without_periods }} ${CONDA_RUN} python -c 'import torch; print(f"{torch.__version__}"); print(f"{torch.__file__}"); print(f"{torch.cuda.is_available()=}")' - name: Install torchcodec from the wheel run: | diff --git a/.github/workflows/linux_cuda_wheel.yaml b/.github/workflows/linux_cuda_wheel.yaml index 4e711b8c3..5a5a75bee 100644 --- a/.github/workflows/linux_cuda_wheel.yaml +++ b/.github/workflows/linux_cuda_wheel.yaml @@ -36,6 +36,7 @@ jobs: with-rocm: disable with-cuda: enable build-python-only: "disable" + python-versions: '["3.10", "3.11", "3.12", "3.13", "3.14"]' build: needs: generate-matrix strategy: @@ -66,12 +67,12 @@ jobs: # PR. # For the actual release we should add that label and change this to # include more python versions. - python-version: ['3.10'] + python-version: ['3.10', '3.11', '3.12', '3.13', '3.14'] # We test against 12.6 and 13.0 to avoid having too big of a CI matrix, # but for releases we should add 12.8. - cuda-version: ['12.6', '13.0'] + cuda-version: ['12.6', '12.8', '13.0'] # TODO: put back ffmpeg 5 https://github.com/pytorch/torchcodec/issues/325 - ffmpeg-version-for-tests: ['4.4.2', '6', '7', '8.0'] + ffmpeg-version-for-tests: ['4.4.2', '5', '6', '7', '8.0'] container: image: "pytorch/manylinux2_28-builder:cuda${{ matrix.cuda-version }}" @@ -109,7 +110,7 @@ jobs: run: ${CONDA_RUN} python -m pip install --upgrade pip - name: Install PyTorch run: | - ${CONDA_RUN} python -m pip install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cu${{ env.cuda_version_without_periods }} + ${CONDA_RUN} python -m pip install torch torchvision --index-url https://download.pytorch.org/whl/cu${{ env.cuda_version_without_periods }} ${CONDA_RUN} python -c 'import torch; print(f"{torch.__version__}"); print(f"{torch.__file__}"); print(f"{torch.cuda.is_available()=}")' - name: Install torchcodec from the wheel run: | diff --git a/.github/workflows/linux_wheel.yaml b/.github/workflows/linux_wheel.yaml index cccbedc25..93812ab09 100644 --- a/.github/workflows/linux_wheel.yaml +++ b/.github/workflows/linux_wheel.yaml @@ -36,6 +36,7 @@ jobs: with-rocm: disable with-cuda: disable build-python-only: "disable" + python-versions: '["3.10", "3.11", "3.12", "3.13", "3.14"]' build: needs: generate-matrix @@ -62,7 +63,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ['3.10'] + python-version: ['3.10', '3.11', '3.12', '3.13', '3.14'] ffmpeg-version-for-tests: ['4.4.2', '5.1.2', '6.1.1', '7.0.1', '8.0'] needs: build steps: @@ -85,7 +86,7 @@ jobs: run: python -m pip install --upgrade pip - name: Install PyTorch run: | - python -m pip install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cpu + python -m pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu - name: Install torchcodec from the wheel run: | wheel_path=`find pytorch/torchcodec/dist -type f -name "*.whl"` diff --git a/.github/workflows/macos_wheel.yaml b/.github/workflows/macos_wheel.yaml index ead45784d..651ae7016 100644 --- a/.github/workflows/macos_wheel.yaml +++ b/.github/workflows/macos_wheel.yaml @@ -36,6 +36,7 @@ jobs: with-rocm: disable with-cuda: disable build-python-only: "disable" + python-versions: '["3.10", "3.11", "3.12", "3.13", "3.14"]' build: needs: generate-matrix @@ -64,7 +65,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ['3.10'] + python-version: ['3.10', '3.11', '3.12', '3.13', '3.14'] ffmpeg-version-for-tests: ['4.4.2', '5.1.2', '6.1.1', '7.0.1', '8.0'] needs: build steps: @@ -86,7 +87,7 @@ jobs: - name: Install PyTorch run: | - python -m pip install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cpu + python -m pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu - name: Install torchcodec from the wheel run: | diff --git a/.github/workflows/windows_wheel.yaml b/.github/workflows/windows_wheel.yaml index 8a9b5b740..f20e41dd0 100644 --- a/.github/workflows/windows_wheel.yaml +++ b/.github/workflows/windows_wheel.yaml @@ -36,7 +36,7 @@ jobs: with-rocm: disable with-cuda: disable build-python-only: "disable" - python-versions: '["3.10", "3.11", "3.12", "3.13"]' + python-versions: '["3.10", "3.11", "3.12", "3.13", "3.14"]' build: @@ -67,11 +67,11 @@ jobs: strategy: fail-fast: false matrix: - python-version: ['3.10'] + python-version: ['3.10', '3.11', '3.12', '3.13', '3.14'] # TODO: FFmpeg 5 on Windows segfaults in avcodec_open2() when passing # bad parameters. # See https://github.com/pytorch/torchcodec/pull/806 - ffmpeg-version-for-tests: ['4.4.2', '6.1.1', '7.0.1', '8.0'] + ffmpeg-version-for-tests: ['4.4.2', '5.1.2', '6.1.1', '7.0.1', '8.0'] needs: build steps: - uses: actions/download-artifact@v4 @@ -93,7 +93,7 @@ jobs: run: python -m pip install --upgrade pip - name: Install PyTorch run: | - python -m pip install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cpu + python -m pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu - name: Install torchcodec from the wheel run: | wheel_path=`find pytorch/torchcodec/dist -type f -name "*.whl"` diff --git a/pyproject.toml b/pyproject.toml index 2f8b4da45..9dd85f0a7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ name = "torchcodec" description = "A video decoder for PyTorch" readme = "README.md" requires-python = ">=3.8" -license-files = ["LICENSE"] +license = {file = "LICENSE"} authors = [ { name = "PyTorch Team", email = "packages@pytorch.org" }, ] @@ -17,7 +17,7 @@ Documentation = "https://pytorch.org/torchcodec/stable/index.html" version = {file = "version.txt"} [build-system] -requires = ["setuptools>=61.0"] +requires = ["setuptools>=69.0"] build-backend = "setuptools.build_meta" [project.optional-dependencies] diff --git a/version.txt b/version.txt index 657e7c07f..ac39a106c 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -0.9.0a0 +0.9.0