Merge lp://qastaging/~mterry/snapcraft/source-options into lp://qastaging/~snappy-dev/snapcraft/core
Status: | Merged |
---|---|
Merged at revision: | 102 |
Proposed branch: | lp://qastaging/~mterry/snapcraft/source-options |
Merge into: | lp://qastaging/~snappy-dev/snapcraft/core |
Diff against target: |
168 lines (+23/-28) 7 files modified
plugins/python3-project.yaml (+0/-2) snapcraft/__init__.py (+15/-12) snapcraft/plugin.py (+5/-8) snapcraft/plugins/ant_project.py (+1/-1) snapcraft/plugins/autotools_project.py (+0/-3) snapcraft/plugins/make_project.py (+1/-1) snapcraft/plugins/python3_project.py (+1/-1) |
To merge this branch: | bzr merge lp://qastaging/~mterry/snapcraft/source-options |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ted Gould (community) | Approve | ||
Michael Vogt (community) | Needs Information | ||
Review via email: mp+264647@code.qastaging.launchpad.net |
Commit message
This branch makes plugin code even simpler, by setting the groundwork for automatic handling of source options in the future.
We introduce a standard handle_
In addition to the expected changes, I threw in some tiny cleanups I found along the way:
- in autotools_
- in python3-
- in plugin.py, dropped support for options_override. We don't use it anymore, I suspect it was originally a sort of option mock. But we seemed to evolve past the need for it.
Description of the change
This branch makes plugin code even simpler, by setting the groundwork for automatic handling of source options in the future.
We introduce a standard handle_
In addition to the expected changes, I threw in some tiny cleanups I found along the way:
- in autotools_
- in python3-
- in plugin.py, dropped support for options_override. We don't use it anymore, I suspect it was originally a sort of option mock. But we seemed to evolve past the need for it.
I like the simplication of the plugins!
The mix of: source- options: true
"""
accepts-
options:
configflags:
required: false
""""
feels a bit odd to me though. It looks to me like the two express something similar
and that the yaml for that should also be similar.
But that might be just me and unfortunately I don't have a better idea right now. I wonder if it might be a option to keep using "options:\n source\n required: true" as is and still handle that in the common code (I guess there is a reason not to that I just don't see right now).