Skip to content

Commit

Permalink
refactor: consolidate hatch config (#196)
Browse files Browse the repository at this point in the history
* refactor: consolidate hatch config

Signed-off-by: nstarman <[email protected]>

* refactor: move build system config

more standard loc

Signed-off-by: nstarman <[email protected]>

---------

Signed-off-by: nstarman <[email protected]>
  • Loading branch information
nstarman authored Nov 15, 2024
1 parent 4895547 commit ba3a974
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
[build-system]
requires = ["hatchling>=1.8.0", "hatch-vcs"]
build-backend = "hatchling.build"

[project]
name = "plum-dispatch"
description="Multiple dispatch in Python"
Expand Down Expand Up @@ -47,14 +43,17 @@ dev = [
[project.urls]
repository = "https://github.com/beartype/plum"

[tool.hatch.build]
include = ["plum*"]

[tool.hatch.version]
source = "vcs"
[build-system]
requires = ["hatchling>=1.8.0", "hatch-vcs"]
build-backend = "hatchling.build"


[tool.hatch]
version.source = "vcs"
build.include = ["plum*"]
build.hooks.vcs.version-file = "plum/_version.py"

[tool.hatch.build.hooks.vcs]
version-file = "plum/_version.py"

# Development tools
[tool.coverage.run]
Expand Down

0 comments on commit ba3a974

Please sign in to comment.