Source: python-vermin
Version: 1.8.0-1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: environment
X-Debbugs-Cc: [email protected]

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed that
python-vermin could not be built reproducibly.

This is because the generated documentation is generated from the --help
output, which itself contains nondeterministic text. Specifically, it
helpfully mentions the current number of CPU cores as an example, but
this makes the package unreproducible across build machines.

Patch attached.

 [0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- a/debian/patches/reproducible-build.patch   1969-12-31 20:00:00.000000000 
-0400
--- b/debian/patches/reproducible-build.patch   2026-09-14 08:04:35.462833410 
-0300
@@ -0,0 +1,15 @@
+Description: Make the build reproducible
+Author: Chris Lamb <[email protected]>
+Last-Update: 2026-09-14
+
+--- python-vermin-1.8.0.orig/vermin/arguments.py
++++ python-vermin-1.8.0/vermin/arguments.py
+@@ -73,7 +73,7 @@ class Arguments:
+             "        Don't expect certain target version(s).\n")
+       print("  --processes=N | -p=N\n"
+             "        Use N concurrent processes to detect and analyze files. 
Defaults to all\n"
+-            "        cores ({}).\n".format(DEFAULT_PROCESSES))
++            "        cores (automatically calculated).\n")
+       print("  --ignore | -i\n"
+             "        Ignore incompatible versions and warnings. However, if 
no compatible\n"
+             "        versions are found then incompatible versions will be 
shown in the end to\n"
--- a/debian/patches/series     1969-12-31 20:00:00.000000000 -0400
--- b/debian/patches/series     2026-09-14 08:04:34.565926163 -0300
@@ -0,0 +1 @@
+reproducible-build.patch

Reply via email to