Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,17 @@ To install our latest pre-release (3.0.0 alpha), run:
``` bash
pip install -U --pre mesa
```
With Mesa 3.0, we don't install all our dependencies anymore by default.
```bash
# You can customize the additional dependencies you need, if you want. Available are:
pip install -U --pre mesa[network,viz]

# This is equivalent to our recommended dependencies:
pip install -U --pre mesa[rec]

# To install all, including developer, dependencies:
pip install -U --pre mesa[all]
```

You can also use `pip` to install the latest GitHub version:

Expand Down
30 changes: 20 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,36 +36,46 @@ classifiers = [
]
readme = "README.md"
dependencies = [
"click",
"cookiecutter",
"matplotlib",
"networkx",
"numpy",
"pandas",
"solara",
"tqdm",
]
dynamic = ["version"]

[project.optional-dependencies]
# User collections
rec = ["mesa[network,viz]"]
all = ["mesa[network,viz,dev,examples,docs]"]
# Core dependencies
network = [
"networkx",
]
viz = [
"matplotlib",
"solara",
]
# Dev and CI stuff
dev = [
"ruff~=0.1.1", # Update periodically
"pytest >= 4.6",
"mesa[rec]",
"ruff",
"pytest",
"pytest-cov",
"sphinx",
"pytest-mock",
"cookiecutter",
]
examples = [
"pytest >= 4.6",
"scipy"
"mesa[rec]",
"pytest",
"scipy",
]
docs = [
"sphinx",
"ipython",
"pydata_sphinx_theme",
"seaborn",
"myst-nb",
"myst-parser", # Markdown in Sphinx
"myst-parser", # Markdown in Sphinx
]

[project.urls]
Expand Down
Loading