Mesa 3.0.0a5__tar.gz → 3.0.0b1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of Mesa might be problematic. Click here for more details.

Files changed (215) hide show
  1. {mesa-3.0.0a5 → mesa-3.0.0b1}/.github/release.yml +3 -0
  2. {mesa-3.0.0a5 → mesa-3.0.0b1}/.github/workflows/benchmarks.yml +1 -1
  3. {mesa-3.0.0a5 → mesa-3.0.0b1}/.github/workflows/build_lint.yml +7 -3
  4. {mesa-3.0.0a5 → mesa-3.0.0b1}/.github/workflows/release.yml +2 -1
  5. {mesa-3.0.0a5 → mesa-3.0.0b1}/.readthedocs.yml +1 -1
  6. {mesa-3.0.0a5 → mesa-3.0.0b1}/CONTRIBUTING.md +19 -1
  7. {mesa-3.0.0a5 → mesa-3.0.0b1}/HISTORY.md +97 -5
  8. mesa-3.0.0b1/LICENSE +202 -0
  9. mesa-3.0.0a5/LICENSE → mesa-3.0.0b1/NOTICE +2 -2
  10. {mesa-3.0.0a5 → mesa-3.0.0b1}/PKG-INFO +55 -13
  11. {mesa-3.0.0a5 → mesa-3.0.0b1}/README.md +15 -4
  12. {mesa-3.0.0a5 → mesa-3.0.0b1}/benchmarks/BoltzmannWealth/boltzmann_wealth.py +2 -2
  13. {mesa-3.0.0a5 → mesa-3.0.0b1}/benchmarks/Schelling/schelling.py +19 -7
  14. {mesa-3.0.0a5 → mesa-3.0.0b1}/benchmarks/WolfSheep/wolf_sheep.py +18 -41
  15. {mesa-3.0.0a5 → mesa-3.0.0b1}/codecov.yaml +3 -2
  16. mesa-3.0.0b1/docs/_static/switcher.json +12 -0
  17. {mesa-3.0.0a5 → mesa-3.0.0b1}/docs/conf.py +7 -1
  18. {mesa-3.0.0a5 → mesa-3.0.0b1}/docs/index.md +13 -3
  19. {mesa-3.0.0a5 → mesa-3.0.0b1}/docs/migration_guide.md +24 -4
  20. mesa-3.0.0b1/docs/overview.md +228 -0
  21. {mesa-3.0.0a5 → mesa-3.0.0b1}/docs/packages.md +2 -2
  22. {mesa-3.0.0a5 → mesa-3.0.0b1}/docs/tutorials/MoneyModel.py +2 -2
  23. {mesa-3.0.0a5 → mesa-3.0.0b1}/docs/tutorials/intro_tutorial.ipynb +1 -1
  24. {mesa-3.0.0a5 → mesa-3.0.0b1}/docs/tutorials/visualization_tutorial.ipynb +9 -6
  25. mesa-3.0.0b1/examples/README.md +37 -0
  26. mesa-3.0.0b1/examples/__init__.py +0 -0
  27. mesa-3.0.0b1/examples/advanced/__init__.py +0 -0
  28. mesa-3.0.0b1/examples/advanced/epstein_civil_violence/Epstein Civil Violence.ipynb +116 -0
  29. mesa-3.0.0b1/examples/advanced/epstein_civil_violence/Readme.md +33 -0
  30. mesa-3.0.0b1/examples/advanced/epstein_civil_violence/epstein_civil_violence/__init__.py +0 -0
  31. mesa-3.0.0b1/examples/advanced/epstein_civil_violence/epstein_civil_violence/agent.py +158 -0
  32. mesa-3.0.0b1/examples/advanced/epstein_civil_violence/epstein_civil_violence/model.py +146 -0
  33. mesa-3.0.0b1/examples/advanced/epstein_civil_violence/epstein_civil_violence/portrayal.py +33 -0
  34. mesa-3.0.0b1/examples/advanced/epstein_civil_violence/epstein_civil_violence/server.py +81 -0
  35. mesa-3.0.0b1/examples/advanced/epstein_civil_violence/requirements.txt +3 -0
  36. mesa-3.0.0b1/examples/advanced/epstein_civil_violence/run.py +3 -0
  37. mesa-3.0.0b1/examples/advanced/pd_grid/analysis.ipynb +228 -0
  38. mesa-3.0.0b1/examples/advanced/pd_grid/pd_grid/__init__.py +0 -0
  39. mesa-3.0.0b1/examples/advanced/pd_grid/pd_grid/agent.py +50 -0
  40. mesa-3.0.0b1/examples/advanced/pd_grid/pd_grid/model.py +72 -0
  41. mesa-3.0.0b1/examples/advanced/pd_grid/pd_grid/portrayal.py +19 -0
  42. mesa-3.0.0b1/examples/advanced/pd_grid/pd_grid/server.py +21 -0
  43. mesa-3.0.0b1/examples/advanced/pd_grid/readme.md +42 -0
  44. mesa-3.0.0b1/examples/advanced/pd_grid/requirements.txt +3 -0
  45. mesa-3.0.0b1/examples/advanced/pd_grid/run.py +3 -0
  46. mesa-3.0.0b1/examples/advanced/sugarscape_g1mt/Readme.md +87 -0
  47. mesa-3.0.0b1/examples/advanced/sugarscape_g1mt/app.py +61 -0
  48. mesa-3.0.0b1/examples/advanced/sugarscape_g1mt/requirements.txt +6 -0
  49. mesa-3.0.0b1/examples/advanced/sugarscape_g1mt/run.py +105 -0
  50. mesa-3.0.0b1/examples/advanced/sugarscape_g1mt/sugarscape_g1mt/__init__.py +0 -0
  51. mesa-3.0.0b1/examples/advanced/sugarscape_g1mt/sugarscape_g1mt/model.py +180 -0
  52. mesa-3.0.0b1/examples/advanced/sugarscape_g1mt/sugarscape_g1mt/resource_agents.py +26 -0
  53. mesa-3.0.0b1/examples/advanced/sugarscape_g1mt/sugarscape_g1mt/server.py +61 -0
  54. mesa-3.0.0b1/examples/advanced/sugarscape_g1mt/sugarscape_g1mt/sugar-map.txt +50 -0
  55. mesa-3.0.0b1/examples/advanced/sugarscape_g1mt/sugarscape_g1mt/trader_agents.py +321 -0
  56. mesa-3.0.0b1/examples/advanced/sugarscape_g1mt/tests.py +72 -0
  57. mesa-3.0.0b1/examples/advanced/wolf_sheep/Readme.md +57 -0
  58. mesa-3.0.0b1/examples/advanced/wolf_sheep/__init__.py +0 -0
  59. mesa-3.0.0b1/examples/advanced/wolf_sheep/requirements.txt +1 -0
  60. mesa-3.0.0b1/examples/advanced/wolf_sheep/run.py +3 -0
  61. mesa-3.0.0b1/examples/advanced/wolf_sheep/wolf_sheep/__init__.py +0 -0
  62. mesa-3.0.0b1/examples/advanced/wolf_sheep/wolf_sheep/agents.py +102 -0
  63. mesa-3.0.0b1/examples/advanced/wolf_sheep/wolf_sheep/model.py +136 -0
  64. mesa-3.0.0b1/examples/advanced/wolf_sheep/wolf_sheep/resources/sheep.png +0 -0
  65. mesa-3.0.0b1/examples/advanced/wolf_sheep/wolf_sheep/resources/wolf.png +0 -0
  66. mesa-3.0.0b1/examples/advanced/wolf_sheep/wolf_sheep/server.py +78 -0
  67. mesa-3.0.0b1/examples/basic/__init__.py +13 -0
  68. mesa-3.0.0b1/examples/basic/boid_flockers/Readme.md +43 -0
  69. mesa-3.0.0b1/examples/basic/boid_flockers/agents.py +71 -0
  70. mesa-3.0.0b1/examples/basic/boid_flockers/app.py +59 -0
  71. mesa-3.0.0b1/examples/basic/boid_flockers/model.py +70 -0
  72. mesa-3.0.0b1/examples/basic/boltzmann_wealth_model/Readme.md +60 -0
  73. mesa-3.0.0b1/examples/basic/boltzmann_wealth_model/agents.py +31 -0
  74. mesa-3.0.0b1/examples/basic/boltzmann_wealth_model/app.py +66 -0
  75. mesa-3.0.0b1/examples/basic/boltzmann_wealth_model/model.py +44 -0
  76. mesa-3.0.0b1/examples/basic/boltzmann_wealth_model/st_app.py +115 -0
  77. mesa-3.0.0b1/examples/basic/conways_game_of_life/Readme.md +35 -0
  78. mesa-3.0.0b1/examples/basic/conways_game_of_life/agents.py +47 -0
  79. mesa-3.0.0b1/examples/basic/conways_game_of_life/model.py +32 -0
  80. mesa-3.0.0b1/examples/basic/conways_game_of_life/portrayal.py +18 -0
  81. mesa-3.0.0b1/examples/basic/conways_game_of_life/requirements.txt +1 -0
  82. mesa-3.0.0b1/examples/basic/conways_game_of_life/server.py +11 -0
  83. mesa-3.0.0b1/examples/basic/conways_game_of_life/st_app.py +71 -0
  84. mesa-3.0.0b1/examples/basic/schelling/README.md +47 -0
  85. mesa-3.0.0b1/examples/basic/schelling/agents.py +26 -0
  86. mesa-3.0.0b1/examples/basic/schelling/analysis.ipynb +205 -0
  87. mesa-3.0.0b1/examples/basic/schelling/app.py +43 -0
  88. mesa-3.0.0b1/examples/basic/schelling/model.py +60 -0
  89. mesa-3.0.0b1/examples/basic/virus_on_network/README.md +61 -0
  90. mesa-3.0.0b1/examples/basic/virus_on_network/agents.py +69 -0
  91. mesa-3.0.0b1/examples/basic/virus_on_network/app.py +133 -0
  92. mesa-3.0.0b1/examples/basic/virus_on_network/model.py +99 -0
  93. {mesa-3.0.0a5 → mesa-3.0.0b1}/mesa/__init__.py +4 -1
  94. {mesa-3.0.0a5 → mesa-3.0.0b1}/mesa/agent.py +24 -43
  95. {mesa-3.0.0a5 → mesa-3.0.0b1}/mesa/batchrunner.py +7 -0
  96. mesa-3.0.0b1/mesa/examples.py +3 -0
  97. mesa-3.0.0b1/mesa/experimental/__init__.py +13 -0
  98. {mesa-3.0.0a5 → mesa-3.0.0b1}/mesa/experimental/cell_space/__init__.py +7 -1
  99. {mesa-3.0.0a5 → mesa-3.0.0b1}/mesa/experimental/cell_space/cell.py +35 -6
  100. mesa-3.0.0b1/mesa/experimental/cell_space/cell_agent.py +133 -0
  101. mesa-3.0.0b1/mesa/experimental/cell_space/discrete_space.py +142 -0
  102. {mesa-3.0.0a5 → mesa-3.0.0b1}/mesa/experimental/cell_space/grid.py +13 -0
  103. {mesa-3.0.0a5 → mesa-3.0.0b1}/mesa/experimental/cell_space/network.py +3 -0
  104. {mesa-3.0.0a5 → mesa-3.0.0b1}/mesa/experimental/devs/examples/wolf_sheep.py +2 -1
  105. {mesa-3.0.0a5 → mesa-3.0.0b1}/mesa/model.py +71 -21
  106. {mesa-3.0.0a5 → mesa-3.0.0b1}/mesa/time.py +7 -5
  107. mesa-3.0.0b1/mesa/visualization/components/matplotlib.py +342 -0
  108. {mesa-3.0.0a5 → mesa-3.0.0b1}/mesa/visualization/solara_viz.py +25 -61
  109. {mesa-3.0.0a5 → mesa-3.0.0b1}/pyproject.toml +26 -12
  110. {mesa-3.0.0a5 → mesa-3.0.0b1}/tests/test_agent.py +59 -72
  111. {mesa-3.0.0a5 → mesa-3.0.0b1}/tests/test_batch_run.py +2 -6
  112. {mesa-3.0.0a5 → mesa-3.0.0b1}/tests/test_cell_space.py +206 -0
  113. {mesa-3.0.0a5 → mesa-3.0.0b1}/tests/test_datacollector.py +8 -39
  114. {mesa-3.0.0a5 → mesa-3.0.0b1}/tests/test_examples.py +17 -0
  115. {mesa-3.0.0a5 → mesa-3.0.0b1}/tests/test_lifespan.py +9 -9
  116. {mesa-3.0.0a5 → mesa-3.0.0b1}/tests/test_model.py +17 -1
  117. {mesa-3.0.0a5 → mesa-3.0.0b1}/tests/test_solara_viz.py +4 -1
  118. mesa-3.0.0b1/tests/test_time.py +317 -0
  119. mesa-3.0.0a5/docs/overview.md +0 -116
  120. mesa-3.0.0a5/mesa/experimental/__init__.py +0 -7
  121. mesa-3.0.0a5/mesa/experimental/cell_space/cell_agent.py +0 -42
  122. mesa-3.0.0a5/mesa/experimental/cell_space/discrete_space.py +0 -75
  123. mesa-3.0.0a5/mesa/visualization/components/matplotlib.py +0 -248
  124. {mesa-3.0.0a5 → mesa-3.0.0b1}/.codespellignore +0 -0
  125. {mesa-3.0.0a5 → mesa-3.0.0b1}/.coveragerc +0 -0
  126. {mesa-3.0.0a5 → mesa-3.0.0b1}/.github/ISSUE_TEMPLATE/bug-report.md +0 -0
  127. {mesa-3.0.0a5 → mesa-3.0.0b1}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  128. {mesa-3.0.0a5 → mesa-3.0.0b1}/.github/ISSUE_TEMPLATE/feature-request.md +0 -0
  129. {mesa-3.0.0a5 → mesa-3.0.0b1}/.github/PULL_REQUEST_TEMPLATE/bug.md +0 -0
  130. {mesa-3.0.0a5 → mesa-3.0.0b1}/.github/PULL_REQUEST_TEMPLATE/feature.md +0 -0
  131. {mesa-3.0.0a5 → mesa-3.0.0b1}/.github/dependabot.yml +0 -0
  132. {mesa-3.0.0a5 → mesa-3.0.0b1}/.gitignore +0 -0
  133. {mesa-3.0.0a5 → mesa-3.0.0b1}/.pre-commit-config.yaml +0 -0
  134. {mesa-3.0.0a5 → mesa-3.0.0b1}/CITATION.bib +0 -0
  135. {mesa-3.0.0a5 → mesa-3.0.0b1}/CODE_OF_CONDUCT.md +0 -0
  136. {mesa-3.0.0a5 → mesa-3.0.0b1}/Dockerfile +0 -0
  137. {mesa-3.0.0a5 → mesa-3.0.0b1}/benchmarks/BoltzmannWealth/__init__.py +0 -0
  138. {mesa-3.0.0a5 → mesa-3.0.0b1}/benchmarks/Flocking/__init__.py +0 -0
  139. {mesa-3.0.0a5 → mesa-3.0.0b1}/benchmarks/Flocking/flocking.py +0 -0
  140. {mesa-3.0.0a5 → mesa-3.0.0b1}/benchmarks/Schelling/__init__.py +0 -0
  141. {mesa-3.0.0a5 → mesa-3.0.0b1}/benchmarks/WolfSheep/__init__.py +0 -0
  142. {mesa-3.0.0a5 → mesa-3.0.0b1}/benchmarks/compare_timings.py +0 -0
  143. {mesa-3.0.0a5 → mesa-3.0.0b1}/benchmarks/configurations.py +0 -0
  144. {mesa-3.0.0a5 → mesa-3.0.0b1}/benchmarks/global_benchmark.py +0 -0
  145. {mesa-3.0.0a5 → mesa-3.0.0b1}/docker-compose.yml +0 -0
  146. {mesa-3.0.0a5 → mesa-3.0.0b1}/docs/Makefile +0 -0
  147. {mesa-3.0.0a5 → mesa-3.0.0b1}/docs/README.md +0 -0
  148. {mesa-3.0.0a5 → mesa-3.0.0b1}/docs/apis/agent.md +0 -0
  149. {mesa-3.0.0a5 → mesa-3.0.0b1}/docs/apis/api_main.md +0 -0
  150. {mesa-3.0.0a5 → mesa-3.0.0b1}/docs/apis/batchrunner.md +0 -0
  151. {mesa-3.0.0a5 → mesa-3.0.0b1}/docs/apis/datacollection.md +0 -0
  152. {mesa-3.0.0a5 → mesa-3.0.0b1}/docs/apis/experimental.md +0 -0
  153. {mesa-3.0.0a5 → mesa-3.0.0b1}/docs/apis/model.md +0 -0
  154. {mesa-3.0.0a5 → mesa-3.0.0b1}/docs/apis/space.md +0 -0
  155. {mesa-3.0.0a5 → mesa-3.0.0b1}/docs/apis/time.md +0 -0
  156. {mesa-3.0.0a5 → mesa-3.0.0b1}/docs/apis/visualization.md +0 -0
  157. {mesa-3.0.0a5 → mesa-3.0.0b1}/docs/best-practices.md +0 -0
  158. {mesa-3.0.0a5 → mesa-3.0.0b1}/docs/howto.md +0 -0
  159. {mesa-3.0.0a5 → mesa-3.0.0b1}/docs/images/Mesa_Screenshot.png +0 -0
  160. {mesa-3.0.0a5 → mesa-3.0.0b1}/docs/images/mesa_logo.ico +0 -0
  161. {mesa-3.0.0a5 → mesa-3.0.0b1}/docs/images/mesa_logo.png +0 -0
  162. {mesa-3.0.0a5 → mesa-3.0.0b1}/docs/images/tutorial/br_ginis.png +0 -0
  163. {mesa-3.0.0a5 → mesa-3.0.0b1}/docs/images/tutorial/dc_endwealth.png +0 -0
  164. {mesa-3.0.0a5 → mesa-3.0.0b1}/docs/images/tutorial/dc_gini.png +0 -0
  165. {mesa-3.0.0a5 → mesa-3.0.0b1}/docs/images/tutorial/dc_oneagent.png +0 -0
  166. {mesa-3.0.0a5 → mesa-3.0.0b1}/docs/images/tutorial/first_hist.png +0 -0
  167. {mesa-3.0.0a5 → mesa-3.0.0b1}/docs/images/tutorial/multirun_hist.png +0 -0
  168. {mesa-3.0.0a5 → mesa-3.0.0b1}/docs/images/tutorial/numpy_grid.png +0 -0
  169. {mesa-3.0.0a5 → mesa-3.0.0b1}/docs/images/tutorial/viz_chart.png +0 -0
  170. {mesa-3.0.0a5 → mesa-3.0.0b1}/docs/images/tutorial/viz_empty.png +0 -0
  171. {mesa-3.0.0a5 → mesa-3.0.0b1}/docs/images/tutorial/viz_greycircles.png +0 -0
  172. {mesa-3.0.0a5 → mesa-3.0.0b1}/docs/images/tutorial/viz_histogram.png +0 -0
  173. {mesa-3.0.0a5 → mesa-3.0.0b1}/docs/images/tutorial/viz_redcircles.png +0 -0
  174. {mesa-3.0.0a5 → mesa-3.0.0b1}/docs/make.bat +0 -0
  175. {mesa-3.0.0a5 → mesa-3.0.0b1}/docs/mesa.md +0 -0
  176. {mesa-3.0.0a5 → mesa-3.0.0b1}/docs/tutorials/files/viz_chart.png +0 -0
  177. {mesa-3.0.0a5 → mesa-3.0.0b1}/docs/tutorials/files/viz_empty.png +0 -0
  178. {mesa-3.0.0a5 → mesa-3.0.0b1}/docs/tutorials/files/viz_greycircles.png +0 -0
  179. {mesa-3.0.0a5 → mesa-3.0.0b1}/docs/tutorials/files/viz_histogram.png +0 -0
  180. {mesa-3.0.0a5 → mesa-3.0.0b1}/docs/tutorials/files/viz_redcircles.png +0 -0
  181. {mesa-3.0.0a5 → mesa-3.0.0b1}/docs/tutorials/files/viz_slider.png +0 -0
  182. {mesa-3.0.0a5 → mesa-3.0.0b1}/maintenance/fetch_unlabeled_prs.py +0 -0
  183. {mesa-3.0.0a5 → mesa-3.0.0b1}/mesa/cookiecutter-mesa/cookiecutter.json +0 -0
  184. {mesa-3.0.0a5 → mesa-3.0.0b1}/mesa/cookiecutter-mesa/hooks/post_gen_project.py +0 -0
  185. {mesa-3.0.0a5 → mesa-3.0.0b1}/mesa/cookiecutter-mesa/{{cookiecutter.snake}}/README.md +0 -0
  186. {mesa-3.0.0a5 → mesa-3.0.0b1}/mesa/cookiecutter-mesa/{{cookiecutter.snake}}/app.pytemplate +0 -0
  187. {mesa-3.0.0a5 → mesa-3.0.0b1}/mesa/cookiecutter-mesa/{{cookiecutter.snake}}/setup.pytemplate +0 -0
  188. {mesa-3.0.0a5 → mesa-3.0.0b1}/mesa/cookiecutter-mesa/{{cookiecutter.snake}}/{{cookiecutter.snake}}/__init__.py +0 -0
  189. {mesa-3.0.0a5 → mesa-3.0.0b1}/mesa/cookiecutter-mesa/{{cookiecutter.snake}}/{{cookiecutter.snake}}/model.pytemplate +0 -0
  190. {mesa-3.0.0a5 → mesa-3.0.0b1}/mesa/datacollection.py +0 -0
  191. {mesa-3.0.0a5 → mesa-3.0.0b1}/mesa/experimental/UserParam.py +0 -0
  192. {mesa-3.0.0a5 → mesa-3.0.0b1}/mesa/experimental/cell_space/cell_collection.py +0 -0
  193. {mesa-3.0.0a5 → mesa-3.0.0b1}/mesa/experimental/cell_space/voronoi.py +0 -0
  194. {mesa-3.0.0a5 → mesa-3.0.0b1}/mesa/experimental/components/altair.py +0 -0
  195. {mesa-3.0.0a5 → mesa-3.0.0b1}/mesa/experimental/components/matplotlib.py +0 -0
  196. {mesa-3.0.0a5 → mesa-3.0.0b1}/mesa/experimental/devs/__init__.py +0 -0
  197. {mesa-3.0.0a5 → mesa-3.0.0b1}/mesa/experimental/devs/eventlist.py +0 -0
  198. {mesa-3.0.0a5 → mesa-3.0.0b1}/mesa/experimental/devs/examples/epstein_civil_violence.py +0 -0
  199. {mesa-3.0.0a5 → mesa-3.0.0b1}/mesa/experimental/devs/simulator.py +0 -0
  200. {mesa-3.0.0a5 → mesa-3.0.0b1}/mesa/experimental/solara_viz.py +0 -0
  201. {mesa-3.0.0a5 → mesa-3.0.0b1}/mesa/main.py +0 -0
  202. {mesa-3.0.0a5 → mesa-3.0.0b1}/mesa/space.py +0 -0
  203. {mesa-3.0.0a5 → mesa-3.0.0b1}/mesa/visualization/UserParam.py +0 -0
  204. {mesa-3.0.0a5 → mesa-3.0.0b1}/mesa/visualization/__init__.py +0 -0
  205. {mesa-3.0.0a5 → mesa-3.0.0b1}/mesa/visualization/components/altair.py +0 -0
  206. {mesa-3.0.0a5 → mesa-3.0.0b1}/mesa/visualization/utils.py +0 -0
  207. {mesa-3.0.0a5 → mesa-3.0.0b1}/mypy.ini +0 -0
  208. {mesa-3.0.0a5 → mesa-3.0.0b1}/tests/__init__.py +0 -0
  209. {mesa-3.0.0a5 → mesa-3.0.0b1}/tests/read_requirements.py +0 -0
  210. {mesa-3.0.0a5 → mesa-3.0.0b1}/tests/test_devs.py +0 -0
  211. {mesa-3.0.0a5 → mesa-3.0.0b1}/tests/test_end_to_end_viz.sh +0 -0
  212. {mesa-3.0.0a5 → mesa-3.0.0b1}/tests/test_grid.py +0 -0
  213. {mesa-3.0.0a5 → mesa-3.0.0b1}/tests/test_import_namespace.py +0 -0
  214. {mesa-3.0.0a5 → mesa-3.0.0b1}/tests/test_scaffold.py +0 -0
  215. {mesa-3.0.0a5 → mesa-3.0.0b1}/tests/test_space.py +0 -0
@@ -19,6 +19,9 @@ changelog:
19
19
  - title: 🐛 Bugs fixed
20
20
  labels:
21
21
  - bug
22
+ - title: 🔍 Examples updated
23
+ labels:
24
+ - example
22
25
  - title: 📜 Documentation improvements
23
26
  labels:
24
27
  - docs
@@ -25,7 +25,7 @@ jobs:
25
25
  - name: Set up Python
26
26
  uses: actions/setup-python@v5
27
27
  with:
28
- python-version: '3.12'
28
+ python-version: '3.13'
29
29
  - name: Add project directory to PYTHONPATH
30
30
  run: echo "PYTHONPATH=$PYTHONPATH:$(pwd)" >> $GITHUB_ENV
31
31
  - name: Install dependencies
@@ -31,10 +31,10 @@ jobs:
31
31
  fail-fast: False
32
32
  matrix:
33
33
  os: [windows, ubuntu, macos]
34
- python-version: ["3.12"]
34
+ python-version: ["3.13"]
35
35
  include:
36
36
  - os: ubuntu
37
- python-version: "3.13"
37
+ python-version: "3.12"
38
38
  - os: ubuntu
39
39
  python-version: "3.11"
40
40
  - os: ubuntu
@@ -60,6 +60,9 @@ jobs:
60
60
  - if: matrix.os == 'ubuntu'
61
61
  name: Codecov
62
62
  uses: codecov/codecov-action@v4
63
+ with:
64
+ fail_ci_if_error: true
65
+ token: ${{ secrets.CODECOV_TOKEN }}
63
66
 
64
67
  examples:
65
68
  runs-on: ubuntu-latest
@@ -68,7 +71,8 @@ jobs:
68
71
  - name: Set up Python
69
72
  uses: actions/setup-python@v5
70
73
  with:
71
- python-version: "3.12"
74
+ python-version: "3.13"
75
+ allow-prereleases: true
72
76
  cache: 'pip'
73
77
  - name: Install uv
74
78
  run: pip install uv
@@ -32,7 +32,8 @@ jobs:
32
32
  - name: Set up Python
33
33
  uses: actions/setup-python@v5
34
34
  with:
35
- python-version: "3.12"
35
+ python-version: "3.13"
36
+ allow-prereleases: true
36
37
  cache: 'pip'
37
38
  - name: Install dependencies
38
39
  run: pip install -U pip hatch
@@ -1,5 +1,5 @@
1
1
  # Read the Docs configuration file
2
- # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
2
+ # See https://docs.readthedocs.io/stable/config-file/v2.html for details
3
3
 
4
4
  # Required
5
5
  version: 2
@@ -53,7 +53,7 @@ Learn the tools, talk to us about what you want to change, and open a small PR.
53
53
  Awesome! You have the basics of open-source software development (if not check above), but not much modelling experience.
54
54
 
55
55
  First step is to start thinking like a modeller. To understand the fine details about our library and contribute meaningfully, get some modelling experience:
56
- - Go though our [Introductory Tutorial](https://mesa.readthedocs.io/en/latest/tutorials/intro_tutorial.html) and [Visualization Tutorial](https://mesa.readthedocs.io/en/latest/tutorials/visualization_tutorial.html). While going through them, dive into the source code to really see what everything does.
56
+ - Go though our [Introductory Tutorial](https://mesa.readthedocs.io/latest/tutorials/intro_tutorial.html) and [Visualization Tutorial](https://mesa.readthedocs.io/latest/tutorials/visualization_tutorial.html). While going through them, dive into the source code to really see what everything does.
57
57
  - Follow an ABM course (if possible). They might be a bit outdated programming language wise, but conceptual they're sound.
58
58
  - This MOOC on ABM concepts: [Agent Based Modeling](https://ocw.tudelft.nl/course-lectures/agent-based-modeling/)
59
59
  - This MOOC on practical ABM modelling: [Agent-Based Models with Python: An Introduction to Mesa](https://www.complexityexplorer.org/courses/172-agent-based-models-with-python-an-introduction-to-mesa)
@@ -119,6 +119,24 @@ ruff .
119
119
 
120
120
  The license of this project is located in [LICENSE]. By submitting a contribution to this project, you are agreeing that your contribution will be released under the terms of this license.
121
121
 
122
+ ## Maintainers
123
+ Some notes useful for Mesa maintainers.
124
+
125
+ ### Releases
126
+ To create a new release, follow these steps:
127
+
128
+ 1. Ensure all pull requests (PRs) have a clear title and are labeled with at least one label. Check [this link](https://github.com/projectmesa/mesa/pulls?q=is%3Apr+is%3Amerged+no%3Alabel+merged%3A%3E%3D2024-03-01+) to see if all PRs are labeled. These labels will be used when drafting the changelog using the [`.github/release.yml`](https://github.com/projectmesa/mesa/blob/main/.github/release.yml) configuration.
129
+ 2. Navigate to the [Releases](https://github.com/projectmesa/mesa/releases) section in the GitHub UI and click the _Draft a new release_ button.
130
+ 3. Specify the upcoming tag in the _Choose a tag_ and _Release title_ fields (e.g., `v3.0.0`).
131
+ - For pre-releases, add a `a`, `b` or `rc` and a number behind the version tag (see [Versioning](https://packaging.python.org/en/latest/discussions/versioning/)), and check the box _Set as a pre-release_.
132
+ 4. Use the _Generate release notes_ button to automatically create release notes. Review them carefully for accuracy, and update labels and edit PR titles if necessary (step 1).
133
+ 5. Write a _Highlights_ section summarizing the most important features or changes in this release.
134
+ 6. Copy the release notes and save them by clicking the grey _Save draft_ button.
135
+ 7. Open a new PR to update the version number in [`mesa/__init__.py`](https://github.com/projectmesa/mesa/blob/main/mesa/__init__.py) and add the copied release notes to the [`HISTORY.md`](https://github.com/projectmesa/mesa/blob/main/HISTORY.md).
136
+ 8. Once this PR is merged, return to the _Releases_ section and publish the draft release.
137
+ 9. The [`release.yml`](https://github.com/projectmesa/mesa/blob/main/.github/workflows/release.yml) CI workflow should automatically create and upload the package to PyPI. Verify this on [PyPI.org](https://pypi.org/project/mesa/).
138
+ 10. Finally, after release, open a new PR to update the version number in [`mesa/__init__.py`](https://github.com/projectmesa/mesa/blob/main/mesa/__init__.py) for the next release (e.g., `"3.1.0.dev"`).
139
+
122
140
  ## Special Thanks
123
141
 
124
142
  A special thanks to the following projects who offered inspiration for this contributing file.
@@ -1,11 +1,97 @@
1
1
  ---
2
2
  title: Release History
3
3
  ---
4
+
5
+ # 3.0.0b1 (2024-10-17)
6
+
7
+ ## Highlights
8
+ Basic exmaples are now importable in Mesa, includes boid_flockers, boltzmann_wealth_model, conways_game_of_life, schelling, and virus_on_network models. With this change they are also integrated into the Mesa tutorial in the docs.
9
+
10
+ Also, in this release, visualizations are improved by making visualization elements scalable and more clearly labeling the plots.
11
+
12
+ <!-- Release notes generated using configuration in .github/release.yml at main -->
13
+
14
+ ## What's Changed
15
+ ### ⚠️ Breaking changes
16
+ * replace model with random in AgentSet init by @quaquel in https://github.com/projectmesa/mesa/pull/2350
17
+ ### 🧪 Experimental features
18
+ * cell space: Add convenience properties for grid width and height by @quaquel in https://github.com/projectmesa/mesa/pull/2348
19
+ * Bugfix for deepcopy / pickling discrete spaces by @quaquel in https://github.com/projectmesa/mesa/pull/2378
20
+ ### 🎉 New features added
21
+ * Move core example models back (v2) by @EwoutH in https://github.com/projectmesa/mesa/pull/2358
22
+ * Add Model.rng for SPEC-7 compliant numpy random number generation by @quaquel in https://github.com/projectmesa/mesa/pull/2352
23
+ ### 🛠 Enhancements made
24
+ * use GridDraggable instead of Column in SolaraViz by @wang-boyu in https://github.com/projectmesa/mesa/pull/2344
25
+ * update legend, xlabel & format of matplotlib plots by @wang-boyu in https://github.com/projectmesa/mesa/pull/2346
26
+ * __init__.py: Import mesa.experimental by @EwoutH in https://github.com/projectmesa/mesa/pull/2374
27
+ * Importable examples by @Corvince in https://github.com/projectmesa/mesa/pull/2381
28
+ ### 🐛 Bugs fixed
29
+ * experimental init: Fix Solara import by making it lazy by @EwoutH in https://github.com/projectmesa/mesa/pull/2357
30
+ * fix: pass `model.random` to schedulers by @quaquel in https://github.com/projectmesa/mesa/pull/2359
31
+ * fix: register agent after creating unique_id and pos attributes by @wang-boyu in https://github.com/projectmesa/mesa/pull/2368
32
+ * solara: viz tutorial: fix histogram code by @Corvince in https://github.com/projectmesa/mesa/pull/2379
33
+ ### 🔍 Examples updated
34
+ * Cleanup and restructure basic example models by @EwoutH in https://github.com/projectmesa/mesa/pull/2365
35
+ * Ruff basic examples by @EwoutH in https://github.com/projectmesa/mesa/pull/2370
36
+ ### 📜 Documentation improvements
37
+ * Update migration_guide.md by @quaquel in https://github.com/projectmesa/mesa/pull/2347
38
+ ### 🔧 Maintenance
39
+ * Code coverage: ignore experimental and visualization by @Corvince in https://github.com/projectmesa/mesa/pull/2361
40
+ * add codecov token, fixes #2363 by @Corvince in https://github.com/projectmesa/mesa/pull/2366
41
+ * add test_time back by @quaquel in https://github.com/projectmesa/mesa/pull/2367
42
+ * Release notes: Add example category by @EwoutH in https://github.com/projectmesa/mesa/pull/2369
43
+
44
+ **Full Changelog**: https://github.com/projectmesa/mesa/compare/v3.0.0b0...v3.0.0b1
45
+
46
+ # 3.0.0b0 (2024-10-04)
47
+ ## Highlights
48
+ We're proud to release the first Mesa 3.0 beta! This pre-release announces that we're ready for Mesa 3.0 to be tested by all our regular users. We try to not making breaking changes anymore, but focus on resolving bugs and imperfections.
49
+
50
+ In this beta, not so much has changed as in the alphas (we're stabilizing, that's a good sign), but there are still a few notable things:
51
+ - Agents now have to be initialized without their `unique_id`. See [#2328](https://github.com/projectmesa/mesa/pull/2328) and the [Migration guide](https://mesa.readthedocs.io/latest/migration_guide.html#automatic-assignment-of-unique-id-to-agents).
52
+ - PropertyLayers can now be visualized! See [#2336](https://github.com/projectmesa/mesa/pull/2336) for details and some examples, and [mesa-examples#214](https://github.com/projectmesa/mesa-examples/pull/214) as a simple example model.
53
+ - We reduced the core dependencies of Mesa, so that's a lighter and simpler install. You can now use extras to install the dependencies, for example add `[viz]` to install all visualisation dependencies: `pip install -U --pre mesa[viz]`. See [#2265](https://github.com/projectmesa/mesa/pull/2265) for details.
54
+ - The [Mesa Overview](https://mesa.readthedocs.io/latest/overview.html) as fully updated for 3.0. We highly recommend reading though it!
55
+ - We made some more progress on the experimental Cell Space, adding movement and integrating the PropertyLayer. Among others, Agents have nu initial movement capabilities for grids. Development continues during the betas and
56
+
57
+ We plan to release one or two more beta's in the coming weeks, and tag a release candidate and Mesa 3.0 late October. In the [v3.0 milestone](https://github.com/projectmesa/mesa/milestone/43) are the critical items on our todo-list.
58
+
59
+ You can install this pre-release as usual with:
60
+
61
+ ```bash
62
+ pip install --upgrade --pre mesa
63
+ ```
64
+ We're very curious what you think, try it out and ask any questions or share any feedback [here](https://github.com/projectmesa/mesa/discussions/2338)!
65
+
66
+ ## What's Changed
67
+ ### ⚠️ Breaking changes
68
+ * update `Agent.__init__` to remove deprecation warning by @quaquel in https://github.com/projectmesa/mesa/pull/2328
69
+ ### 🎉 New features added
70
+ * Visualize PropertyLayers by @EwoutH in https://github.com/projectmesa/mesa/pull/2336
71
+ ### 🧪 Experimental features
72
+ * Encapsulate cell movement in properties by @quaquel in https://github.com/projectmesa/mesa/pull/2333
73
+ * experimental: Integrate PropertyLayers into cell space by @EwoutH in https://github.com/projectmesa/mesa/pull/2319
74
+ * Generalize CellAgent by @Corvince in https://github.com/projectmesa/mesa/pull/2292
75
+ ### 🛠 Enhancements made
76
+ * Reduce core dependencies, split in optional dependencies by @EwoutH in https://github.com/projectmesa/mesa/pull/2265
77
+ ### 🐛 Bugs fixed
78
+ * viz: stop running and disable buttons when model.running is False by @wang-boyu in https://github.com/projectmesa/mesa/pull/2332
79
+ ### 📜 Documentation improvements
80
+ * docs: Update overview for Mesa 3.0 by @EwoutH in https://github.com/projectmesa/mesa/pull/2317
81
+ * Readthedocs: Add version switch and update URL by @EwoutH in https://github.com/projectmesa/mesa/pull/2324
82
+ ### 🔧 Maintenance
83
+ * tests: Resolve warnings by removing scheduler and updating arguments by @EwoutH in https://github.com/projectmesa/mesa/pull/2329
84
+ * add super call to Model and remove self.schedule by @quaquel in https://github.com/projectmesa/mesa/pull/2334
85
+ ### Other changes
86
+ * Deprecate `initialize_data_collector` by @EwoutH in https://github.com/projectmesa/mesa/pull/2327
87
+
88
+ **Full Changelog**: https://github.com/projectmesa/mesa/compare/v3.0.0a5...v3.0.0b0
89
+
4
90
  # 3.0.0a5 (2024-09-21)
5
91
  ## Highlights
6
92
  Mesa v3.0 alpha 5 release contains many quality of life updates, a big new feature for the DataCollector and a major deprecation.
7
93
 
8
- The entire `mesa.time` module, including all schedulers, has been deprecated ([#2306](https://github.com/projectmesa/mesa/pull/2306)). Users are encouraged to transition to AgentSet functionality for more flexible and explicit agent activation patterns. Check the [migration guide](https://mesa.readthedocs.io/en/latest/migration_guide.html#time-and-schedulers) on how to upgrade.
94
+ The entire `mesa.time` module, including all schedulers, has been deprecated ([#2306](https://github.com/projectmesa/mesa/pull/2306)). Users are encouraged to transition to AgentSet functionality for more flexible and explicit agent activation patterns. Check the [migration guide](https://mesa.readthedocs.io/latest/migration_guide.html#time-and-schedulers) on how to upgrade.
9
95
 
10
96
  The DataCollector now supports collecting data from specific Agent subclasses using the new `agenttype_reporters` parameter ([#2300](https://github.com/projectmesa/mesa/pull/2300)). This allows collecting different metrics for different agent types. For example:
11
97
 
@@ -18,7 +104,9 @@ self.datacollector = DataCollector(
18
104
  )
19
105
  ```
20
106
 
21
- Furthermore, a new `shuffle_do()` method for AgentSets provides a faster way to perform `shuffle().do()` ([#2283](https://github.com/projectmesa/mesa/pull/2283)). The GroupBy class gained `count()` and `agg()` methods to count the number of agents in groups and aggregate variables of them ([#2290](https://github.com/projectmesa/mesa/pull/2290)). The `CellCollection.select` method was updated to use `at_most` instead of `n`, aligning with the AgentSet API ([#2307](https://github.com/projectmesa/mesa/pull/2307)). Additionally, the Cell class now features a dedicated `neighborhood` property for direct neighbors (default radius=1) and a `get_neighborhood` method for larger radii ([#2309](https://github.com/projectmesa/mesa/pull/2309)).
107
+ Furthermore, a new `shuffle_do()` method for AgentSets provides a faster way to perform `shuffle().do()` ([#2283](https://github.com/projectmesa/mesa/pull/2283)). The GroupBy class gained `count()` and `agg()` methods to count the number of agents in groups and aggregate variables of them ([#2290](https://github.com/projectmesa/mesa/pull/2290)).
108
+
109
+ In the experimental Cell Space, the `CellCollection.select` method was updated to use `at_most` instead of `n`, aligning with the AgentSet API ([#2307](https://github.com/projectmesa/mesa/pull/2307)). Additionally, the Cell class now features a dedicated `neighborhood` property for direct neighbors (default radius=1) and a `get_neighborhood` method for larger radii ([#2309](https://github.com/projectmesa/mesa/pull/2309)).
22
110
 
23
111
  Finally, SolaraViz received updates improving its interface and performance ([#2299](https://github.com/projectmesa/mesa/pull/2299), [#2304](https://github.com/projectmesa/mesa/pull/2304)). Cell connections in grids and networks are now public and named for more intuitive agent movements ([#2296](https://github.com/projectmesa/mesa/pull/2296)). The Model class initialization process was simplified by moving random seed and random object creation to `__init__` ([#1940](https://github.com/projectmesa/mesa/pull/1940)). Documentation has been extensively updated, including enforcing Google docstrings ([#2294](https://github.com/projectmesa/mesa/pull/2294)) and reorganizing the API documentation ([#2298](https://github.com/projectmesa/mesa/pull/2298)) for better clarity and navigation.
24
112
 
@@ -33,13 +121,17 @@ While the Mesa 3.0 timeline is still being discussed, we're aiming at the first
33
121
  * Make cell connections public and named by @Corvince in https://github.com/projectmesa/mesa/pull/2296
34
122
  * SolaraViz Updates by @Corvince in https://github.com/projectmesa/mesa/pull/2299
35
123
  * Solara viz: use_task for non-threaded continuous play by @Corvince in https://github.com/projectmesa/mesa/pull/2304
124
+ ### 🧪 Experimental features
36
125
  * Update to CellCollection.select by @quaquel in https://github.com/projectmesa/mesa/pull/2307
126
+ * Have a dedicated neighborhood property and a get_neighborhood method on Cell by @quaquel in https://github.com/projectmesa/mesa/pull/2309
37
127
  ### 📜 Documentation improvements
38
128
  * Enforce google docstrings by @quaquel in https://github.com/projectmesa/mesa/pull/2294
39
129
  * Api docs by @quaquel in https://github.com/projectmesa/mesa/pull/2298
40
130
  * update migration guide to describe solaraviz updates by @Corvince in https://github.com/projectmesa/mesa/pull/2297
41
131
  * Migration Guide: Add Model initialization requirement and automatic Agent.unique_id assignment by @EwoutH in https://github.com/projectmesa/mesa/pull/2302
42
132
  * Deprecate Time module and all its Schedulers by @EwoutH in https://github.com/projectmesa/mesa/pull/2306
133
+ * intro_tutorial: Don't initialize agents with an unique_id by @EwoutH in https://github.com/projectmesa/mesa/pull/2315
134
+ * Migration guide: Intro, upgrade strategy, model.agents, headers by @EwoutH in https://github.com/projectmesa/mesa/pull/2314
43
135
  ### 🔧 Maintenance
44
136
  * make typing behavior of AgentSet.get explicit by @quaquel in https://github.com/projectmesa/mesa/pull/2293
45
137
  * model: Move random seed and random to __init__ by @rht in https://github.com/projectmesa/mesa/pull/1940
@@ -65,7 +157,7 @@ Mesa 3.0.0a4 contains two major breaking changes:
65
157
  Example models were updated in [mesa-examples#194](https://github.com/projectmesa/mesa-examples/pull/194), which shows more examples on how to update existing models.
66
158
 
67
159
  2. Our visualisation API is being overhauled, to be more flexible and powerful. For more details, see [#2278](https://github.com/projectmesa/mesa/pull/2278).
68
- - An initial update to the tutorial was made in [#2289](https://github.com/projectmesa/mesa/pull/2289) and is [available here](https://mesa.readthedocs.io/en/latest/tutorials/visualization_tutorial.html).
160
+ - An initial update to the tutorial was made in [#2289](https://github.com/projectmesa/mesa/pull/2289) and is [available here](https://mesa.readthedocs.io/latest/tutorials/visualization_tutorial.html).
69
161
  - An initial example model was updated in [mesa-examples#195](https://github.com/projectmesa/mesa-examples/pull/195), and more examples will be updated in [mesa-examples#195](https://github.com/projectmesa/mesa-examples/pull/193).
70
162
  - The old SolaraViz API is still available at `mesa.experimental`, but might be removed in future releases.
71
163
 
@@ -116,7 +208,7 @@ Our example models also got more love: We removed the `RandomActivation` schedul
116
208
 
117
209
  Finally, we have two brand new examples: An Ant Colony Optimization model using an Ant System approach to the Traveling Salesman problem, a Mesa NetworkGrid, and a custom visualisation with SolaraViz ([examples#157](https://github.com/projectmesa/mesa-examples/pull/157) by @zjost). The first example using the `PropertyLayer` was added, a very fast implementation of Conway's Game of Life ([examples#182](https://github.com/projectmesa/mesa-examples/pull/182)).
118
210
 
119
- To help the transition to Mesa 3.0, we started writing a [migration guide](https://mesa.readthedocs.io/en/latest/migration_guide.html). Progress is tracked in #2233, feedback and help is appreciated! Finally, we also added a new section to our [contributor guide](https://github.com/projectmesa/mesa/blob/main/CONTRIBUTING.md#i-have-no-idea-where-to-start) to get new contributors up to speed.
211
+ To help the transition to Mesa 3.0, we started writing a [migration guide](https://mesa.readthedocs.io/latest/migration_guide.html). Progress is tracked in #2233, feedback and help is appreciated! Finally, we also added a new section to our [contributor guide](https://github.com/projectmesa/mesa/blob/main/CONTRIBUTING.md#i-have-no-idea-where-to-start) to get new contributors up to speed.
120
212
 
121
213
  This pre-release can be installed as always with `pip install --pre mesa`
122
214
 
@@ -207,7 +299,7 @@ This is the first pre-release in the Mesa 3.0 series, which is still in active d
207
299
  Since it's in active development, more breaking changes may follow and it's not recommended for general usage.
208
300
 
209
301
  There are two major breaking changes at this point:
210
- - The old visualisation is removed, in favor of the new, Solara based, Jupyter Viz. This was already available in the 2.3.x release series, but is now stabilized. Checkout out our new [Visualization Tutorial](https://mesa.readthedocs.io/en/latest/tutorials/visualization_tutorial.html). More examples and a migration guide will follow later in the Mesa 3.0 development.
302
+ - The old visualisation is removed, in favor of the new, Solara based, Jupyter Viz. This was already available in the 2.3.x release series, but is now stabilized. Checkout out our new [Visualization Tutorial](https://mesa.readthedocs.io/latest/tutorials/visualization_tutorial.html). More examples and a migration guide will follow later in the Mesa 3.0 development.
211
303
  - The `mesa.flat` namespace is removed, since was not used very often.
212
304
 
213
305
  Mesa 3.0 will require Python 3.10+.
mesa-3.0.0b1/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -1,10 +1,10 @@
1
- Copyright 2023 Core Mesa Team and contributors
1
+ Copyright 2014-2024 Core Mesa Team and contributors
2
2
 
3
3
  Licensed under the Apache License, Version 2.0 (the "License");
4
4
  you may not use this file except in compliance with the License.
5
5
  You may obtain a copy of the License at
6
6
 
7
- http://www.apache.org/licenses/LICENSE-2.0
7
+ https://www.apache.org/licenses/LICENSE-2.0
8
8
 
9
9
  Unless required by applicable law or agreed to in writing, software
10
10
  distributed under the License is distributed on an "AS IS" BASIS,
@@ -1,12 +1,13 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: Mesa
3
- Version: 3.0.0a5
3
+ Version: 3.0.0b1
4
4
  Summary: Agent-based modeling (ABM) in Python
5
5
  Project-URL: homepage, https://github.com/projectmesa/mesa
6
6
  Project-URL: repository, https://github.com/projectmesa/mesa
7
7
  Author-email: Project Mesa Team <projectmesa@googlegroups.com>
8
8
  License: Apache 2.0
9
9
  License-File: LICENSE
10
+ License-File: NOTICE
10
11
  Keywords: ABM,agent,based,model,modeling,multi-agent,simulation
11
12
  Classifier: Development Status :: 3 - Alpha
12
13
  Classifier: Intended Audience :: Science/Research
@@ -22,30 +23,60 @@ Classifier: Topic :: Scientific/Engineering
22
23
  Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
23
24
  Classifier: Topic :: Scientific/Engineering :: Artificial Life
24
25
  Requires-Python: >=3.10
25
- Requires-Dist: click
26
- Requires-Dist: cookiecutter
27
- Requires-Dist: matplotlib
28
- Requires-Dist: networkx
29
26
  Requires-Dist: numpy
30
27
  Requires-Dist: pandas
31
- Requires-Dist: solara
32
28
  Requires-Dist: tqdm
29
+ Provides-Extra: all
30
+ Requires-Dist: cookiecutter; extra == 'all'
31
+ Requires-Dist: ipython; extra == 'all'
32
+ Requires-Dist: matplotlib; extra == 'all'
33
+ Requires-Dist: myst-nb; extra == 'all'
34
+ Requires-Dist: myst-parser; extra == 'all'
35
+ Requires-Dist: networkx; extra == 'all'
36
+ Requires-Dist: pydata-sphinx-theme; extra == 'all'
37
+ Requires-Dist: pytest; extra == 'all'
38
+ Requires-Dist: pytest-cov; extra == 'all'
39
+ Requires-Dist: pytest-mock; extra == 'all'
40
+ Requires-Dist: ruff; extra == 'all'
41
+ Requires-Dist: scipy; extra == 'all'
42
+ Requires-Dist: seaborn; extra == 'all'
43
+ Requires-Dist: solara; extra == 'all'
44
+ Requires-Dist: sphinx; extra == 'all'
33
45
  Provides-Extra: dev
46
+ Requires-Dist: cookiecutter; extra == 'dev'
47
+ Requires-Dist: matplotlib; extra == 'dev'
48
+ Requires-Dist: networkx; extra == 'dev'
49
+ Requires-Dist: pytest; extra == 'dev'
34
50
  Requires-Dist: pytest-cov; extra == 'dev'
35
51
  Requires-Dist: pytest-mock; extra == 'dev'
36
- Requires-Dist: pytest>=4.6; extra == 'dev'
37
- Requires-Dist: ruff~=0.1.1; extra == 'dev'
52
+ Requires-Dist: ruff; extra == 'dev'
53
+ Requires-Dist: solara; extra == 'dev'
38
54
  Requires-Dist: sphinx; extra == 'dev'
39
55
  Provides-Extra: docs
40
56
  Requires-Dist: ipython; extra == 'docs'
57
+ Requires-Dist: matplotlib; extra == 'docs'
41
58
  Requires-Dist: myst-nb; extra == 'docs'
42
59
  Requires-Dist: myst-parser; extra == 'docs'
60
+ Requires-Dist: networkx; extra == 'docs'
43
61
  Requires-Dist: pydata-sphinx-theme; extra == 'docs'
44
62
  Requires-Dist: seaborn; extra == 'docs'
63
+ Requires-Dist: solara; extra == 'docs'
45
64
  Requires-Dist: sphinx; extra == 'docs'
46
65
  Provides-Extra: examples
47
- Requires-Dist: pytest>=4.6; extra == 'examples'
66
+ Requires-Dist: matplotlib; extra == 'examples'
67
+ Requires-Dist: networkx; extra == 'examples'
68
+ Requires-Dist: pytest; extra == 'examples'
48
69
  Requires-Dist: scipy; extra == 'examples'
70
+ Requires-Dist: solara; extra == 'examples'
71
+ Provides-Extra: network
72
+ Requires-Dist: networkx; extra == 'network'
73
+ Provides-Extra: rec
74
+ Requires-Dist: matplotlib; extra == 'rec'
75
+ Requires-Dist: networkx; extra == 'rec'
76
+ Requires-Dist: solara; extra == 'rec'
77
+ Provides-Extra: viz
78
+ Requires-Dist: matplotlib; extra == 'viz'
79
+ Requires-Dist: solara; extra == 'viz'
49
80
  Description-Content-Type: text/markdown
50
81
 
51
82
  # Mesa: Agent-based modeling in Python
@@ -78,7 +109,7 @@ can be displayed in browser windows or Jupyter.*
78
109
 
79
110
  ## Using Mesa
80
111
 
81
- To install our latest stable release (2.3.x), run:
112
+ To install our latest stable release (2.4.x), run:
82
113
 
83
114
  ``` bash
84
115
  pip install -U mesa
@@ -89,6 +120,17 @@ To install our latest pre-release (3.0.0 alpha), run:
89
120
  ``` bash
90
121
  pip install -U --pre mesa
91
122
  ```
123
+ With Mesa 3.0, we don't install all our dependencies anymore by default.
124
+ ```bash
125
+ # You can customize the additional dependencies you need, if you want. Available are:
126
+ pip install -U --pre mesa[network,viz]
127
+
128
+ # This is equivalent to our recommended dependencies:
129
+ pip install -U --pre mesa[rec]
130
+
131
+ # To install all, including developer, dependencies:
132
+ pip install -U --pre mesa[all]
133
+ ```
92
134
 
93
135
  You can also use `pip` to install the latest GitHub version:
94
136
 
@@ -107,13 +149,13 @@ For resources or help on using Mesa, check out the following:
107
149
 
108
150
  - [Intro to Mesa Tutorial](http://mesa.readthedocs.org/en/stable/tutorials/intro_tutorial.html) (An introductory model, the Boltzmann
109
151
  Wealth Model, for beginners or those new to Mesa.)
110
- - [Visualization Tutorial](https://mesa.readthedocs.io/en/stable/tutorials/visualization_tutorial.html) (An introduction into our Solara visualization)
152
+ - [Visualization Tutorial](https://mesa.readthedocs.io/stable/tutorials/visualization_tutorial.html) (An introduction into our Solara visualization)
111
153
  - [Complexity Explorer Tutorial](https://www.complexityexplorer.org/courses/172-agent-based-models-with-python-an-introduction-to-mesa) (An advanced-beginner model,
112
154
  SugarScape with Traders, with instructional videos)
113
- - [Mesa Examples](https://github.com/projectmesa/mesa-examples/tree/main/examples) (A repository of seminal ABMs using Mesa and
155
+ - [Mesa Examples](https://github.com/projectmesa/mesa-examples) (A repository of seminal ABMs using Mesa and
114
156
  examples of employing specific Mesa Features)
115
157
  - [Docs](http://mesa.readthedocs.org/) (Mesa's documentation, API and useful snippets)
116
- - [Development version docs](https://mesa.readthedocs.io/en/latest/) (the latest version docs if you're using a pre-release Mesa version)
158
+ - [Development version docs](https://mesa.readthedocs.io/latest/) (the latest version docs if you're using a pre-release Mesa version)
117
159
  - [Discussions](https://github.com/projectmesa/mesa/discussions) (GitHub threaded discussions about Mesa)
118
160
  - [Matrix Chat](https://matrix.to/#/#project-mesa:matrix.org) (Chat Forum via Matrix to talk about Mesa)
119
161