From 0f1e86909879c8d2fc64ee01e17207aa6f1ecaf1 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Tue, 20 Dec 2022 13:28:48 -0600 Subject: [PATCH] build: use scm for package version --- pyproject.toml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index ca91533..4ee4459 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,23 +1,22 @@ -[tool.pdm] -[tool.pdm.dev-dependencies] -dev = [ - "pre-commit>=2.20.0", -] +[build-system] +requires = ["pdm-pep517>=1.0"] +build-backend = "pdm.pep517.api" [project] name = "viv" -version = "22.12a1" description = "viv isn't venv" authors = [{ name = "Daylin Morgan", email = "daylinmorgan@gmail.com" }] dependencies = [] requires-python = ">= 3.7" readme = "README.md" license = { text = "MIT" } +dynamic = ["version"] [project.scripts] viv = "viv.viv:main" +[tool.pdm] +version = { source = "scm" } -[build-system] -requires = ["pdm-pep517>=1.0"] -build-backend = "pdm.pep517.api" +[tool.pdm.dev-dependencies] +dev = ["pre-commit>=2.20.0"]