From 872ac432a01f5e27b779581fc706af2fbd1122d9 Mon Sep 17 00:00:00 2001 From: Ahmad Sharif Date: Thu, 15 Aug 2024 09:01:47 -0700 Subject: [PATCH 1/5] 0.0.3 release --- .github/workflows/wheel.yaml | 10 ++++++---- src/torchcodec/__init__.py | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/wheel.yaml b/.github/workflows/wheel.yaml index 81e8df2a3..d33e725fe 100644 --- a/.github/workflows/wheel.yaml +++ b/.github/workflows/wheel.yaml @@ -47,18 +47,19 @@ jobs: test-infra-ref: main build-matrix: ${{ needs.generate-matrix.outputs.matrix }} post-script: packaging/post_build_script.sh + env-var-script: packaging/env_var_script.sh smoke-test-script: packaging/fake_smoke_test.py package-name: torchcodec trigger-event: ${{ github.event_name }} build-platform: "python-build-package" - build-command: "BUILD_AGAINST_ALL_FFMPEG_FROM_S3=1 python -m build --wheel -vvv --no-isolation" + wheel-build-extra-args: "-vvv --no-isolation" install-and-test: runs-on: ubuntu-latest strategy: fail-fast: false matrix: - python-version: ['3.9'] + python-version: ['3.9', '3.10', '3.11', '3.12'] ffmpeg-version-for-tests: ['4.4.2', '5.1.2', '6.1.1', '7.0.1'] if: ${{ always() }} needs: build @@ -78,7 +79,7 @@ jobs: run: python -m pip install --upgrade pip - name: Install PyTorch run: | - python -m pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu + python -m pip install torch --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"` @@ -101,9 +102,10 @@ jobs: - name: Install test dependencies run: | - python -m pip install --pre torchvision --index-url https://download.pytorch.org/whl/nightly/cpu + python -m pip install torchvision --index-url https://download.pytorch.org/whl/cpu # Ideally we would find a way to get those dependencies from pyproject.toml python -m pip install numpy pytest pillow + python -c "import torch; print(f'{torch.__version__ = }')" - name: Delete the src/ folder just for fun run: | diff --git a/src/torchcodec/__init__.py b/src/torchcodec/__init__.py index a97c32ce0..a88f68270 100644 --- a/src/torchcodec/__init__.py +++ b/src/torchcodec/__init__.py @@ -6,4 +6,4 @@ from . import decoders # noqa -__version__ = "0.0.2.dev" +__version__ = "0.0.3.dev" From b7d33d848831022e8b11edb15fca7082d6d4dfaf Mon Sep 17 00:00:00 2001 From: Ahmad Sharif Date: Thu, 15 Aug 2024 09:08:34 -0700 Subject: [PATCH 2/5] . --- .github/workflows/wheel.yaml | 2 +- src/torchcodec/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/wheel.yaml b/.github/workflows/wheel.yaml index d33e725fe..f3f7039cd 100644 --- a/.github/workflows/wheel.yaml +++ b/.github/workflows/wheel.yaml @@ -47,11 +47,11 @@ jobs: test-infra-ref: main build-matrix: ${{ needs.generate-matrix.outputs.matrix }} post-script: packaging/post_build_script.sh - env-var-script: packaging/env_var_script.sh smoke-test-script: packaging/fake_smoke_test.py package-name: torchcodec trigger-event: ${{ github.event_name }} build-platform: "python-build-package" + build-command: "BUILD_AGAINST_ALL_FFMPEG_FROM_S3=1 python -m build --wheel -vvv --no-isolation" wheel-build-extra-args: "-vvv --no-isolation" install-and-test: diff --git a/src/torchcodec/__init__.py b/src/torchcodec/__init__.py index a88f68270..79957dd1f 100644 --- a/src/torchcodec/__init__.py +++ b/src/torchcodec/__init__.py @@ -6,4 +6,4 @@ from . import decoders # noqa -__version__ = "0.0.3.dev" +__version__ = "0.0.3" From fe8c5580ef2c48175ae34ad696963a405fa4c8d7 Mon Sep 17 00:00:00 2001 From: Ahmad Sharif Date: Thu, 15 Aug 2024 09:09:28 -0700 Subject: [PATCH 3/5] . --- examples/basic_example.py | 1 - 1 file changed, 1 deletion(-) diff --git a/examples/basic_example.py b/examples/basic_example.py index 6f5567115..abbc1b469 100644 --- a/examples/basic_example.py +++ b/examples/basic_example.py @@ -171,4 +171,3 @@ def plot(frames: torch.Tensor, title : Optional[str] = None): # %% plot(frame_at_2_seconds.data, "Frame displayed at 2 seconds") plot(first_two_seconds.data, "Frames displayed during [0, 2) seconds") - From ab26c2e6289a2b6f354dc3424c83346b297f076f Mon Sep 17 00:00:00 2001 From: Ahmad Sharif Date: Thu, 15 Aug 2024 09:14:05 -0700 Subject: [PATCH 4/5] . From c75604149ef0073f02321b879674ef6b5995d481 Mon Sep 17 00:00:00 2001 From: Ahmad Sharif Date: Thu, 15 Aug 2024 09:19:20 -0700 Subject: [PATCH 5/5] . --- .github/workflows/wheel.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/wheel.yaml b/.github/workflows/wheel.yaml index f3f7039cd..1e11e6b2e 100644 --- a/.github/workflows/wheel.yaml +++ b/.github/workflows/wheel.yaml @@ -52,7 +52,6 @@ jobs: trigger-event: ${{ github.event_name }} build-platform: "python-build-package" build-command: "BUILD_AGAINST_ALL_FFMPEG_FROM_S3=1 python -m build --wheel -vvv --no-isolation" - wheel-build-extra-args: "-vvv --no-isolation" install-and-test: runs-on: ubuntu-latest