Package: src:python-pyotp Version: 2.1.1-2 Severity: serious Dear maintainer:
I tried to build this package in stretch with "dpkg-buildpackage -A" (which is what the "Arch: all" autobuilder would do to build it) but it failed: -------------------------------------------------------------------------------- [...] debian/rules build-indep dh build-indep --with python2,python3 --buildsystem=pybuild dh_testdir -i -O--buildsystem=pybuild dh_update_autotools_config -i -O--buildsystem=pybuild dh_auto_configure -i -O--buildsystem=pybuild I: pybuild base:184: python2.7 setup.py config running config I: pybuild base:184: python3.5 setup.py config running config dh_auto_build -i -O--buildsystem=pybuild I: pybuild base:184: /usr/bin/python setup.py build running build running build_py creating /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyotp copying src/pyotp/utils.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyotp copying src/pyotp/hotp.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyotp copying src/pyotp/otp.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyotp copying src/pyotp/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyotp copying src/pyotp/totp.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyotp I: pybuild base:184: /usr/bin/python3 setup.py build running build running build_py creating /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/pyotp copying src/pyotp/utils.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/pyotp copying src/pyotp/hotp.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/pyotp copying src/pyotp/otp.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/pyotp copying src/pyotp/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/pyotp copying src/pyotp/totp.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/pyotp dh_auto_test -i -O--buildsystem=pybuild I: pybuild base:184: cd /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build; python2.7 -m unittest discover -v -s /<<PKGBUILDDIR>>/ -p "test.py" test_counter_offset (test.CounterOffsetTest) ... ok test_match_rfc (test.HOTPExampleValuesFromTheRFC) ... ok test_other_secret (test.HOTPExampleValuesFromTheRFC) ... ok test_provisioning_uri (test.HOTPExampleValuesFromTheRFC) ... ok test_verify_otp_reuse (test.HOTPExampleValuesFromTheRFC) ... ok test_comparisons (test.StringComparisonTest) ... ok test_fullwidth_input (test.StringComparisonTest) ... ok test_match_google_authenticator_output (test.TOTPExampleValuesFromTheRFC) ... ok test_match_rfc (test.TOTPExampleValuesFromTheRFC) ... FAIL test_match_rfc_digit_length (test.TOTPExampleValuesFromTheRFC) ... FAIL test_provisioning_uri (test.TOTPExampleValuesFromTheRFC) ... ok test_random_key_generation (test.TOTPExampleValuesFromTheRFC) ... ok test_validate_totp (test.TOTPExampleValuesFromTheRFC) ... ok test_validate_totp_with_digit_length (test.TOTPExampleValuesFromTheRFC) ... ok test_valid_window (test.ValidWindowTest) ... ok ====================================================================== FAIL: test_match_rfc (test.TOTPExampleValuesFromTheRFC) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/test.py", line 102, in test_match_rfc self.assertEqual(value, str(code), msg) AssertionError: 25693528 != 38618901 (sha512, time=2000000000) ====================================================================== FAIL: test_match_rfc_digit_length (test.TOTPExampleValuesFromTheRFC) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/test.py", line 108, in test_match_rfc_digit_length self.assertEqual(totp.at(2000000000), '279037') AssertionError: '573438' != u'279037' ---------------------------------------------------------------------- Ran 15 tests in 0.004s FAILED (failures=2) E: pybuild pybuild:276: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build; python2.7 -m unittest discover -v -s {dir}/ -p "test.py" dh_auto_test: pybuild --test -i python{version} -p 2.7 returned exit code 13 debian/rules:7: recipe for target 'build-indep' failed make: *** [build-indep] Error 25 dpkg-buildpackage: error: debian/rules build-indep gave error exit status 2 -------------------------------------------------------------------------------- Because the package is "Architecture: all", the failure does not seem related to using "dpkg-buildpackage -A". Once you fix this, please consider uploading the package in source-only form, so that we have pretty official build logs available here: https://buildd.debian.org/status/package.php?p=python-pyotp Thanks.