From: Emmanuel Arias Date: Mon, 18 Aug 2025 11:17:23 -0300 Subject: Fix versioning in deb package The package needs the versioningit package to derive its version dynamically. versioningit is not (yet) available in Debian, so this patch drops that build dependency and instead lets setuptools read the version statically from src/con_duct/_version.py (which already ships in the upstream tarball as `__version__ = "X.Y.Z"`) via the standard [tool.setuptools.dynamic] mechanism. The existing `dynamic = ["version"]` marker in [project] is kept so that PEP 621 sees the version as declared. Last-Update: 2026-05-10 --- pyproject.toml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,6 @@ [build-system] requires = [ "setuptools >= 46.4.0", - "versioningit", ] build-backend = "setuptools.build_meta" @@ -67,8 +66,8 @@ con-duct = "con_duct.cli:main" -[tool.versioningit.write] -file = "src/con_duct/_version.py" +[tool.setuptools.dynamic] +version = {attr = "con_duct._version.__version__"} [tool.pytest.ini_options] addopts = "--cov=con_duct --no-cov-on-fail"