From 6e78a9a436c32b280058c075629361dfefc5ddc3 Mon Sep 17 00:00:00 2001 From: Tania Mathern Date: Wed, 1 Oct 2025 09:08:27 -0700 Subject: [PATCH 1/2] fix: An experiment --- .github/workflows/build.yml | 10 +++++----- pyproject.toml | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 87276b6c..7ff45705 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -60,7 +60,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: "3.9" cache: "pip" - name: Install project dependencies @@ -114,7 +114,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: "3.9" cache: "pip" - name: Install project dependencies @@ -212,7 +212,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: "3.9" cache: "pip" - name: Download wheel artifacts @@ -289,7 +289,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: "3.9" cache: "pip" - name: Download wheel artifacts @@ -380,7 +380,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: "3.9" cache: "pip" - name: Download wheel artifacts diff --git a/pyproject.toml b/pyproject.toml index 45d0e3d4..17cf45fd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta" [project] name = "c2pa-python" version = "0.23.0" -requires-python = ">=3.10" +requires-python = ">=3.9" description = "Python bindings for the C2PA Content Authenticity Initiative (CAI) library" readme = { file = "README.md", content-type = "text/markdown" } license = { text = "MIT OR Apache-2.0" } From 399d48d3ad27432ce41bb3c3525464a194b2ea1a Mon Sep 17 00:00:00 2001 From: Tania Mathern Date: Wed, 1 Oct 2025 09:32:23 -0700 Subject: [PATCH 2/2] fix: Missed some downgrades --- .github/workflows/build-wheel.yml | 2 +- .github/workflows/build.yml | 8 ++++---- README.md | 2 +- setup.py | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-wheel.yml b/.github/workflows/build-wheel.yml index 78f53b34..eccb5af4 100644 --- a/.github/workflows/build-wheel.yml +++ b/.github/workflows/build-wheel.yml @@ -68,7 +68,7 @@ jobs: \${PYBIN}/pip install --upgrade pip wheel && \${PYBIN}/pip install toml==0.10.2 && \${PYBIN}/pip install setuptools==68.0.0 && - CFLAGS=\"-I/opt/python/cp310-cp310/include/python3.10\" LDFLAGS=\"-L/opt/python/cp310-cp310/lib\" \${PYBIN}/python setup.py bdist_wheel --plat-name $PLATFORM_TAG + CFLAGS=\"-I/opt/python/cp310-cp310/include/python3.9\" LDFLAGS=\"-L/opt/python/cp310-cp310/lib\" \${PYBIN}/python setup.py bdist_wheel --plat-name $PLATFORM_TAG done && rm -f /io/dist/*-linux_*.whl " diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7ff45705..232803eb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -166,7 +166,7 @@ jobs: uses: ./.github/workflows/build-wheel.yml needs: [tests-unix, read-version] with: - python-version: "3.10" + python-version: "3.9" architecture: ${{ matrix.target }} artifact-name: wheels-linux-${{ matrix.target }} runs-on: ${{ matrix.runs-on }} @@ -251,7 +251,7 @@ jobs: uses: ./.github/workflows/build-wheel.yml needs: [tests-windows, read-version] with: - python-version: "3.10" + python-version: "3.9" architecture: ${{ matrix.target }} artifact-name: wheels-windows-${{ matrix.target }} runs-on: windows-latest @@ -330,7 +330,7 @@ jobs: uses: ./.github/workflows/build-wheel.yml needs: [tests-unix, read-version] with: - python-version: "3.10" + python-version: "3.9" runs-on: ${{ matrix.runs-on }} artifact-name: wheels-macos-${{ matrix.target }} architecture: ${{ matrix.target }} @@ -428,7 +428,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: "3.9" cache: "pip" - name: Install dependencies run: pip install -r requirements.txt diff --git a/README.md b/README.md index d33472ee..f53a3430 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ Features: ## Prerequisites -This library requires Python version 3.10+. +This library requires Python version 3.9+. ## Package installation diff --git a/setup.py b/setup.py index 489472c1..4e1f2318 100644 --- a/setup.py +++ b/setup.py @@ -217,7 +217,7 @@ def find_available_platforms(): "Programming Language :: Python :: 3", get_platform_classifier(target_platform), ], - python_requires=">=3.10", + python_requires=">=3.9", long_description=open("README.md").read(), long_description_content_type="text/markdown", license="MIT OR Apache-2.0", @@ -242,7 +242,7 @@ def find_available_platforms(): "Programming Language :: Python :: 3", get_platform_classifier(get_current_platform()), ], - python_requires=">=3.10", + python_requires=">=3.9", long_description=open("README.md").read(), long_description_content_type="text/markdown", license="MIT OR Apache-2.0",