Skip to content

Commit

Permalink
Add dynamic versioning to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
tomvothecoder committed Nov 6, 2024
1 parent 507fddb commit c83ac5c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "xcdat"
version = "0.7.3"
dynamic = ["version"]
description = "Xarray Climate Data Analysis Tools"
readme = "README.rst"
requires-python = ">=3.9"
Expand Down Expand Up @@ -35,6 +35,10 @@ dependencies = [
"xgcm",
]

[project.urls]
Documentation = "https://xcdat.readthedocs.io/en/latest/getting-started-guide/overview.html"
"Issue Tracker" = "https://github.com/xCDAT/xcdat/issues"

[project.optional-dependencies]
test = ["pytest", "pytest-cov"]
docs = [
Expand All @@ -54,7 +58,7 @@ dev = ["types-python-dateutil", "pre-commit", "ruff", "mypy"]
include = ["xcdat", "xcdat.*"]

[tool.setuptools.dynamic]
version = { attr = "xcdat.version.__version__" }
version = { attr = "xcdat.__version__" }

[tool.ruff]
# Exclude a variety of commonly ignored directories.
Expand Down

0 comments on commit c83ac5c

Please sign in to comment.