Last modified: 2012-12-19 13:54:14 UTC
Precise comes with version 0.6.1 of pep8 which does not support configuration using a .pep8 file. That is really troublesome when we want the developers to manage their pep8 rules. Pep8 changelog http://pypi.python.org/pypi/pep8 Ubuntu has a v1.3.3 under raring http://packages.ubuntu.com/search?keywords=pep8 The dependencies do not seems to be to be too much of a trouble for a backport to Precise. Backport doc https://wikitech.wikimedia.org/view/Backport_packages
Using the integration-composer instance, I have backported v1.3.3 of pep8 from Raring to Precise. The result is available on fenari in /home/hashar/pep8-backport Now we need it uploaded to apt.wikimedia.org
Faidon uploaded the package. I have manually updated pep8 on gallium: root@gallium:~# apt-get install pep8 Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libgphoto2-l10n libao-common qdbus glib-networking-common linux-headers-3.2.0-32 libqt4-dbus libproxy1 libopenal-data bluez linux-headers-3.2.0-32-generic libqtcore4 oss-compat libsane-common esound-common libqt4-xml gsettings-desktop-schemas glib-networking-services glib-networking Use 'apt-get autoremove' to remove them. The following packages will be upgraded: pep8 1 upgraded, 0 newly installed, 0 to remove and 10 not upgraded. Need to get 32.1 kB of archives. After this operation, 26.6 kB of additional disk space will be used. Get:1 http://apt.wikimedia.org/wikimedia/ precise-wikimedia/universe pep8 all 1.3.3-0ubuntu1~precise1 [32.1 kB] Fetched 32.1 kB in 0s (385 kB/s) (Reading database ... 156183 files and directories currently installed.) Preparing to replace pep8 0.6.1-2ubuntu2 (using .../pep8_1.3.3-0ubuntu1~precise1_all.deb) ... Unpacking replacement pep8 ... Processing triggers for man-db ... Setting up pep8 (1.3.3-0ubuntu1~precise1) ... End result: hashar@gallium:~$ pep8 --version 1.3.3
pep8 validated to work in Jenkins job that is running for operations/puppet.