diff --git a/pyproject.toml b/pyproject.toml index 7b39da9..f188997 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,10 @@ [build-system] -requires = ["hatchling", "hatch-vcs"] +requires = ["hatchling", "uv-dynamic-versioning"] build-backend = "hatchling.build" +[tool.hatch.version] +source = "uv-dynamic-versioning" + [project] name = "yomitoku" dynamic = ["version"] @@ -25,14 +28,10 @@ dependencies = [ ] license = {text = "CC BY-NC-SA 4.0"} -[tool.hatch.version] -source = "vcs" -tag-pattern = "^v(?P[0-9]+\\.[0-9]+\\.[0-9]+)$" - - -[tool.hatch.version.raw-options] -local_scheme = "no-local-version" -version_scheme = "no-guess-dev" +[tool.uv-dynamic-versioning] +vcs = "git" +style = "semver" +format = "{base}" [tool.uv] dev-dependencies = [ diff --git a/uv.lock b/uv.lock index fbc50b9..8a16320 100644 --- a/uv.lock +++ b/uv.lock @@ -1684,7 +1684,7 @@ wheels = [ [[package]] name = "yomitoku" -version = "0.3.0.post1.dev28" +version = "0.3.0" source = { editable = "." } dependencies = [ { name = "huggingface-hub" },