Commit bac1cad
authored
fix(deps): add Pygments to requirements.txt (rich.syntax dep) (#9819)
`lib/tools/patching.py` imports `from rich.syntax import Syntax`. The
`rich` package already in requirements.txt does not pull `pygments` as a
hard dep — it is an extras_require for syntax highlighting. On a fresh
host where `requirements.txt` is the only source of pip installs, the
build fails:
Traceback (most recent call last):
File "/armbian/lib/tools/patching.py", line 444, in <module>
from rich.syntax import Syntax
File ".../rich/syntax.py", line 24, in <module>
from pygments.lexer import Lexer
ModuleNotFoundError: No module named 'pygments'
Pin Pygments == 2.19.1 so dependabot can keep it current alongside rich.
Assisted-by: Claude:claude-opus-4.71 parent fb5fc72 commit bac1cad
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
0 commit comments