> autopkgtest [03:13:34]: test command1: python3 setup.py test > autopkgtest [03:13:34]: test command1: [----------------------- > running test > WARNING: Testing via this command is deprecated and will be removed in a > future version. Users looking for a generic test entry point independent > of test runner are encouraged to use tox. > WARNING: The pip package is not available, falling back to EasyInstall > for handling setup_requires/test_requires; this is deprecated and will > be removed in a future version. > Searching for tornado > Reading https://pypi.org/simple/tornado/ > Download error on https://pypi.org/simple/tornado/: [SSL: > CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get > local issuer certificate (_ssl.c:1123) -- Some packages may not be found! > Couldn't find index page for 'tornado' (maybe misspelled?) > Scanning index of all packages (this may take a while) > Reading https://pypi.org/simple/ > Download error on https://pypi.org/simple/: [SSL: > CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get > local issuer certificate (_ssl.c:1123) -- Some packages may not be found! > No local packages or working download links found for tornado > error: Could not find suitable distribution for Requirement.parse('tornado') > autopkgtest [03:13:35]: test command1: -----------------------]
Also:
- this log suggests that the test is trying/willing to install packages
from outside of Debian, and this is not allowed.
- `setup.py test` tells you that it's deprecated so it will probably
break at some point.
- Running test tests directly from the sources root like this will make
python pick up the package code from the source tree, and not from the
installed package.
I suggest you change the tests control file like this:
----------------8<----------------8<----------------8<-----------------
diff --git a/debian/tests/control b/debian/tests/control
index cc60693..ed182c7 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,5 +1,6 @@
-Test-Command: python3 setup.py test
+Test-Command: cd tests && python3 -m pytest
Depends: @,
python3-setuptools,
python3-django,
+ python3-pytest,
Restrictions: allow-stderr
----------------8<----------------8<----------------8<-----------------
If you don't want pytest for some reason, you can replace `-m pytest`
with `-m unittest` and not depend on python3-pytest. But the pytest
output in case of failure is a lot better for debugging.
signature.asc
Description: PGP signature

