Your message dated Tue, 29 Sep 2026 07:49:49 +0000
with message-id <[email protected]>
and subject line Bug#1149153: fixed in python-logistro 2.0.1+dfsg1-3
has caused the Debian Bug report #1149153,
regarding python-logistro: FTBFS when adding an extra +version
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1149153: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1149153
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: src:python-logistro
Version: 2.0.1+dfsg1-2
User: [email protected]
Usertags: python3.15
Tags: patch, ftbfs, forky, sid
Severity: minor

Hi!

While rebuilding the python related packages against the Python 3.15rc2 version 
we found that 2.0.1+dfsg1-2 failed to build from source, because of the 
additional `+py315.1` suffix [1].

The double + in the version string breaks this line:

version_from_debian, _ = match.group(1).split("+")

The patch to fix this is simple: just adding a * to the _ parameter takes care 
of ignoring any amount of parts after the first one.

I've updated the pyproject-add-version patch to add this fix and applied it in 
the sandbox [2] to verify that it builds successfully, please consider applying 
the patch to support future rebuilds of python-logistro.

Happy hacking,

[1]: https://debusine.debian.net/debian/r-python-python3.15/artifact/4352701/
[2]: https://debusine.debian.net/debian/r-python-python3.15/

--
"Can you imagine what I would do if I could do all I can?" -- Sun Tzu
Saludos /\/\ /\ >< `/
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -11,7 +11,7 @@
 [project]
 name = "logistro"
 description = "Simple wrapper over logging for a couple basic features"
-dynamic = ["version"]
+version = "2.0.1"
 readme = "README.md"
 license = { "file" = "LICENSE" }
 requires-python = ">=3.8"
--- /dev/null
+++ b/tests/conftest.py
@@ -0,0 +1,8 @@
+import pytest
+
[email protected]
+def project_root(request):
+    return request.config.getoption("--project-root")
+
+def pytest_addoption(parser):
+    parser.addoption("--project-root", action="store", default=None, help="Project root directory")
--- /dev/null
+++ b/tests/test_version.py
@@ -0,0 +1,32 @@
+import importlib.metadata
+import re
+import pathlib
+
+import logistro
+
+
+def test_version_matches_debian_package(project_root):
+    """
+    Test that logistro version metadata matches the Debian package version.
+
+    This is a check that the maintainer remembered to update the version in debian/patches/pyproject-add-version.diff when releasing a new version.
+    The patch is needed becaue upstream depends on setuptools-git-versioning, which is not available in Debian.
+    """
+    # Get version from python
+    version_from_python = importlib.metadata.version("logistro")
+
+    # Read debian/changelog and extract the version
+    if project_root is not None:
+        changelog_path = pathlib.Path(project_root) / "debian" / "changelog"
+    else:
+        changelog_path = pathlib.Path(__file__).parent.parent / "debian" / "changelog"
+    changelog_content = changelog_path.read_text()
+    match = re.search(r"python-logistro \(([^)]+)\)", changelog_content)
+    assert match, "Could not find version in debian/changelog"
+    version_from_debian, *_ = match.group(1).split("+")
+
+    # Compare the two versions
+    assert version_from_python == version_from_debian, (
+        f"Version in pyproject.toml ({version_from_python}) does not match "
+        f"Debian version ({version_from_debian}). Please update debian/patches/pyproject-add-version.diff to set the correct version."
+    )

--- End Message ---
--- Begin Message ---
Source: python-logistro
Source-Version: 2.0.1+dfsg1-3
Done: Francesco Ballarin <[email protected]>

We believe that the bug you reported is fixed in the latest version of
python-logistro, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Francesco Ballarin <[email protected]> (supplier of updated python-logistro 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 29 Sep 2026 07:27:18 +0000
Source: python-logistro
Architecture: source
Version: 2.0.1+dfsg1-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <[email protected]>
Changed-By: Francesco Ballarin <[email protected]>
Closes: 1149153
Changes:
 python-logistro (2.0.1+dfsg1-3) unstable; urgency=medium
 .
   * Refresh pyproject-add-version.diff to allow multiple + in the version
     string. Thanks to Maximiliano Curia <[email protected]> for providing the
     patch. Closes: #1149153.
Checksums-Sha1:
 e19482bd88f92a343f8d14d24ea68be9bfe75965 2182 python-logistro_2.0.1+dfsg1-3.dsc
 6b61ef74936a1bf47219a761f975d3750995be17 3316 
python-logistro_2.0.1+dfsg1-3.debian.tar.xz
 1e24a82bb3368ad18d3acac8378a96c97e00c94a 6178 
python-logistro_2.0.1+dfsg1-3_source.buildinfo
Checksums-Sha256:
 75f970db89f8081dcbc8f9a275749aee8828457ff645f2b08dc1be5ed9a92a97 2182 
python-logistro_2.0.1+dfsg1-3.dsc
 37984637340dceda15d99af4a205c5ed2d46f98cfc341be894c25f36bfed07d2 3316 
python-logistro_2.0.1+dfsg1-3.debian.tar.xz
 983d3c27fc998a66971259d62aefd431840bb3e50b969c29f62d51e4f1579459 6178 
python-logistro_2.0.1+dfsg1-3_source.buildinfo
Files:
 65f4b82754af3f336d2eadf4a5a20a02 2182 python optional 
python-logistro_2.0.1+dfsg1-3.dsc
 953dfbf24d13b7aca7009146de0f7a5b 3316 python optional 
python-logistro_2.0.1+dfsg1-3.debian.tar.xz
 35a45d8a4c7f6b44c4b5fc1a279dbeee 6178 python optional 
python-logistro_2.0.1+dfsg1-3_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEG10EseUHu/A2aeK4AfNfwz5zr4wFAmq7aMkACgkQAfNfwz5z
r4zMIA/+JRREkAdNDWrGxs92fzy8aVpU6g+3IZp9OEy/byMhMhEk4/mKTFEIQEeK
sfoL1tnYaNIsOlfGFQWHJoKTQfKBKtE0YDAqaxgyoJvL9tXpMrCaYFM/PTDkL+PE
i338O5ccMzFRdJ3Kjtp16g1E8knh9pWzDTneUXCU30SOc3t1Esz3pD+iU5fdBKO8
oJiI6pT3IrlM2zaGNygEZenRKglBTfjUUsWwRm7lJeimVuYxqXEJRNxZS/qrWdph
zhXlYG2HZEALwtU60HnShddJ6WRO/yeSwS/U1N7kcbIro84h3o2cOvqOxBxYOqJA
FjyefUFQHvbLt2/31T5jFomDvrChaKinWxN9itG5qlK7ZuKDEN+1feiceyu+iFCJ
EXEEt6suoOxKa0cT1TbogKpvlOkeGQchq+wPZIyOn5URUGd1wVelB6JEVo37AAGD
PY1+Orz/R2VnKqkL8FFMMARQHDifrWltueiC3+OU1oj/zplureaGUr2fkG3UcVPK
5QCPvB4GRC8uPBRcQJxwIJk8hGgNZsdKek4Sue/8vSW8+kqJKr+LpSIAJqLonXIL
u4TcqfcRd+PZOiZSJvSa98VvfcsVZ38B1+2+snrr/ichPLzS+3p7E7lKYF3mavpv
FKGXDWYXNmxCMVHABsn0zOhy/LrIFOaeUTJk/G9Os4Kik5RqOY0=
=cRtM
-----END PGP SIGNATURE-----

Attachment: pgp9RdY1EOM7i.pgp
Description: PGP signature


--- End Message ---

Reply via email to