Bug#1152182: python-poetry-dynamic-versioning: please make the build reproducible

Chris Lamb lamby at debian.org
Mon Oct 26 15:59:30 GMT 2026


Source: python-poetry-dynamic-versioning
Version: 1.10.0-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: nocheck
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Hi,

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

This is because the tests create a Git directory that ends up being
shipped in the binary package (itself perhaps a bug). However, this
means that if the tests are skipped, then the package won't contain
this directory and is therefore unreproducible.

Patch attached.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/rules	2026-10-26 08:55:10.661010523 -0700
--- b/debian/rules	2026-10-26 08:57:52.143408508 -0700
@@ -1,6 +1,7 @@
 #! /usr/bin/make -f
 
 export PYBUILD_BEFORE_TEST=cd {build_dir} && git init
+export PYBUILD_AFTER_TEST=rm -rf {build_dir}/.git
 
 # Integration tests require internet access
 export PYBUILD_TEST_ARGS=tests/test_unit.py


More information about the Reproducible-bugs mailing list