From 0adcb97421069559b115ce616de15f81fe8c0b3d Mon Sep 17 00:00:00 2001 From: Ewout ter Hoeven Date: Sun, 1 Sep 2024 19:41:14 +0200 Subject: [PATCH] Reduce core dependencies, split in optional dependencies --- pyproject.toml | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 596682e3db8..de4b1ee5efe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,28 +35,37 @@ classifiers = [ ] readme = "README.md" dependencies = [ - "click", - "cookiecutter", - "matplotlib", - "networkx", "numpy", - "pandas", - "solara", - "tqdm", ] dynamic = ["version"] [project.optional-dependencies] +rec = ["mesa[network,viz,data,batch]"] +all = ["mesa[network,viz,data,batch,dev,examples,docs]"] + +network = [ + "networkx", +] +viz = [ + "matplotlib", + "solara", +] +data = [ + "pandas", +] +batch = [ + "tqdm", +] dev = [ - "ruff~=0.1.1", # Update periodically - "pytest >= 4.6", + "ruff" + "pytest" "pytest-cov", "sphinx", "pytest-mock", ] examples = [ - "pytest >= 4.6", - "scipy" + "pytest", + "scipy", ] docs = [ "sphinx",