# COM (Channel Operating Margin) Python tool — runtime dependencies.
# Tested with Python 3.14.5 / numpy 2.4.6 / scipy 1.17.1 / openpyxl 3.1.5 / matplotlib 3.10.9.
# Minimums match pyproject.toml, which is authoritative; newer versions are fine.
# Prefer `pip install -e .` (add ".[plots]" for matplotlib): the example and
# `python -m sicopr` need the package installed.

numpy>=1.24        # core numerics
scipy>=1.10        # signal, interpolate, special, linalg, io
openpyxl>=3.1      # read the .xlsx configuration spreadsheet
matplotlib>=3.7    # figures (only needed when SAVE_FIGURES is enabled)

# NOT required by anything in this repository.
#
# python-pptx and Pillow were needed by the deck builders (local tooling),
# which are kept local with the data they render and are not published here. They
# are listed only so a maintainer working from a full local tree installs the same
# set; a published clone never imports them. Left commented rather than deleted so
# the reason survives.
#
#   python-pptx>=1.0   # deck builders (local tooling)
#   Pillow>=9.0        # figure fitting for the deck builders (local tooling)

# The R reports under R/ additionally need, inside R:
#   install.packages(c("R.matlab", "ggplot2", "dplyr", "tidyr", "scales",
#                      "plotly", "htmltools", "jsonlite"))

# Test-only. tests/test_gui_static.py PARSES gui/static/app.js -- a syntax error
# there breaks the whole config editor while every server-side test still
# passes. Optional: the test prefers `node --check` if node is installed, and
# warns loudly if it has neither and falls back to a delimiter check.
esprima>=4.0       # JavaScript parser, tests only
pytest>=7.0        # test runner (tests/run_all.ps1 and CI); tests only
