Skip to content

Commit

Permalink
Automatically determine version when building
Browse files Browse the repository at this point in the history
  • Loading branch information
thcrt committed Nov 10, 2024
1 parent f576048 commit fd9c8a7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
__pycache__/
.ruff_cache/
.venv/
blobdash.toml
blobdash.toml
version.txt
10 changes: 8 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "blobdash"
version = "0.1.0-dev"
readme = "README.md"
dynamic = ["version"]
authors = [
{ name = "thcrt", email = "[email protected]" }
]
Expand All @@ -13,14 +13,20 @@ dependencies = [
]

[build-system]
requires = ["hatchling"]
requires = ["hatch-vcs", "hatchling"]
build-backend = "hatchling.build"

[dependency-groups]
dev = [
"ruff>=0.7.2",
]

[tool.hatch.version]
source = "vcs"

[tool.hatch.build.hooks.vcs]
version-file = "version.txt"

[tool.ruff]
line-length = 100

Expand Down

0 comments on commit fd9c8a7

Please sign in to comment.