Skip to content

Raise dependency minimums that fail to install or import and test them in CI - #423

Merged
shcheklein merged 1 commit into
mainfrom
test-lowest-dependencies
Dec 1, 2026
Merged

shcheklein merged 1 commit into
mainfrom
test-lowest-dependencies

Conversation

@shcheklein

@shcheklein shcheklein commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

Four declared minimums allow versions that PyDrive2 2.0 cannot run with. They are only installed when an environment already has an old release or another package holds one back, so CI never saw the failures.

  • google-api-python-client>=1.12.5 → >=2.68.0. Releases before 2.34.0 import pkg_resources and raise ModuleNotFoundError in an environment without setuptools.
  • tqdm>=4.0.0 → >=4.65.0. pydrive2.fs imports tqdm.utils.CallbackIOWrapper, which tqdm added in 4.40.0.
  • PyYAML>=3.0 → >=6.0.1. PyYAML has Python 3.11 wheels from 6.0 on. Older releases build from source, and 3.10 failed to compile with libyaml headers installed.
  • httplib2>=0.19.0 → >=0.21.0. httplib2 0.19 requires pyparsing 2, which imports sre_constants. Python 3.15 removed that module.

Each new minimum is the first release that declares Python 3.11 support. The other minimums are unchanged and pass at their declared versions.

A new test (lowest dependencies) job installs every runtime dependency and fsspec at its declared minimum on Python 3.11 and runs the offline suite. The required Live Drive tests check now waits for this job too.

Validation

  • The job's commands in a Linux container: 335 passed, 2 skipped on Python 3.11 and on Python 3.15, with all 13 direct dependencies at their declared minimums.
  • The same commands with main's pyproject.toml fail at collection with ModuleNotFoundError: No module named 'pkg_resources'.
  • CI checks include the new job.

🤖 Generated with Claude Code

…m 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 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues block the dependency-minimum updates and lowest-version CI coverage.

No open issues 🎉

What changed in this PR

This PR raises incompatible dependency minimums for PyDrive2 and adds CI coverage to catch regressions at the lowest supported versions.

Changes:

  • Raise minimum versions of google-api-python-client, httplib2, PyYAML, and tqdm.
  • Add a Python 3.11 job that resolves the lowest direct dependencies and runs offline tests.
  • Require the new job to pass alongside the existing test matrix and update contributor guidance.
File Description
pyproject.toml Raises four dependency minimums to compatible versions.
CONTRIBUTING.rst Clarifies that every test job must pass the required check.
.github/​workflows/​test.yml Adds lowest-dependency testing and includes it in the required check.

Review effort: Balanced

@shcheklein
shcheklein marked this pull request as ready for review December 1, 2026 02:56
@shcheklein
shcheklein merged commit cb0973e into main Dec 1, 2026
25 checks passed
@shcheklein
shcheklein deleted the test-lowest-dependencies branch December 1, 2026 03:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants