[Midnightbsd-cvs] [MidnightBSD/mports] 195ea2: devel/py-lxml: allow building against cython 3.3.x...
Lucas Holt
noreply at github.com
Tue Sep 15 11:52:26 EDT 2026
Branch: refs/heads/master
Home: https://github.com/MidnightBSD/mports
Commit: 195ea24a9ccf1ccc60c6ae244df6ca21786b15d5
https://github.com/MidnightBSD/mports/commit/195ea24a9ccf1ccc60c6ae244df6ca21786b15d5
Author: Lucas Holt <luke at foolishgames.com>
Date: 2026-09-15 (Tue, 15 Sep 2026)
Changed paths:
M devel/py-lxml/Makefile
A devel/py-lxml/files/patch-pyproject.toml
Log Message:
-----------
devel/py-lxml: allow building against cython 3.3.x (#1264)
Companion to #1263 (`lang/cython`: update to 3.3.0). **These should land
together.**
## Problem
lxml 6.1.3 declares the following in its upstream `pyproject.toml`:
```toml
requires = ["Cython>=3.2.9,<3.3", "setuptools"]
```
Once `lang/cython` moves to 3.3.0, the pep517 build backend refuses to
build:
```
ERROR Missing dependencies:
Cython<3.3,>=3.2.9
```
lxml 6.1.3 is the latest upstream release, so no newer version relaxes
this bound.
Relaxing only the port `BUILD_DEPENDS` is not sufficient — the check
lives in the
`pyproject.toml` metadata.
## Change
- `files/patch-pyproject.toml` relaxes the bound to `<3.4`
- `BUILD_DEPENDS` relaxed to match (`cython>=3.2.9<3.4`)
- `PORTREVISION` bumped
## Validation
The pin is upstream caution, not a real incompatibility — lxml
cythonizes, compiles
and passes its full suite against Cython 3.3.0:
```
Ran 2019 tests in 3.386s
OK
TESTED VERSION: 6.1.3
Python: (3, 12, 12, 'final', 0)
lxml.etree: (6, 1, 3, 0)
libxml used: (2, 15, 4)
libxslt used: (1, 1, 43)
```
- `bmake patch`, `build`, `fake`, `package` — all clean (py312)
- `bmake test` — 2019 tests, OK
- `portlint -AC` — 0 fatal errors
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01NSsgED5s7GPYJNb1HxuaU9
## Summary by Sourcery
Relax lxml's Cython dependency constraint to support building against
the Cython 3.3.x series.
Bug Fixes:
- Allow lxml 6.1.3 to build successfully with Cython 3.3.x.
Chores:
- Bump the port revision and align build dependencies with the expanded
Cython version range.
Signed-off-by: Lucas Holt <luke at foolishgames.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply at anthropic.com>
To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/mports/settings/notifications
More information about the Midnightbsd-cvs
mailing list