-
Notifications
You must be signed in to change notification settings - Fork 948
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate setup from setup.py to pyproject.toml
Remove Tornado external dep files from MANIFEST.in Apply Black pyproject.toml: Dynamically read version from __init__.py
- Loading branch information
Showing
4 changed files
with
88 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,90 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools", | ||
"wheel", | ||
] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "Mesa" | ||
description = "Agent-based modeling (ABM) in Python 3+" | ||
license = { text = "Apache 2.0" } | ||
requires-python = ">=3.8" | ||
authors = [ | ||
{ name = "Project Mesa Team", email = "[email protected]" }, | ||
] | ||
keywords = [ | ||
"agent", | ||
"based", | ||
"modeling", | ||
"model", | ||
"ABM", | ||
"simulation", | ||
"multi-agent", | ||
] | ||
classifiers = [ | ||
"Topic :: Scientific/Engineering", | ||
"Topic :: Scientific/Engineering :: Artificial Life", | ||
"Topic :: Scientific/Engineering :: Artificial Intelligence", | ||
"Intended Audience :: Science/Research", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Operating System :: OS Independent", | ||
"Development Status :: 3 - Alpha", | ||
"Natural Language :: English", | ||
] | ||
readme = "README.rst" | ||
dependencies = [ | ||
"click", | ||
"cookiecutter", | ||
"matplotlib", | ||
"mesa_viz_tornado~=0.1.0,>=0.1.3", | ||
"networkx", | ||
"numpy", | ||
"pandas", | ||
"solara", | ||
"tqdm", | ||
] | ||
dynamic = ["version"] | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
"black", | ||
"ruff~=0.1.1", # Update periodically | ||
"coverage", | ||
"pytest >= 4.6", | ||
"pytest-cov", | ||
"sphinx", | ||
] | ||
# Explicitly install ipykernel for Python 3.8. | ||
# See https://stackoverflow.com/questions/28831854/how-do-i-add-python3-kernel-to-jupyter-ipython | ||
# Could be removed in the future | ||
docs = [ | ||
"sphinx", | ||
"ipython", | ||
"ipykernel", | ||
"pydata_sphinx_theme", | ||
"seaborn", | ||
"myst-nb", | ||
] | ||
|
||
[project.urls] | ||
homepage = "https://github.com/projectmesa/mesa" | ||
repository = "https://github.com/projectmesa/mesa" | ||
|
||
[project.scripts] | ||
mesa = "mesa.main:cli" | ||
|
||
[tool.setuptools.packages.find] | ||
include = ["mesa*"] | ||
exclude = ["tests*"] | ||
|
||
[tool.setuptools.dynamic] | ||
version = {attr = "mesa.__version__"} | ||
|
||
[tool.ruff] | ||
# See https://github.com/charliermarsh/ruff#rules for error code definitions. | ||
select = [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters