Source: reprotest
Version: 0.7.18
Severity: normal
Tags: patch

Adding a suffix is pretty common in a downstream distro. For example,
Ubuntu adds ubuntu1 when modifying a package, or build1 when doing a
no-change upload (Ubuntu doesn't have binNMUs).

Is the expectation that setup.py should have it's version updated in
this situation? I assume not from the + check, which would exclude
Debian NMUs and binNMUs.

Maybe just check the numeric bit? e.g.
--- a/debian/rules
+++ b/debian/rules
@@ -20,7 +20,7 @@ export PYBUILD_NAME = reprotest
 export REPROTEST_TEST_DONTVARY = fileordering,user_group,domain_host$(if 
$(shell nproc | grep --color=no -Fx 1),$(,)num_cpus,)

 override_dh_auto_configure:
-       test $$(python3 setup.py --version) = $$(echo $(DEB_VERSION) | cut -f1 
-d'+')
+       test $$(python3 setup.py --version) = $$(echo $(DEB_VERSION) | sed 
's/[^0-9.].*//')
        dh_auto_configure

 override_dh_auto_build:

SR

Reply via email to