#!/usr/bin/env python3 from plainbox.provider_manager import setup, N_ setup( name='plainbox-provider-parent', namespace='2017.com.example.parent', version="1.0", description=N_("A parent Plainbox provider"), gettext_domain="2017_com_example_parent", )
#!/usr/bin/env python3 from plainbox.provider_manager import setup, N_ setup( name='com.aricent.ggn:iotr2-automation', version="1.0", namespace='com.aricent.testing', description=N_("The com.aricent.ggn:iotr2-automation provider"), gettext_domain="com_aricent_ggn_iotr2-automation", )
#!/usr/bin/env python3 from plainbox.provider_manager import setup, N_ # You can inject other stuff here but please don't go overboard. # # In particular, if you need comprehensive compilation support to get # your bin/ populated then please try to discuss that with us in the # upstream project IRC channel #checkbox on irc.freenode.net. # NOTE: one thing that you could do here, that makes a lot of sense, # is to compute version somehow. This may vary depending on the # context of your provider. Future version of PlainBox will offer git, # bzr and mercurial integration using the versiontools library # (optional) setup( name='sru', namespace='2013.com.canonical.certification', version="1.6", description=N_("The 2013.com.canonical.certification:sru provider"), gettext_domain="2013_com_canonical_certification_sru", )
#!/usr/bin/env python3 from plainbox.provider_manager import setup, N_ setup( name='2014.pl.zygoon.examples.go:basic', version="1.0", description=N_("An example PlainBox provider using the Go programming language"), )
'test_kernel_security.py'), ns.root + os.path.join(dest_map['data'], 'test_kernel_security.py')) def _install_bt_helper(self, ns): dest_map = self._get_dest_map(ns.layout, ns.prefix) provider = self.get_provider() shutil.copy(os.path.join(provider.bin_dir, 'bt_helper.py'), ns.root + dest_map['bin']) def _copytree(src, dst): """Simple copytree that always overwrites.""" for name in os.listdir(src): srcname = os.path.join(src, name) dstname = os.path.join(dst, name) if os.path.isdir(srcname): if not os.path.exists(dstname): os.mkdir(dstname) _copytree(srcname, dstname) else: shutil.copy2(srcname, dstname) setup( name='plainbox-provider-snappy', namespace='2013.com.canonical.certification', version="0.1", description=N_("Plainbox Provider for Snappy devices"), gettext_domain='plainbox-provider-snappy', )
# it under the terms of the GNU General Public License version 3, # as published by the Free Software Foundation. # # Checkbox is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Checkbox. If not, see <http://www.gnu.org/licenses/>. from plainbox.provider_manager import setup, N_ from plainbox.impl.providers.special import get_stubbox_def # NOTE: this is not a good example of manage.py as it is internally bound to # plainbox. Don't just copy paste this as good design, it's *not*. # Use `plainbox startprovider` if you want to get a provider template to edit. stubbox_def = get_stubbox_def() # This is stubbox_def.description, we need it here to extract is as a part of # stubbox N_("StubBox (dummy data for development)") setup( name=stubbox_def.name, version=stubbox_def.version, description=stubbox_def.description, gettext_domain=stubbox_def.gettext_domain, )
#!/usr/bin/env python3 # Copyright 2015-2016 Canonical Ltd. # All rights reserved. # # Written by: # Jonathan Cave <*****@*****.**> # Sylvain Pineau <*****@*****.**> from plainbox.provider_manager import setup, N_ setup( name='plainbox-provider-stress-tests', namespace='2013.com.canonical.certification', version="1.0", description=N_("Stress tests"), gettext_domain="plainbox-provider-stress-tests", )
#!/usr/bin/env python3 from plainbox.provider_manager import setup, N_ # You can inject other stuff here but please don't go overboard. # # In particular, if you need comprehensive compilation support to get # your bin/ populated then please try to discuss that with us in the # upstream project IRC channel #checkbox on irc.freenode.net. # NOTE: one thing that you could do here, that makes a lot of sense, # is to compute version somehow. This may vary depending on the # context of your provider. Future version of PlainBox will offer git, # bzr and mercurial integration using the versiontools library # (optional) setup( name='2015.com.ubuntu.weather:weather-tests', version="1.0", description=N_("The 2015.com.ubuntu.weather:weather-tests provider"), gettext_domain="2015_com_ubuntu_weather_weather-tests", )
#!/usr/bin/env python3 from plainbox.provider_manager import setup, N_ # You can inject other stuff here but please don't go overboard. # # In particular, if you need comprehensive compilation support to get # your bin/ populated then please try to discuss that with us in the # upstream project IRC channel #checkbox on irc.freenode.net. # NOTE: one thing that you could do here, that makes a lot of sense, # is to compute version somehow. This may vary depending on the # context of your provider. Future version of PlainBox will offer git, # bzr and mercurial integration using the versiontools library # (optional) setup( name='2017.com.system76:provider', version="1.0", description=N_("The 2017.com.system76:provider provider"), gettext_domain="2017_com_system76_provider", )
#!/usr/bin/env python3 # This file is part of Checkbox. # # Copyright 2015 Canonical Ltd. # Written by: # Zygmunt Krynicki <*****@*****.**> # # Checkbox is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License version 3, # as published by the Free Software Foundation. # # Checkbox is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Checkbox. If not, see <http://www.gnu.org/licenses/>. from plainbox.provider_manager import setup from plainbox.provider_manager import N_ setup( name='2013.com.canonical.certification:piglit', version="0.2", description=N_("Piglit (OpenGL/OpenCL) Test Provider"), gettext_domain='plainbox-provider-piglit', )
#!/usr/bin/env python3 from plainbox.provider_manager import setup from plainbox.provider_manager import N_ # You can inject other stuff here but please don't go overboard. # # In particular, if you need comprehensive compilation support to get # your bin/ populated then please try to discuss that with us in the # upstream project IRC channel #checkbox on irc.freenode.net. # NOTE: one thing that you could do here, that makes a lot of sense, # is to compute version somehow. This may vary depending on the # context of your provider. Future version of PlainBox will offer git, # bzr and mercurial integration using the versiontools library # (optional) setup( name='2014.com.canonical.certification.meta:meta-test', version="1.0", description=N_("Meta provider that checks the Checkbox project itself" " with itself!"), gettext_domain='2014.com.canonical.certification.meta-test', )
#!/usr/bin/env python3 from plainbox.provider_manager import setup, N_ # You can inject other stuff here but please don't go overboard. # # In particular, if you need comprehensive compilation support to get # your bin/ populated then please try to discuss that with us in the # upstream project IRC channel #checkbox on irc.freenode.net. # NOTE: one thing that you could do here, that makes a lot of sense, # is to compute version somehow. This may vary depending on the # context of your provider. Future version of PlainBox will offer git, # bzr and mercurial integration using the versiontools library # (optional) setup(name='2015.com.canonical.snapcraft:tests', version='1.0', description=N_('Plainbox test provider for Snapcraft'))
#!/usr/bin/env python3 from plainbox.provider_manager import setup, N_ # You can inject other stuff here but please don't go overboard. # # In particular, if you need comprehensive compilation support to get # your bin/ populated then please try to discuss that with us in the # upstream project IRC channel #checkbox on irc.freenode.net. # NOTE: one thing that you could do here, that makes a lot of sense, # is to compute version somehow. This may vary depending on the # context of your provider. Future version of PlainBox will offer git, # bzr and mercurial integration using the versiontools library # (optional) setup( name='plainbox-provider-snappy-resource', namespace='2013.com.canonical.certification', version="1.0", description=N_( "A Plainbox provider for collecting resource information on snappy devices." ), gettext_domain="plainbox-provider-snappy-resource", )
#!/usr/bin/env python3 from plainbox.provider_manager import setup, N_ setup( name="plainbox-provider-child", namespace="2017.com.example.child", version="1.0", description=N_("A child Plainbox provider"), gettext_domain="2017_com_example_child", )
# Zygmunt Krynicki <*****@*****.**> # # Checkbox is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License version 3, # as published by the Free Software Foundation. # # Checkbox is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Checkbox. If not, see <http://www.gnu.org/licenses/>. from plainbox.provider_manager import setup, N_ from plainbox.impl.providers.special import get_stubbox_def # NOTE: this is not a good example of manage.py as it is internally bound to # plainbox. Don't just copy paste this as good design, it's *not*. # Use `plainbox startprovider` if you want to get a provider template to edit. stubbox_def = get_stubbox_def() # This is stubbox_def.description, we need it here to extract is as a part of # stubbox N_("StubBox (dummy data for development)") setup(name=stubbox_def.name, version=stubbox_def.version, description=stubbox_def.description, gettext_domain=stubbox_def.gettext_domain)
#!/usr/bin/env python3 from plainbox.provider_manager import setup, N_ # You can inject other stuff here but please don't go overboard. # # In particular, if you need comprehensive compilation support to get # your bin/ populated then please try to discuss that with us in the # upstream project IRC channel #checkbox on irc.freenode.net. # NOTE: one thing that you could do here, that makes a lot of sense, # is to compute version somehow. This may vary depending on the # context of your provider. Future version of PlainBox will offer git, # bzr and mercurial integration using the versiontools library # (optional) setup( name='2019.core.checkbox:rework', version="1.0", description=N_("The 2019.core.checkbox:rework provider"), gettext_domain="2019_core_checkbox_rework", )
#!/usr/bin/env python3 from plainbox.provider_manager import setup, N_ # You can inject other stuff here but please don't go overboard. # # In particular, if you need comprehensive compilation support to get # your bin/ populated then please try to discuss that with us in the # upstream project IRC channel #checkbox on irc.freenode.net. # NOTE: one thing that you could do here, that makes a lot of sense, # is to compute version somehow. This may vary depending on the # context of your provider. Future version of PlainBox will offer git, # bzr and mercurial integration using the versiontools library # (optional) setup( name='com.canonical.qa.myproject:plainbox-provider-myproject', version="1.0", description=N_("The com.canonical.qa.myproject:plainbox-provider-myproject provider"), gettext_domain="com_canonical_qa_myproject_plainbox-provider-myproject", )
#!/usr/bin/env python3 from plainbox.provider_manager import setup, N_ # You can inject other stuff here but please don't go overboard. # # In particular, if you need comprehensive compilation support to get # your bin/ populated then please try to discuss that with us in the # upstream project IRC channel #checkbox on irc.freenode.net. # NOTE: one thing that you could do here, that makes a lot of sense, # is to compute version somehow. This may vary depending on the # context of your provider. Future version of PlainBox will offer git, # bzr and mercurial integration using the versiontools library # (optional) setup( name='2014.com.ubuntu.clock:clock-tests', version="1.0", description=N_("The 2014.com.ubuntu.clock:clock-tests provider"), gettext_domain="2014_com_ubuntu_clock_clock-tests", )
#!/usr/bin/env python3 from plainbox.provider_manager import setup setup( name='2014.com.canonical:platform-trusty', version='1.0', description='The 2014.com.canonical:platform-trusty provider')
'install-sh', 'missing', ] @property def src_dir(self): return os.path.join(self.definition.location, "src") def invoked(self, ns): # Update the configure script subprocess.check_call(['autoreconf', '-i'], cwd=self.src_dir) # Remove autom4te.cache, we don't need it in our source tarballs # http://www.gnu.org/software/autoconf/manual/autoconf-2.64/html_node/Autom4te-Cache.html shutil.rmtree(os.path.join(self.src_dir, 'autom4te.cache')) # Generate the source tarball super().invoked(ns) # Remove generated autotools stuff for item in self._GENERATED_ITEMS: os.remove(os.path.join(self.src_dir, item)) setup( name='plainbox-provider-resource-generic', namespace='com.canonical.certification', version="0.46.0.dev0", description=N_("PlainBox resources provider"), gettext_domain='plainbox-provider-resource-generic', deprecated=False, strict=False, )
#!/usr/bin/env python3 from plainbox.provider_manager import setup, N_ # You can inject other stuff here but please don't go overboard. # # In particular, if you need comprehensive compilation support to get # your bin/ populated then please try to discuss that with us in the # upstream project IRC channel #checkbox on irc.freenode.net. # NOTE: one thing that you could do here, that makes a lot of sense, # is to compute version somehow. This may vary depending on the # context of your provider. Future version of PlainBox will offer git, # bzr and mercurial integration using the versiontools library # (optional) setup( name='2019.com.canonical.certification:metabench', version="1.0", description=N_("The 2019.com.canonical.certification:metabench provider"), gettext_domain="2019_com_canonical_certification_metabench", )
#!/usr/bin/env python3 from plainbox.provider_manager import setup, N_ setup( name='plainbox-provider-child', namespace='2017.com.example.child', version="1.0", description=N_("A child Plainbox provider"), gettext_domain="2017_com_example_child", )
#!/usr/bin/env python3 from plainbox.provider_manager import setup, N_ setup( name='plainbox-provider-simple', namespace='2016.com.example', version="1.0", description=N_("A really simple Plainbox provider"), gettext_domain="2016_com_example_simple", )
#!/usr/bin/env python3 from plainbox.provider_manager import setup, N_ # You can inject other stuff here but please don't go overboard. # # In particular, if you need comprehensive compilation support to get # your bin/ populated then please try to discuss that with us in the # upstream project IRC channel #checkbox on irc.freenode.net. # NOTE: one thing that you could do here, that makes a lot of sense, # is to compute version somehow. This may vary depending on the # context of your provider. Future version of PlainBox will offer git, # bzr and mercurial integration using the versiontools library # (optional) setup( name='2015.com.canonical.certification:autopilot-converged', version="1.0", description=N_( "The 2015.com.canonical.certification:autopilot-converged provider"), gettext_domain="2015_com_canonical_certification_autopilot-converged", )
#!/usr/bin/env python3 from plainbox.provider_manager import setup, N_ # You can inject other stuff here but please don't go overboard. # # In particular, if you need comprehensive compilation support to get # your bin/ populated then please try to discuss that with us in the # upstream project IRC channel #checkbox on irc.freenode.net. # NOTE: one thing that you could do here, that makes a lot of sense, # is to compute version somehow. This may vary depending on the # context of your provider. Future version of PlainBox will offer git, # bzr and mercurial integration using the versiontools library # (optional) setup( name='2016.com.ubuntu:foo', version="1.0", description=N_("The 2016.com.ubuntu:foo provider"), gettext_domain="2016_com_ubuntu_foo", )
#!/usr/bin/env python3 # This file is part of Checkbox. # # Copyright 2015 Canonical Ltd. # Written by: # Zygmunt Krynicki <*****@*****.**> # # Checkbox is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License version 3, # as published by the Free Software Foundation. # # Checkbox is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Checkbox. If not, see <http://www.gnu.org/licenses/>. """Management script for the TPM provider.""" from plainbox.provider_manager import setup, N_ setup( name='plainbox-provider-tpm', namespace='2015.com.canonical.certification.tpm', version="0.1", description=N_("Plainbox Provider for TPM (trusted platform module)"), gettext_domain='plainbox-provider-tpm', )
#!/usr/bin/env python3 from plainbox.provider_manager import setup, N_ # You can inject other stuff here but please don't go overboard. # # In particular, if you need comprehensive compilation support to get # your bin/ populated then please try to discuss that with us in the # upstream project IRC channel #checkbox on irc.freenode.net. # NOTE: one thing that you could do here, that makes a lot of sense, # is to compute version somehow. This may vary depending on the # context of your provider. Future version of PlainBox will offer git, # bzr and mercurial integration using the versiontools library # (optional) setup( name='2015.com.ubuntu.music:music-tests', version="1.0", description=N_("The 2015.com.ubuntu.music:music-tests provider"), gettext_domain="2015_com_ubuntu_music_music-tests", )
#!/usr/bin/env python3 from plainbox.provider_manager import N_, setup setup( name="plainbox-provider-parent", namespace="2017.com.example.parent", version="1.0", description=N_("A parent Plainbox provider"), gettext_domain="2017_com_example_parent", )
#!/usr/bin/env python3 from plainbox.provider_manager import setup from plainbox.provider_manager import N_ setup( name='plainbox-provider-checkbox', namespace='com.canonical.certification', version="0.49.0", description=N_("Checkbox provider"), gettext_domain='plainbox-provider-checkbox', strict=False, deprecated=False, )
@manage_py_extension class DevelopCommandExt(DevelopCommand): __doc__ = DevelopCommand.__doc__ name = 'develop' def invoked(self, ns): print(_("The Category provider is special")) print(_("You don't need to develop it explicitly")) @manage_py_extension class InstallCommandExt(InstallCommand): __doc__ = InstallCommand.__doc__ name = 'install' def invoked(self, ns): print(_("The Category provider is special")) print(_("You don't need to install it explicitly")) if __name__ == "__main__": if categories_def.effective_locale_dir: bindtextdomain(categories_def.gettext_domain, categories_def.effective_locale_dir) setup(name=categories_def.name, version=categories_def.version, description=categories_def.description, gettext_domain=categories_def.gettext_domain)
@manage_py_extension class DevelopCommandExt(DevelopCommand): __doc__ = DevelopCommand.__doc__ name = 'develop' def invoked(self, ns): print(_("The Exporters provider is special")) print(_("You don't need to develop it explicitly")) @manage_py_extension class InstallCommandExt(InstallCommand): __doc__ = InstallCommand.__doc__ name = 'install' def invoked(self, ns): print(_("The Exporters provider is special")) print(_("You don't need to install it explicitly")) if __name__ == "__main__": if exporters_def.effective_locale_dir: bindtextdomain(exporters_def.gettext_domain, exporters_def.effective_locale_dir) setup(name=exporters_def.name, version=exporters_def.version, description=exporters_def.description, gettext_domain=exporters_def.gettext_domain)
#!/usr/bin/env python3 from plainbox.provider_manager import setup, N_ # You can inject other stuff here but please don't go overboard. # # In particular, if you need comprehensive compilation support to get # your bin/ populated then please try to discuss that with us in the # upstream project IRC channel #checkbox on irc.freenode.net. # NOTE: one thing that you could do here, that makes a lot of sense, # is to compute version somehow. This may vary depending on the # context of your provider. Future version of PlainBox will offer git, # bzr and mercurial integration using the versiontools library # (optional) setup(name='2015.com.canonical.snapcraft:tests', version="1.0", description=N_("Plainbox test provider for Snapcraft"))
name = 'develop' def invoked(self, ns): print(_("The Manifest provider is special")) print(_("You don't need to develop it explicitly")) @manage_py_extension class InstallCommandExt(InstallCommand): __doc__ = InstallCommand.__doc__ name = 'install' def invoked(self, ns): print(_("The Manifest provider is special")) print(_("You don't need to install it explicitly")) if __name__ == "__main__": if manifest_def.effective_locale_dir: bindtextdomain( manifest_def.gettext_domain, manifest_def.effective_locale_dir) setup( name=manifest_def.name, version=manifest_def.version, description=manifest_def.description, gettext_domain=manifest_def.gettext_domain )
#!/usr/bin/env python3 from plainbox.provider_manager import setup, N_ setup( name='plainbox-provider-simple', namespace='com.example', version="1.0", description=N_("A really simple Plainbox provider"), gettext_domain="com_example_simple", )
#!/usr/bin/env python3 from plainbox.provider_manager import setup, N_ # You can inject other stuff here but please don't go overboard. # # In particular, if you need comprehensive compilation support to get # your bin/ populated then please try to discuss that with us in the # upstream project IRC channel #checkbox on irc.freenode.net. # NOTE: one thing that you could do here, that makes a lot of sense, # is to compute version somehow. This may vary depending on the # context of your provider. Future version of PlainBox will offer git, # bzr and mercurial integration using the versiontools library # (optional) setup( name='2015.com.canonical.snapcraft:tests', version='1.0', description=N_('Plainbox test provider for Snapcraft') )
#!/usr/bin/env python3 # This file is part of Checkbox. # # Copyright 2014 Canonical Ltd. # Written by: # Sylvain Pineau <*****@*****.**> # # Checkbox is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Checkbox is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Checkbox. If not, see <http://www.gnu.org/licenses/>. from plainbox.provider_manager import setup, N_ setup( name='2014.com.ubuntu:ubuntu-touch', version="1.1", description=N_("The Ubuntu Touch for Plainbox"), gettext_domain="plainbox-provider-ubuntu-touch", strict=False, )
#!/usr/bin/env python3 from plainbox.provider_manager import setup, N_ # You can inject other stuff here but please don't go overboard. # # In particular, if you need comprehensive compilation support to get # your bin/ populated then please try to discuss that with us in the # upstream project IRC channel #checkbox on irc.freenode.net. # NOTE: one thing that you could do here, that makes a lot of sense, # is to compute version somehow. This may vary depending on the # context of your provider. Future version of PlainBox will offer git, # bzr and mercurial integration using the versiontools library # (optional) setup( name='2013.com.ubuntu:bar', version="1.0", description=N_("The 2013.com.ubuntu:bar provider"), gettext_domain="2013_com_ubuntu_bar", )