Use git tag versioning for the Python project.

This commit is contained in:
Leo Vasanko
2025-10-02 16:07:11 -06:00
parent bb35e57ba4
commit 963ab06664
2 changed files with 9 additions and 2 deletions

1
.gitignore vendored
View File

@@ -6,3 +6,4 @@ dist/
passkey-auth.sqlite
/passkey/frontend-build
/test_*.py
passkey/_version.py

View File

@@ -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",