build: use scm for package version

This commit is contained in:
Daylin Morgan 2022-12-20 13:28:48 -06:00
parent 71f41e28d9
commit 0f1e869098

View file

@ -1,23 +1,22 @@
[tool.pdm] [build-system]
[tool.pdm.dev-dependencies] requires = ["pdm-pep517>=1.0"]
dev = [ build-backend = "pdm.pep517.api"
"pre-commit>=2.20.0",
]
[project] [project]
name = "viv" name = "viv"
version = "22.12a1"
description = "viv isn't venv" description = "viv isn't venv"
authors = [{ name = "Daylin Morgan", email = "daylinmorgan@gmail.com" }] authors = [{ name = "Daylin Morgan", email = "daylinmorgan@gmail.com" }]
dependencies = [] dependencies = []
requires-python = ">= 3.7" requires-python = ">= 3.7"
readme = "README.md" readme = "README.md"
license = { text = "MIT" } license = { text = "MIT" }
dynamic = ["version"]
[project.scripts] [project.scripts]
viv = "viv.viv:main" viv = "viv.viv:main"
[tool.pdm]
version = { source = "scm" }
[build-system] [tool.pdm.dev-dependencies]
requires = ["pdm-pep517>=1.0"] dev = ["pre-commit>=2.20.0"]
build-backend = "pdm.pep517.api"