From c1a8fd3d41d4547af5477072f35c7a388b908c05 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Mon, 11 Mar 2024 13:59:06 -0500 Subject: [PATCH] chore: get version from file --- pyproject.toml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index a76be75..587b121 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,5 @@ [project] name = "swydd" -version = "0.1.0" description = "swydd will yield desired deliverables" authors = [ {name = "Daylin Morgan", email = "daylinmorgan@gmail.com"}, @@ -9,15 +8,15 @@ dependencies = [] requires-python = ">=3.9" readme = "README.md" license = {text = "MIT"} - -[build-system] -requires = ["pdm-backend"] -build-backend = "pdm.backend" - +dynamic = ["version"] [tool.pdm] distribution = true +[tool.pdm.version] +source = "file" +path = "swydd/__init__.py" + [tool.pdm.dev-dependencies] dev = [ "pre-commit>=3.6.2", @@ -32,3 +31,9 @@ ignore = ["E402"] check_untyped_defs = true disallow_untyped_defs = true warn_unused_configs = true + +[build-system] +requires = ["pdm-backend"] +build-backend = "pdm.backend" + +