Skip to content
Snippets Groups Projects
Verified Commit e349e3b3 authored by David Runge's avatar David Runge :chipmunk:
Browse files

fix: Configure pdm to derive project version from SCM

parent 921e94da
No related branches found
No related tags found
1 merge request!154Fix SCM versioning
......@@ -16,11 +16,11 @@ stages:
- pages
variables:
BUILD_PUBLISH_PACKAGES: base-devel python-pdm
SYSTEM_PACKAGES: pyalpm python-aiofiles python-email-validator python-jinja python-magic python-orjson python-pydantic python-pyxdg python-pyzstd python-subprocess-tee python-tomli
BUILD_PUBLISH_PACKAGES: base-devel git python-pdm
SYSTEM_PACKAGES: git pyalpm python-aiofiles python-email-validator python-jinja python-magic python-orjson python-pydantic python-pyxdg python-pyzstd python-subprocess-tee python-tomli
SYSTEM_INSTALL_PACKAGES: make python-build python-installer python-pdm python-setuptools python-sphinx python-sphinx-argparse python-sphinx_rtd_theme python-sphinxcontrib-programoutput python-wheel
SYSTEM_TEST_PACKAGES: make python-coverage python-pytest python-pytest-asyncio python-pytest-lazy-fixture
TEST_PACKAGES: base-devel python-pdm
TEST_PACKAGES: base-devel git python-pdm
.check:
stage: check
......
......@@ -82,6 +82,9 @@ dev = [
"bandit>=1.7.4",
]
[tool.pdm]
version = {source = "scm"}
[tool.pdm.build]
excludes = [
"./**/.git",
......@@ -98,7 +101,6 @@ source-includes = [
"LICENSE",
"Makefile",
]
version = {source = "scm"}
[tool.pdm.scripts]
build = {cmd = "make build"}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment