Merge pdbq:add-pkg-mp into pdbq:main
Status: | Merged |
---|---|
Approved by: | Bryce Harrington |
Approved revision: | dcac3d40f9d98e0e7fdaa6f2eaf6dbb6be82d37c |
Merge reported by: | Bryce Harrington |
Merged at revision: | dcac3d40f9d98e0e7fdaa6f2eaf6dbb6be82d37c |
Proposed branch: | pdbq:add-pkg-mp |
Merge into: | pdbq:main |
Diff against target: |
815 lines (+767/-4) 5 files modified
.flake8 (+3/-1) .pylintrc (+10/-3) pdbq/merge_proposal.py (+302/-0) scripts/pkg-mp (+199/-0) tests/test_merge_proposal.py (+253/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Andreas Hasenack (community) | Approve | ||
Canonical Server Reporter | Pending | ||
Review via email: mp+443933@code.staging.launchpad.net |
Description of the change
This creates a new cli tool named 'pkg-mp' and associated MergeProposal class.
Initially, this tool just focuses on listing all of the active reviews for a given team. I plan to add filtering on top of this so you can see just MPs needing a reviewer, etc. That logic will eventually be used to build the Reviews web page (a live mockup of this can be seen at http://
You'll note that this screenscrapes the +activereviews page rather than load the MPs from the Launchpad API. The reason for this is that the API is limited in what info it provides, particularly for *package* MPs (as opposed to *code* MPs). This tool intends to handle both package and code style MPs, and to fill in some of the missing support for package MPs.
So, for example, with package MPs it assumes the presence of debian/changelog, and uses that as a data source to extract information such as the source package name and version.
This also uses external tools to lookup additional information; specifically it uses rmadison to get official version info. I'd like to minimize dependence on external tools where I can, but this is fine for now.
I've stubbed in some test cases, but haven't actually implemented them yet. I will be working on that implementation work next; if I complete it before this gets reviewed I'll update this MP to include it, otherwise just pretend tests haven't been written yet for this. :-)
There was an error fetching revisions from git servers. Please try again in a few minutes. If the problem persists, contact Launchpad support.
I think this needs rebasing, the diff looks odd here in LP.