Skip to content

Commit

Permalink
Use hatch-version-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
object-Object committed Nov 8, 2023
1 parent f86a6ca commit a538412
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 8 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
[build-system]
requires = ["hatchling"]
requires = [
"hatchling",
"hatch-version-commit",
]
build-backend = "hatchling.build"

# project metadata

[project]
name = "hexdoc"
version = "1!0.1.0.dev0"
description = "Python web book docgen for Patchouli and Hex Casting."
authors = [
{ name="object-Object" },
Expand Down Expand Up @@ -35,6 +37,7 @@ classifiers = [
"Typing :: Typed",
]
requires-python = ">=3.11"
dynamic = ["version"]
dependencies = [
"importlib_resources~=6.0",
"Jinja2~=3.1",
Expand Down Expand Up @@ -79,6 +82,9 @@ dev = [
Homepage = "https://object-object.github.io/HexMod/" # TODO: replace?
Source = "https://github.com/object-Object/hexdoc"

[tool.hatch.version]
path = "src/hexdoc/__version__.py"

[tool.hatch.build]
artifacts = [
"/src/hexdoc/_export/generated",
Expand Down
1 change: 1 addition & 0 deletions src/hexdoc/__version__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VERSION = "1!0.1.0.dev0"

0 comments on commit a538412

Please sign in to comment.