FFe: pylint 2

Bug #1792160 reported by Benjamin Drung
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pylint (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

pylint < 2.0 does not work with Python 3.7 at all (see bug #1785080). To support Python 3.7, pylint and the astroid library needs to be updated to >= 2.0. The major upstream release drops Python 2 support. Therefore we agreed on following keep compat with python2 while supporting 3.7 in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=902631

astroid: uses the 2.x branch, builds only python3-astroid
pylint: uses the 2.x branch, builds only pylint3, pylint-doc
NEW astroid2: remains on the 1.x branch, builds only python-astroid
NEW pylint2: remains on the 1.x branch, builds only pylint (depending on python-astroid)

This bug report is requesting a feature freeze exception for implementing it. This will upgrade pylint3 and python3-astroid to version >= 2.0 to support Python 3.7 while keeping the Python 2 version unchanged (but introducing new source packages).

There are some packages that use pylint in their tests suites while building (e.g. devscripts).

tags: added: upgrade-software-version
description: updated
Revision history for this message
Łukasz Zemczak (sil2100) wrote :

Seems like quite a change. I see that it's still not done in Debian. I know the approach has been generally approved but I would feel better knowing that we won't divert unnecessarily from Debian here if some name change or similar suddenly still pops up.
Also, to properly assess this FFe we'd also need the rest of documentation [1], more particularly some build logs on cosmic making sure both the new packages and updated old ones build correctly + upgrade logs to make sure the upgrade works with no issues.

[1] https://wiki.ubuntu.com/FreezeExceptionProcess

Changed in pylint (Ubuntu):
status: New → Incomplete
Revision history for this message
Benjamin Drung (bdrung) wrote :

As documented in Debian bug #902631, astroid was split into src:astroid2/1.6.5-2 (for Python 2) and src:astroid/2.0.4-1 (for Python 3). So we could sync these versions from Debian without changes.

Revision history for this message
Benjamin Drung (bdrung) wrote :

This is now done in Debian (except the pylint2 source):

astroid2=1.6.5-2
astroid=2.0.4-2
pylint=2.1.1-1

Revision history for this message
Benjamin Drung (bdrung) wrote :

astroid2=1.6.5-2 is already in cosmic.

I uploaded astroid=2.0.4-2 and pylint=2.1.1-1 to my PPA (see the build logs there):
https://launchpad.net/~bdrung/+archive/ubuntu/ppa

Revision history for this message
Jeremy Bícha (jbicha) wrote :

astroid and astroid2 have already been updated in cosmic.

summary: - FFe: pylint and astroid 2.0.x
+ FFe: pylint 2
Revision history for this message
Benjamin Drung (bdrung) wrote :

I tested pylint3 2.1.1-1 on a bunch of Python project and it works fine there.

Revision history for this message
Mattia Rizzolo (mapreri) wrote :

at any rate, pylint 2 is now in release, so I guess this can be closed…

;-)

Changed in pylint (Ubuntu):
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.