Bug#788132: python3-pep8 ships a different version of pep8.py in comparison with pep8 package

2015-06-09 Thread Felipe Reyes
After analyzing a bit more what was going on with this issue, I could
find the root cause, the file pep8_1.5.7-2.diff.gz is adding
build/lib/pep8.py from an old version and for some reason python3 is
using it over the pep8.py module that is in the top source directory.
It should be a left over of some previous build and it has been being
carried.

Here I'm attaching a debdiff that fixes the bug. Here it's the output
of my console after I installed this new version:

root@debian-sid:~# dpkg -l python3-pep8 pep8
Desired=Unknown/Install/Remove/Purge/Hold
|
Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/
Name Version ArchitectureDescription
+++--===-===-==
ii  pep8 1.5.7-3 all Python PEP 8
code style checker - python2 ii  python3-pep8 1.5.7-3
all Python PEP 8 code style checker - python3
root@debian-sid:~# python -c import pep8;
print(pep8.__file__) /usr/lib/python2.7/dist-packages/pep8.pyc
root@debian-sid:~# python -c import pep8; print(pep8.__version__)
1.5.7 root@debian-sid:~# python3 -c import pep8;
print(pep8.__file__) /usr/lib/python3/dist-packages/pep8.py
root@debian-sid:~# python3 -c import pep8; print(pep8.__version__)
1.5.7 root@debian-sid:~# diff
-u /usr/lib/python2.7/dist-packages/pep8.py 
/usr/lib/python3/dist-packages/pep8.py
| diffstat 0 files changed


Best,
-- 
Felipe Reyes
Software Sustaining Engineer @ Canonical
STS Engineering Team
# Email: felipe.re...@canonical.com (GPG:0x9B1FFF39)
# Phone: +56 9 7640 7887
# Launchpad: ~freyes | IRC: freyes


debbug_788132.debdiff
Description: Binary data


pgpaGGN6j0Jhu.pgp
Description: OpenPGP digital signature


Bug#788132: python3-pep8 ships a different version of pep8.py in comparison with pep8 package

2015-06-08 Thread Felipe Reyes
Package: python3-pep8
Version: 1.5.7-2
Severity: normal

Dear Maintainer,

I was investigating a pep8 related problem in Ubuntu[0], after
some triaging I found that python3-pep8 package comes with a very
different version of pep8.py than the one provided in pep8
package.

I rebuilt the package and this problem is reproducible, but
checking debian/rules I couldn't find what could be producing
this strange behaviour.

Here is the output of my terminal:

root@debian-sid:~# dpkg -l python3-pep8 pep8
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ NameVersion 
 Architecture Description
+++-===---===
ii  pep81.5.7-2 
 all  Python PEP 8 code style checker - python2
ii  python3-pep81.5.7-2 
 all  Python PEP 8 code style checker - python3
root@debian-sid:~# python -c import pep8; print(pep8.__version__)
1.5.7
root@debian-sid:~# python -c import pep8; print(pep8.__file__)
/usr/lib/python2.7/dist-packages/pep8.pyc
root@debian-sid:~# python3 -c import pep8; print(pep8.__version__)
1.4.6
root@debian-sid:~# python3 -c import pep8; print(pep8.__file__)
/usr/lib/python3/dist-packages/pep8.py
root@debian-sid:~# diff -u /usr/lib/python2.7/dist-packages/pep8.py 
/usr/lib/python3/dist-packages/pep8.py | diffstat
 pep8.py |  698 
 1 file changed, 316 insertions(+), 382 deletions(-)

Best,

[0] https://bugs.launchpad.net/ubuntu/+source/python-hacking/+bug/1429521

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

Kernel: Linux 4.0.0-999-generic (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages python3-pep8 depends on:
ii  python3-setuptools  17.0-1
pn  python3:any none

python3-pep8 recommends no packages.

python3-pep8 suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org