Skip to content

Commit d3fdbc0

Browse files
committed
build(pyproject): Define the version as a static field
Define the project version in the `pyproject.toml` file instead of dynamically fetching it from the `__version__` attr of the root module.
1 parent 0ec6c06 commit d3fdbc0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pyproject.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ readme = "README.md"
99
keywords = ["powerapi", "energy", "power-meter", "green-computing"]
1010
license = {text = "BSD-3-Clause"}
1111
requires-python = ">=3.10"
12-
dynamic = ["version"]
12+
version = "2.10.0"
1313

1414
classifiers = [
1515
"Programming Language :: Python :: 3.10",
@@ -74,6 +74,3 @@ dev = [
7474
homepage = "https://powerapi.org"
7575
documentation = "https://powerapi.readthedocs.org"
7676
repository = "https://github.com/powerapi-ng/powerapi"
77-
78-
[tool.setuptools.dynamic]
79-
version = {attr = "powerapi.__version__"}

0 commit comments

Comments
 (0)