From 963ab066640483c0c985e16b96e7e8f8e7e5713b Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Thu, 2 Oct 2025 16:07:11 -0600 Subject: [PATCH] Use git tag versioning for the Python project. --- .gitignore | 1 + pyproject.toml | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 7a66527..ad70a98 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ dist/ passkey-auth.sqlite /passkey/frontend-build /test_*.py +passkey/_version.py diff --git a/pyproject.toml b/pyproject.toml index ee795c6..5e4f46d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,10 +1,10 @@ [build-system] -requires = ["hatchling"] +requires = ["hatchling", "hatch-vcs"] build-backend = "hatchling.build" [project] name = "passkey" -version = "0.2.0" +dynamic = ["version"] description = "Passkey Authentication for Web Services" authors = [ {name = "Leo Vasanko"}, @@ -21,6 +21,12 @@ dependencies = [ ] requires-python = ">=3.10" +[tool.hatch.version] +source = "vcs" + +[tool.hatch.build.hooks.vcs] +version-file = "passkey/_version.py" + [project.optional-dependencies] dev = [ "ruff>=0.1.0",