Skip to content

Commit b41550f

Browse files
committed
Make project version metadata dynamic
This reduces the places one needs to update a version string.
1 parent d5cae28 commit b41550f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "cycler"
3-
version = "0.12.0.dev0"
3+
dynamic = ["version"]
44
description = "Composable style cycles"
55
authors = [
66
{name = "Thomas A Caswell", email = "matplotlib-users@python.org"},
@@ -28,6 +28,9 @@ repository = "https://github.com/matplotlib/cycler"
2828
[tool.setuptools]
2929
packages = ["cycler"]
3030

31+
[tool.setuptools.dynamic]
32+
version = {attr = "cycler.__version__"}
33+
3134
[build-system]
3235
requires = ["setuptools>=61"]
3336
build-backend = "setuptools.build_meta"

0 commit comments

Comments
 (0)