Skip to content

Commit

Permalink
pyproject.toml: Dynamically read version from __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rht committed Nov 13, 2023
1 parent 772b9ee commit 35c1fe9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ build-backend = "setuptools.build_meta"

[project]
name = "Mesa"
version = "2.1.4"
description = "Agent-based modeling (ABM) in Python 3+"
license = { text = "Apache 2.0" }
requires-python = ">=3.8"
Expand Down Expand Up @@ -49,6 +48,7 @@ dependencies = [
"solara",
"tqdm",
]
dynamic = ["version"]

[project.optional-dependencies]
dev = [
Expand Down Expand Up @@ -82,6 +82,9 @@ mesa = "mesa.main:cli"
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 = [
Expand Down

0 comments on commit 35c1fe9

Please sign in to comment.