From 98c0a580fbd31759a9044da184412ec087115e75 Mon Sep 17 00:00:00 2001 From: Christian Hartung Date: Tue, 16 Jul 2024 15:14:15 -0300 Subject: [PATCH] chore: use current git tag as version --- pyproject.toml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 4d7b880..2be5e1c 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 = "django-pwa" -version = "1.1.0" +dynamic = ["version"] description = "A Django app to include a manifest.json and Service Worker instance to enable progressive web app behavior" readme = "README.md" license = { file = "LICENSE" } @@ -37,6 +37,9 @@ dependencies = ["django>=3.2"] [project.urls] Repository = "http://github.com/silviolleite/django-pwa" +[tool.hatch.version] +source = "vcs" + [tool.hatch.build.targets.sdist] packages = ["/pwa", "/tests"]