Skip to content

Commit 9170d64

Browse files
committed
use dynamic version in pyproject
1 parent 0b7f224 commit 9170d64

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

pyproject.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "svgpathtools"
7-
version = "1.7.0"
87
description = "A collection of tools for manipulating and analyzing SVG Path objects and Bezier curves."
98
readme = "README.md"
109
authors = [
@@ -39,6 +38,7 @@ dependencies = [
3938
"svgwrite",
4039
"scipy"
4140
]
41+
dynamic = ["version"]
4242

4343
[project.optional-dependencies]
4444
dev = [
@@ -58,9 +58,11 @@ include = ["svgpathtools*"]
5858
[tool.setuptools]
5959
package-dir = {"" = "."}
6060

61+
[tool.setuptools.dynamic]
62+
version = {attr = "svgpathtools.__version__"}
63+
6164
[tool.black]
6265
line-length = 120
6366

6467
[tool.flake8]
65-
max-line-length = 120
66-
68+
max-line-length = 120

svgpathtools/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# flake8: noqa
2+
__version__ = "1.7.0"
23
from .bezier import (
34
bezier_point,
45
bezier2polynomial,

0 commit comments

Comments
 (0)