From f79cf69b930a047b7196b1eaa152a238aaff1914 Mon Sep 17 00:00:00 2001 From: Yanick Fratantonio Date: Thu, 28 Nov 2024 12:42:40 +0100 Subject: [PATCH 1/3] Update python-build-package.yml Make uv use python 3.12, not python 3.13 --- .github/workflows/python-build-package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-build-package.yml b/.github/workflows/python-build-package.yml index 3836c553..a2ff2e3e 100644 --- a/.github/workflows/python-build-package.yml +++ b/.github/workflows/python-build-package.yml @@ -55,7 +55,7 @@ jobs: working-directory: python - if: matrix.platform.runner != 'windows-latest' name: Check that `uv add magika.whl` works - run: mkdir /tmp/test-uv && cp -vR dist/*.whl /tmp/test-uv && cd /tmp/test-uv && uv init && uv add ./$(\ls -1 *.whl | head -n 1) + run: mkdir /tmp/test-uv && cp -vR dist/*.whl /tmp/test-uv && cd /tmp/test-uv && uv init --python 3.12 && uv add --python 3.12 ./$(\ls -1 *.whl | head -n 1) - name: Install wheels run: python3 -m pip install $(python -c "import glob; print(glob.glob('dist/*.whl')[0])") - run: magika --version From 2b5ad0a55c5a27d4fe614e01adbe326187ba454f Mon Sep 17 00:00:00 2001 From: Yanick Fratantonio Date: Thu, 28 Nov 2024 13:57:13 +0100 Subject: [PATCH 2/3] Update python-build-package.yml --- .github/workflows/python-build-package.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/python-build-package.yml b/.github/workflows/python-build-package.yml index a2ff2e3e..d8fb48d9 100644 --- a/.github/workflows/python-build-package.yml +++ b/.github/workflows/python-build-package.yml @@ -29,6 +29,10 @@ jobs: target: aarch64 steps: - uses: actions/checkout@v4 + - name: Setup Python + uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # pin@v5 + with: + python-version: '3.12' - name: Install uv run: curl -LsSf https://astral.sh/uv/0.4.7/install.sh | sh - if: matrix.platform.runner == 'ubuntu-latest' From fdc624babeb16d4eaf5306177bbf6259c9a819e4 Mon Sep 17 00:00:00 2001 From: Yanick Fratantonio Date: Thu, 28 Nov 2024 14:04:08 +0100 Subject: [PATCH 3/3] Update python-build-package.yml --- .github/workflows/python-build-package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-build-package.yml b/.github/workflows/python-build-package.yml index d8fb48d9..40476a93 100644 --- a/.github/workflows/python-build-package.yml +++ b/.github/workflows/python-build-package.yml @@ -59,7 +59,7 @@ jobs: working-directory: python - if: matrix.platform.runner != 'windows-latest' name: Check that `uv add magika.whl` works - run: mkdir /tmp/test-uv && cp -vR dist/*.whl /tmp/test-uv && cd /tmp/test-uv && uv init --python 3.12 && uv add --python 3.12 ./$(\ls -1 *.whl | head -n 1) + run: mkdir /tmp/test-uv && cp -vR dist/*.whl /tmp/test-uv && cd /tmp/test-uv && uv init && uv add ./$(\ls -1 *.whl | head -n 1) - name: Install wheels run: python3 -m pip install $(python -c "import glob; print(glob.glob('dist/*.whl')[0])") - run: magika --version