Source: namecheap
Version: 0.0.3-4
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: nocheck
X-Debbugs-Cc: [email protected]

Hi,

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

This was because it ships a different binary package depending
on whether the tests are run or not. This is caused by the
package copying namecheap_test.py into the pybuild {build_dir}
in PYBUILD_BEFORE_TEST and, as it is not otherwise removed later,
this file ends up in the binary .deb... but only if the tests
are run.

Patch attached that removes this file in PYBUILD_AFTER_TEST.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- a/debian/rules      2025-11-19 13:10:26.214737840 -0800
--- b/debian/rules      2025-11-19 13:24:51.986386319 -0800
@@ -3,6 +3,7 @@
 export PYBUILD_NAME=namecheap
 export PYBUILD_DESTDIR_python3=debian/python3-${PYBUILD_NAME}
 export PYBUILD_BEFORE_TEST=cp namecheap_tests.py {build_dir}
+export PYBUILD_AFTER_TEST=rm {build_dir}/namecheap_tests.py
 export PYBUILD_TEST_ARGS = namecheap_tests.py -k 'not domain'
 
 %:

Reply via email to