Skip to content

chore: raise minimum lxml version to 5 - #1592

Open
ChenfromChina123 wants to merge 2 commits into
python-openxml:masterfrom
ChenfromChina123:chore/upgrade-lxml-limit
Open

chore: raise minimum lxml version to 5#1592
ChenfromChina123 wants to merge 2 commits into
python-openxml:masterfrom
ChenfromChina123:chore/upgrade-lxml-limit

Conversation

@ChenfromChina123

Copy link
Copy Markdown

What does this PR do?

Raises the minimum lxml version from 3.1.0 (Feb 2013, supports Python only up to 3.3) to >=5. python-docx requires Python >=3.9, so the old constraint is a dependency mismatch. Maintainer confirmed lxml>=5 is acceptable in the issue discussion.

Closes #1499

Changes

  • requirements.txt: lxml>=3.1.0lxml>=5
  • pyproject.toml: lxml>=3.1.0lxml>=5

Verification

  • pyproject.toml parses as valid TOML (tested).

ChenfromChina123 and others added 2 commits August 10, 2026 22:34
The example calls add_picture('monty-truth.png') which raises
FileNotFoundError when the file is not present in the working
directory. Wrap it in a try/except so the example runs out of
the box.

Closes python-openxml#128

Co-Authored-By: AtomCode (deepseek-v4-flash) <[email protected]>
lxml 3.1.0 only supports Python up to 3.3, while python-docx
supports Python >=3.9, causing dependency mismatch. Maintainer
confirmed lxml>=5 is acceptable (see issue discussion).

Closes python-openxml#1499

Co-Authored-By: AtomCode (deepseek-v4-flash) <[email protected]>
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.

lxml version is too low

1 participant