Skip to content

Commit

Permalink
Merge pull request #35 from rht/mesa-models
Browse files Browse the repository at this point in the history
feat: Create mesa-models as a package
  • Loading branch information
tpike3 authored May 17, 2023
2 parents 9f3ceb9 + 968e7be commit c510543
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/boid_flockers/boid_flockers/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def make_agents(self):
velocity,
self.vision,
self.separation,
**self.factors
**self.factors,
)
self.space.place_agent(boid, pos)
self.schedule.add(boid)
Expand Down
21 changes: 21 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[project]
name = "mesa-models"
version = "0.1.0"
description = "Importable Mesa models."
authors = [
{name = "Project Mesa Team", email = "projectmesa@googlegroups.com"}
]
license = {file = "LICENSE"}
readme = "README.rst"
requires-python = ">=3.8"
dependencies = [
"mesa>=1.2"
]


[build-system]
requires = [
"setuptools",
"wheel",
]
build-backend = "setuptools.build_meta"
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[options]
package_dir =
mesa_models.boltzmann_wealth_model = examples/boltzmann_wealth_model/boltzmann_wealth_model

0 comments on commit c510543

Please sign in to comment.