Merge lp:~sergiusens/snapcraft/lifecycle into lp:~snappy-dev/snapcraft/core
| Status: | Merged |
|---|---|
| Approved by: | Sergio Schvezov on 2015-10-20 |
| Approved revision: | 213 |
| Merged at revision: | 248 |
| Proposed branch: | lp:~sergiusens/snapcraft/lifecycle |
| Merge into: | lp:~snappy-dev/snapcraft/core |
| Diff against target: |
191 lines (+28/-28) 4 files modified
snapcraft/cmds.py (+3/-3) snapcraft/tests/test_lifecycle.py (+21/-22) snapcraft/tests/test_yaml.py (+1/-1) snapcraft/yaml.py (+3/-2) |
| To merge this branch: | bzr merge lp:~sergiusens/snapcraft/lifecycle |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Leo Arias | 2015-10-19 | Approve on 2015-10-19 | |
|
Review via email:
|
|||
Commit Message
Rename snapcraft.plugin to snapcraft.lifecycle
| Sergio Schvezov (sergiusens) wrote : | # |
On Mon, Oct 19, 2015 at 7:50 PM, Leo Arias <email address hidden> wrote:
> Review: Approve
>
> I like the new name.
> I left a question on the diff, but not a blocker. +1.
>
> Diff comments:
>
> > -from snapcraft import (
> > - plugin,
> > - tests
> > -)
> > +import snapcraft.lifecycle
> > +import snapcraft.tests
>
> any reason for this change?
> when I started using more than one level in the namespace some python
> people started saying I was doing it like java.
>
>
Because you told me you preferred it ;-)
| Leo Arias (elopio) wrote : | # |
um, I don't think so, but maybe you are right and I said something like that. Anyway, what I usually say is that I prefer to import modules than symbols. Like
from snapcraft import lifecycle
instead of
from snapcraft.lifecycle import load_plugin.


I like the new name.
I left a question on the diff, but not a blocker. +1.