Debian Codegraph @

debian/patches/0001-fix-verisons-in-package.patch

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