Skip to content

Commit c2e9e17

Browse files
authored
Sync requirements.txt with pyproject.toml runtime deps (#1085)
requirements.txt was missing pydantic, pyyaml, and numpy, which are all declared runtime dependencies in pyproject.toml. pip install uses pyproject.toml so most users were unaffected, but anyone installing via 'pip install -r requirements.txt' (dev/CI setups) would hit 'ModuleNotFoundError: No module named pydantic' at runtime. pydantic underpins the JSON output schema (scalene_json.py) and the LineNumber type in scalene_statistics.py, so it is a hard dependency.
1 parent 6551a40 commit c2e9e17

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@ Cython>=0.29.28
44
ipython>=8.10
55
Jinja2>=3.0.3
66
lxml>=5.1.0
7+
numpy>=1.24.0,!=1.27; python_version < '3.14'
8+
numpy>=2.3.4; python_version >= '3.14'
79
packaging>=24
810
psutil>=5.9.2
11+
pydantic>=2.6
12+
pyyaml>=6.0
913
pyperf>=2.0.0
1014
rich>=10.7.0
1115
setuptools>=65.5.1

0 commit comments

Comments
 (0)