Skip to content

Commit

Permalink
Make data and batch core dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
EwoutH committed Sep 26, 2024
1 parent 77cc917 commit cfa6234
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
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
13 changes: 4 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,15 @@ classifiers = [
readme = "README.md"
dependencies = [
"numpy",
"pandas",
"tqdm",
]
dynamic = ["version"]

[project.optional-dependencies]
# User collections
rec = ["mesa[network,viz,data,batch]"]
all = ["mesa[network,viz,data,batch,dev,examples,docs]"]
rec = ["mesa[network,viz]"]
all = ["mesa[network,viz,dev,examples,docs]"]
# Core dependencies
network = [
"networkx",
Expand All @@ -52,12 +54,6 @@ viz = [
"matplotlib",
"solara",
]
data = [
"pandas",
]
batch = [
"tqdm",
]
# Dev and CI stuff
dev = [
"mesa[rec]",
Expand All @@ -73,7 +69,6 @@ examples = [
"scipy",
]
docs = [
"tqdm",
"sphinx",
"ipython",
"pydata_sphinx_theme",
Expand Down

0 comments on commit cfa6234

Please sign in to comment.