Skip to content

Commit

Permalink
build(pyproject): Switch to Hatchling build backend
Browse files Browse the repository at this point in the history
  • Loading branch information
gfieni committed Oct 15, 2024
1 parent 666bcc3 commit 8411179
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "smartwatts"
Expand Down Expand Up @@ -52,5 +52,6 @@ homepage = "https://powerapi.org"
documentation = "https://powerapi.readthedocs.org"
repository = "https://github.com/powerapi-ng/smartwatts-formula"

[tool.setuptools.dynamic]
version = {attr = "smartwatts.__version__"}
[tool.hatch.version]
source = "code"
path = "src/smartwatts/__init__.py"

0 comments on commit 8411179

Please sign in to comment.