docs: simplify install instructions and consolidate dependencies
This commit is contained in:
@@ -25,7 +25,7 @@ outputs with sensitivity-aware **Floor / Realistic / Stretch** analysis.
|
|||||||
```bash
|
```bash
|
||||||
cd ctm-token-calculator
|
cd ctm-token-calculator
|
||||||
python -m venv .venv && source .venv/bin/activate
|
python -m venv .venv && source .venv/bin/activate
|
||||||
pip install -e ".[app,notebook,dev]"
|
pip install -e ".[dev]" # everything needed to serve, run, and export the notebooks
|
||||||
|
|
||||||
# Serve the notebooks as interactive web apps (Mercury)
|
# Serve the notebooks as interactive web apps (Mercury)
|
||||||
mercury --working-dir notebooks/
|
mercury --working-dir notebooks/
|
||||||
|
|||||||
@@ -7,16 +7,21 @@ name = "ctm-token-calculator"
|
|||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
description = "Genesys AI Token Cost & Business Case Calculator (CTM)"
|
description = "Genesys AI Token Cost & Business Case Calculator (CTM)"
|
||||||
requires-python = ">=3.10"
|
requires-python = ">=3.10"
|
||||||
|
# The notebooks are the deliverables (served with Mercury, exported via
|
||||||
|
# nbconvert, tables via tabulate) — the whole toolchain is a required
|
||||||
|
# runtime dependency, not an extra. `pip install -e .` must be enough.
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"pandas>=2.0",
|
"pandas>=2.0",
|
||||||
"numpy>=1.25",
|
|
||||||
"plotly>=5.18",
|
"plotly>=5.18",
|
||||||
"openpyxl>=3.1",
|
"openpyxl>=3.1",
|
||||||
|
"mercury>=3.2",
|
||||||
|
"jupyterlab>=4.0",
|
||||||
|
"ipywidgets>=8.0",
|
||||||
|
"nbconvert>=7",
|
||||||
|
"tabulate>=0.9",
|
||||||
]
|
]
|
||||||
|
|
||||||
[project.optional-dependencies]
|
[project.optional-dependencies]
|
||||||
app = ["mercury>=3.2"]
|
|
||||||
notebook = ["jupyterlab>=4.0", "ipywidgets>=8.0", "nbconvert>=7", "tabulate>=0.9"]
|
|
||||||
dev = ["pytest>=7.4", "mypy>=1.8"]
|
dev = ["pytest>=7.4", "mypy>=1.8"]
|
||||||
|
|
||||||
[tool.setuptools.packages.find]
|
[tool.setuptools.packages.find]
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
mercury>=3.2
|
|
||||||
pandas>=2.0
|
|
||||||
numpy>=1.25
|
|
||||||
plotly>=5.18
|
|
||||||
openpyxl>=3.1
|
|
||||||
pydantic>=2.0
|
|
||||||
jupyterlab>=4.0
|
|
||||||
ipywidgets>=8.0
|
|
||||||
nbconvert>=7
|
|
||||||
tabulate>=0.9
|
|
||||||
pytest>=7.4
|
|
||||||
Reference in New Issue
Block a user