Package: autodep8
Version: 0.18
Severity: normal

Dear Maintainer,

For django packages, autodep8 fails to determine the proper python module
name:

$ autodep8
Test-Command: set -e ; for py in $(pyversions -r 2>/dev/null) ; do cd 
"$AUTOPKGTEST_TMP" ; echo "Testing with $py:" ; $py -c "import 
django_constance; print django_constance" ; done
Depends: python-all, python-django-constance
Restrictions: allow-stderr, superficial
Features: test-name=autodep8-python2

Test-Command: set -e ; for py in $(py3versions -r 2>/dev/null) ; do cd 
"$AUTOPKGTEST_TMP" ; echo "Testing with $py:" ; $py -c "import 
django_constance; print(django_constance)" ; done
Depends: python3-all, python3-django-constance
Restrictions: allow-stderr, superficial
Features: test-name=autodep8-python3

The proper tests:

$ python -c 'import constance'
$ python3 -c 'import constance'

Maybe autodep8 should allow the package maintainer to customize the python
module name. Something has been proposed to fix this:
https://salsa.debian.org/ci-team/autodep8/merge_requests/6

Or maybe support/python/generate should handle the special django module case.

Thanks,

Alex

-- System Information:
Debian Release: 10.0
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8), 
LANGUAGE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages autodep8 depends on:
ii  dctrl-tools  2.24-3
ii  python3      3.7.3-1

autodep8 recommends no packages.

autodep8 suggests no packages.

-- no debconf information

Reply via email to