Repository navigation
fix: cap reportlab below 5.1.0 on Python 3.9 - #48
Conversation
- reportlab 5.1.0 requires Python 3.10+ at import time - its metadata still allows 3.9, so pip installs it there anyway
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Caution Review failedThe pull request is closed. Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Claude finished @joamag's task in 1m 45s —— View job Review of PR #48
I found no bugs or regressions. There's one documentation nit, posted inline. Findings by severity
What I checked (confidence: high)
What I couldn't check
|
| ### Fixed | ||
|
|
||
| * | ||
| * PDF support on Python 3.9 after the latest reportlab release |
There was a problem hiding this comment.
Nit (docs): "the latest reportlab release" won't make sense once reportlab ships another version, and someone reading this later won't know which release broke 3.9. The entry for the earlier caps (line 172) names the failure and links the reference. Something like this would match it:
| * PDF support on Python 3.9 after the latest reportlab release | |
| * PDF generation failing on Python 3.9 with reportlab 5.1.0, which requires Python 3.10 - [#48](https://github.com/hivesolutions/colony-print/pull/48) |
Summary
reportlab5.1.0 (released 2026-10-22) bumped__min_python_version__to(3,10)in its__init__.py, but its package metadata still declaresrequires_python >=3.9. Pip on 3.9 installs it andimport reportlabthen raisesImportError: reportlab requires 3.10+, breaking test collection fortest/node.pyandtest/printing/pdf.py(e.g. run 40146745150).reportlab<5.1.0range for Python 3.9 in bothrequirements.txtandsetup.py, following the existing per-version caps, and moves the uncapped entry to>= 3.10.Testing
Ran the CI install and
ADAPTER=tiny pyteststeps in containers:python:3.9pypy:3.9python:3.10