-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathpyproject.toml
More file actions
149 lines (125 loc) · 6.04 KB
/
pyproject.toml
File metadata and controls
149 lines (125 loc) · 6.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
# ──────────────────────────────────────────────────────────────────────────────
# Build system (unchanged)
# ──────────────────────────────────────────────────────────────────────────────
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
# ──────────────────────────────────────────────────────────────────────────────
# Project metadata (updated dependency versions)
# ──────────────────────────────────────────────────────────────────────────────
[project]
name = "mesa_frames"
description = "An extension to the Mesa framework which uses Polars DataFrames for enhanced performance"
authors = [
{ name = "Project Mesa Team", email = "projectmesa@googlegroups.com" },
{ name = "Adam Amer" },
]
license = { text = "MIT" }
readme = "README.md"
keywords = [
"simulation", "simulation-environment", "gis", "simulation-framework",
"agent-based-modeling", "complex-systems", "spatial-models", "mesa",
"complexity-analysis", "modeling-agents", "agent-based-modelling",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: Artificial Life",
]
requires-python = ">=3.11"
dependencies = [
"numpy>=2.0.2",
"pyarrow>=20.0.0",
# polars._typing added in 1.0.0
"polars>=1.30.0",
"psycopg2-binary>=2.9.10",
"boto3>=1.35.91",
"typing-extensions>=4.15.0",
]
dynamic = ["version"]
[project.urls]
Documentation = "https://mesa.github.io/mesa-frames"
Repository = "https://github.com/mesa/mesa-frames.git"
# ──────────────────────────────────────────────────────────────────────────────
# Dependency groups (PEP 735) – local-only, never shipped to PyPI
# ──────────────────────────────────────────────────────────────────────────────
[dependency-groups]
typechecking = [
"beartype>=0.21.0",
]
test = [
{ include-group = "typechecking" },
"pytest>=8.3.5",
"pytest-cov>=6.1.1",
]
docs = [
{ include-group = "typechecking" },
"jupytext>=1.17.3",
"typer>=0.9.0",
"mkdocs-material>=9.6.14",
"mkdocs-jupyter>=0.25.1",
"mkdocs-git-revision-date-localized-plugin>=1.4.7",
"mkdocs-minify-plugin>=0.8.0",
"mkdocs-include-markdown-plugin>=7.1.5",
"sphinx>=7.4.7",
"sphinx-rtd-theme>=3.0.2",
"numpydoc>=1.8.0",
"pydata-sphinx-theme>=0.16.1",
"sphinx-copybutton>=0.5.2",
"sphinx-design>=0.6.1",
"autodocsumm>=0.2.14",
"seaborn>=0.13.2",
"sphinx-autobuild>=2025.8.25",
"mesa>=3.2.0",
]
# dev = test ∪ docs ∪ extra tooling
dev = [
{ include-group = "test" },
{ include-group = "docs" },
"numba>=0.62",
"ruff>=0.11.12",
"pre-commit>=4.2.0",
]
# ──────────────────────────────────────────────────────────────────────────────
# Hatch configuration
# ──────────────────────────────────────────────────────────────────────────────
[tool.hatch.version]
path = "mesa_frames/__init__.py"
# Ask Hatch to use uv as the installer everywhere for speed.
[tool.hatch.envs.default]
installer = "uv"
# Testing environment ‒ installs ONLY the "test" group
[tool.hatch.envs.test]
dependencies = [{ include-group = "test" }]
# Docs build environment
[tool.hatch.envs.docs]
dependencies = [{ include-group = "docs" }]
# Dev environment (inherits uv installer)
[tool.hatch.envs.dev]
dependencies = [{ include-group = "dev" }]
env = { MESA_FRAMES_RUNTIME_TYPECHECKING = "true" }
# Wheel build – unchanged
[tool.hatch.build.targets.wheel]
packages = ["mesa_frames"]
# ──────────────────────────────────────────────────────────────────────────────
# uv configuration
# ──────────────────────────────────────────────────────────────────────────────
[tool.uv]
# Install the dev stack by default when you run `uv sync`
default-groups = ["dev"]
[tool.uv.sources]
mesa-frames = { workspace = true }
# ──────────────────────────────────────────────────────────────────────────────
# Ruff linter – unchanged
# ──────────────────────────────────────────────────────────────────────────────
[tool.ruff.lint]
select = ["D"]
ignore = ["D101", "D102", "D105"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["D"]
"examples/*" = ["D"]
"docs/*" = ["D"]