Merge lp:~mars/launchpad/add-py25-lint into lp:launchpad
| Status: | Rejected |
|---|---|
| Rejected by: | Māris Fogels on 2010-09-30 |
| Proposed branch: | lp:~mars/launchpad/add-py25-lint |
| Merge into: | lp:launchpad |
| Diff against target: |
36 lines (+29/-0) 1 file modified
buildout-templates/bin/lint.sh.in (+29/-0) |
| To merge this branch: | bzr merge lp:~mars/launchpad/add-py25-lint |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Brad Crittenden (community) | code | 2010-09-23 | Approve on 2010-09-24 |
|
Review via email:
|
|||
Description of the Change
This branch adds a test for Python 2.5 incompatible code to the bin/lint.sh script.
I manually tested all of the execution paths in this patch. Python2.5 is not a
Launchpad development dependency, so a branch was included to make this check
conditional. pyflakes is used for the check, and pyflakes is in
launchpad-
--
Māris Fogels -- https:/
Launchpad.net -- cross-project collaboration and hosting
| Robert Collins (lifeless) wrote : | # |
| Brad Crittenden (bac) wrote : | # |
Maris,
I think the check you've added is good and will be useful if developers actually use 'make lint', but we know that not everyone does all of the time.
Robert's suggestions are good and you agreed on IRC that the needed steps are:
I would a) make it a stand-alone script; call that script from lint; call that script from 'make check'; add Py2.5 to the lucid builders.
What you have ready to land now does add value, so I'd *not* defer landing it until the additional changes are made. So, please add an XXX comment to make the agreed changes but go ahead and land what you have.
Thanks for coming up with a solution to an issue that has bitten us recently.
| Māris Fogels (mars) wrote : | # |
I am taking this proposal off the table as we are "Almost there" for a complete Python2.6 conversion, and because the best type of code is code that does not exist.
Unmerged revisions
- 11620. By Māris Fogels on 2010-09-23
-
Added a check for Python 2.5 incompatible code to bin/lint.sh

Seems useful if we have two things:
- python 2.5 on the lucid builders
- it hooked into make check.
In the absence of both these things, I wouldn't bother.