Skip to content

Commit 45184a4

Browse files
committed
Merge remote-tracking branch 'upstream/main'
2 parents 724c8db + 33a9926 commit 45184a4

File tree

3 files changed

+40
-3
lines changed

3 files changed

+40
-3
lines changed

.github/workflows/build_lint.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ jobs:
3333
os: [windows, ubuntu, macos]
3434
python-version: ["3.12"]
3535
include:
36+
- os: ubuntu
37+
python-version: "3.13"
3638
- os: ubuntu
3739
python-version: "3.11"
3840
- os: ubuntu
@@ -47,12 +49,16 @@ jobs:
4749
uses: actions/setup-python@v5
4850
with:
4951
python-version: ${{ matrix.python-version }}
52+
allow-prereleases: true
5053
cache: 'pip'
5154
- name: Install uv
5255
run: pip install uv
53-
- name: Install Mesa
54-
# See https://github.com/astral-sh/uv/issues/1945
56+
- name: Install Mesa with uv pip
5557
run: uv pip install --system .[dev]
58+
if: matrix.python-version != '3.13'
59+
- name: Install Mesa with pip
60+
run: pip install .[dev]
61+
if: matrix.python-version == '3.13'
5662
- name: Test with pytest
5763
run: pytest --durations=10 --cov=mesa tests/ --cov-report=xml
5864
- if: matrix.os == 'ubuntu'

HISTORY.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,37 @@
11
---
22
title: Release History
33
---
4+
# 3.0.0a2 (2024-08-21)
5+
## Highlights
6+
In Mesa 3.0 alpha 2 (`v3.0.0a2`) we've done more clean-up in preparation for Mesa 3.0. We now [require](https://github.com/projectmesa/mesa/pull/2218) `super().__init__()` to run on initializing a Mesa model subclass, `Model.agents` is now fully reserved for the Model's internal AgentSet and we fixed a bug in our Solara space_drawer.
7+
8+
A new feature was added in [#2219](https://github.com/projectmesa/mesa/pull/2219), which now also allows `AgentSet.do()` to take any callable function, instead of only a string referencing to an Agent method. The argument name was changed from `method_name` to `method`.
9+
10+
The new Solara visualisation now allows portraying agents in different shapes, checkout some examples in [#2214](https://github.com/projectmesa/mesa/pull/2214).
11+
12+
We're also working hard on our [example models](https://github.com/projectmesa/mesa-examples). All model warnings were [resolved](https://github.com/projectmesa/mesa-examples/pull/153) and we've [replaced](https://github.com/projectmesa/mesa-examples/pull/161) a lot of schedulers with simpler and more flexible AgentSet functionality. Checkout our [open issues](https://github.com/projectmesa/mesa-examples/issues) if you want to help improve our example models further!
13+
14+
## What's Changed
15+
### ⚠️ Breaking changes
16+
* breaking: Add dependencies argument to custom space_drawer by @rht in https://github.com/projectmesa/mesa/pull/2209
17+
* Require Mesa models to be initialized with `super().__init__()` by @EwoutH in https://github.com/projectmesa/mesa/pull/2218
18+
* Allow AgentSet.do() to take Callable function by @quaquel in https://github.com/projectmesa/mesa/pull/2219
19+
* Change warning when setting model.agents to error by @EwoutH in https://github.com/projectmesa/mesa/pull/2225
20+
### 🧪 Experimental features
21+
* devs/eventlist: Add repr method to print EventList pretty by @EwoutH in https://github.com/projectmesa/mesa/pull/2195
22+
### 🛠 Enhancements made
23+
* Visualisation: Allow specifying Agent shapes in agent_portrayal by @rmhopkins4 in https://github.com/projectmesa/mesa/pull/2214
24+
### 📜 Documentation improvements
25+
* docs/conf.py: Use modern `intersphinx_mapping` format by @EwoutH in https://github.com/projectmesa/mesa/pull/2206
26+
* docs: Update Readme and tutorials to mention Mesa 3.0 pre-releases by @EwoutH in https://github.com/projectmesa/mesa/pull/2203
27+
### 🔧 Maintenance
28+
* CI: Let pytest treat warnings as errors for examples by @EwoutH in https://github.com/projectmesa/mesa/pull/2204
29+
30+
## New Contributors
31+
* @rmhopkins4 made their first contribution in https://github.com/projectmesa/mesa/pull/2214
32+
33+
**Full Changelog**: https://github.com/projectmesa/mesa/compare/v3.0.0a1...v3.0.0a2
34+
435
# 3.0.0a1 (2024-08-01)
536
## Highlights
637
Mesa 3.0 alpha 1 (`v3.0.0a1`) is another step towards our next major version. This release introduces a name change from JupyterViz (jupyter_viz) to SolaraViz (solara_viz), to better represent the tech stack being used. It also includes two bugfixes also present in 2.3.2.

mesa/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
]
2525

2626
__title__ = "mesa"
27-
__version__ = "3.0.0a1"
27+
__version__ = "3.0.0a2"
2828
__license__ = "Apache 2.0"
2929
_this_year = datetime.datetime.now(tz=datetime.timezone.utc).date().year
3030
__copyright__ = f"Copyright {_this_year} Project Mesa Team"

0 commit comments

Comments
 (0)