Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Plainbox Provider plugin #609

Merged
merged 1 commit into from
Jul 12, 2016

Conversation

jocave
Copy link
Contributor

@jocave jocave commented Jun 27, 2016

lp: #1552369

Integration tests provided that check the plugin can be
used in several common Checkbox use cases.

@snappy-m-o
Copy link

Can one of the admins verify this patch?

1 similar comment
@snappy-m-o
Copy link

Can one of the admins verify this patch?

@sergiusens
Copy link
Collaborator

ok to test

super().__init__(name, options, project)
self.build_packages.extend(['python3-plainbox', 'intltool'])
if self.options.checkbox_dev_ppa:
self._PLUGIN_STAGE_SOURCES = self._DEV_PPA_PLUGIN_STAGE_SOURCES
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a private attribute, @ElOpio and @kyrofa, the catkin plugin does the same. We should solve this, not here though

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jocave is there any chance of just grabbing plainbox/checkbox from pypi?

I am working on a plugin that uses the core python. Maybe in the future you can inherit from that and produce nimbler snaps

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sergiusens IIRC the version of plainbox in pypi doesn't have the support for snappy layouts that we need.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually think it makes sense to try and remove the expectation that a provider part pulls plainbox/checkbox in to its stage-packages as the goal is to pull multiple re-usable providers in to a snap.

As checkbox snap with one separate part that pulls plainbox/checkbox-ng from pypi would therefore make sense and it could use the python3 plugin.

The thing I'm less clear whether the allows us to be sure we are getting a compatible version of the build dependency - python3-plainbox

@jocave
Copy link
Contributor Author

jocave commented Jun 28, 2016

I'm going to rework things slightly and post a new version, hopefully we can work out a way to not have to use the dev ppa

@snappy-m-o
Copy link

Can one of the admins verify this patch?

1 similar comment
@snappy-m-o
Copy link

Can one of the admins verify this patch?

@jocave
Copy link
Contributor Author

jocave commented Jul 6, 2016

@sergiusens with the landing of python3 plugin to use --root we can now pull all the plainbox/checkbox dependencies from pypi.

As a result I've removed the need for the modified source repositories and the plugin should be a bit cleaner :)

HTH

@snappy-m-o
Copy link

Can one of the admins verify this patch?

1 similar comment
@snappy-m-o
Copy link

Can one of the admins verify this patch?

@sergiusens
Copy link
Collaborator

retest this please

1 similar comment
@sergiusens
Copy link
Collaborator

retest this please

@snappy-m-o
Copy link

Can one of the admins verify this patch?

1 similar comment
@snappy-m-o
Copy link

Can one of the admins verify this patch?

@sergiusens
Copy link
Collaborator

ok to test

@sergiusens
Copy link
Collaborator

retest this please

@jocave
Copy link
Contributor Author

jocave commented Jul 7, 2016

retest this please

2 similar comments
@come-maiz
Copy link
Contributor

retest this please

@sergiusens
Copy link
Collaborator

retest this please

expected)
# check can run the tests in the example provider
self.run_command_in_snappy_testbed(
'/snaps/bin/plainbox-test-tool.plainbox run -i 2016.com.example::.*')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The path is in /snap/bin, not snaps.

@snappy-m-o
Copy link

Can one of the admins verify this patch?

@jocave
Copy link
Contributor Author

jocave commented Jul 11, 2016

The demo is currently failing to run as expected. This seems to have been as a result of the switch to getting plainbox from pypi. Still investigating..

@come-maiz
Copy link
Contributor

retest this please

@jocave
Copy link
Contributor Author

jocave commented Jul 11, 2016

The last problem was just a missing python-package dependency in the demo snap.

@sergiusens sergiusens merged commit 2b8ace7 into canonical:master Jul 12, 2016
kalikiana pushed a commit to kalikiana/snapcraft that referenced this pull request Apr 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants