From 8fa9c5df2aca02b93efa382014a0c01fdf3762a5 Mon Sep 17 00:00:00 2001 From: Ivan Shcheklein Date: Mon, 30 Nov 2026 18:29:29 -0800 Subject: [PATCH] Raise dependency minimums that fail to install or import and test them in CI google-api-python-client before 2.34.0 imports pkg_resources, tqdm before 4.40.0 lacks CallbackIOWrapper, PyYAML before 6.0 has no Python 3.11 wheels, and httplib2 0.19 requires a pyparsing that Python 3.15 cannot import. The new job runs the offline suite on Python 3.11 with every dependency at its declared minimum. Co-Authored-By: Claude Fable 5.2 --- .github/workflows/test.yml | 29 ++++++++++++++++++++++++++--- CONTRIBUTING.rst | 2 +- pyproject.toml | 8 ++++---- 3 files changed, 31 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d5c51a1..76b1a4c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -71,11 +71,34 @@ jobs: fi python -m pytest -m "not manual and drive" + lowest: + name: test (lowest dependencies) + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v7 + with: + persist-credentials: false + + - uses: actions/setup-python@v7 + with: + python-version: "3.11" + + - name: Install the lowest dependency versions pyproject.toml allows + # uv pins the lowest versions and pip installs the test tools on top. + run: | + python -m pip install uv + python -m uv pip compile pyproject.toml --extra fsspec --resolution lowest-direct --output-file "$RUNNER_TEMP/lowest.txt" + python -m pip install -e '.[fsspec, tests]' --constraint "$RUNNER_TEMP/lowest.txt" + + - name: Run offline tests + run: python -m pytest -m "not manual and not drive" + required: name: Live Drive tests - needs: test + needs: [test, lowest] if: always() runs-on: ubuntu-latest steps: - - name: Require every matrix job to pass - run: test "${{ needs.test.result }}" = success + - name: Require every test job to pass + run: test "${{ needs.test.result }}" = success && test "${{ needs.lowest.result }}" = success diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index e321abe..4fa7cae 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -26,4 +26,4 @@ step fails. Their offline results are visible in the same jobs. To land a reviewed external change, a maintainer can open a PR from a branch in this repository. The required ``Live Drive tests`` check passes -when every matrix job succeeds. +when every test job succeeds. diff --git a/pyproject.toml b/pyproject.toml index 44b1058..3b2b728 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,18 +23,18 @@ classifiers = [ ] requires-python = ">=3.11" dependencies = [ - "google-api-python-client>=1.12.5", + "google-api-python-client>=2.68.0", "google-auth>=2.15.0", "google-auth-httplib2>=0.2.0", "google-auth-oauthlib>=1.5.0", "filelock>=3.30.0", - "httplib2>=0.19.0", + "httplib2>=0.21.0", "oauthlib>=3.0.0", - "PyYAML>=3.0", + "PyYAML>=6.0.1", "cryptography>=3.4", "appdirs>=1.4.3", "funcy>=1.14", - "tqdm>=4.0.0", + "tqdm>=4.65.0", "pywin32>=305; sys_platform == 'win32'", ] license = {text = "Apache License 2.0"}