Пример #1
0
#!/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",
)
Пример #2
0
#!/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",
)
Пример #3
0
#!/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",
)
Пример #4
0
#!/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",
)
Пример #5
0
#!/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',
)
Пример #6
0
#!/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",
)
Пример #7
0
#   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)
Пример #8
0
#!/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",
)
Пример #9
0
#!/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',
)
Пример #10
0
#!/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",
)
Пример #11
0
#!/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",
)
Пример #12
0
#!/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'))
Пример #13
0
#!/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",
)
Пример #14
0
                         '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',
)
Пример #15
0
#!/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",
)
Пример #16
0
        '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,
)
Пример #17
0
#!/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",
)
Пример #18
0
#!/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",
)
Пример #19
0
#!/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",
)
Пример #20
0
#!/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",
)
Пример #21
0
#!/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",
)
Пример #22
0
# 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.
categories_def = get_categories_def()


def _(msgid):
    """
    manage.py specific gettext that uses the category provider domain
    """
    return dgettext(categories_def.gettext_domain, msgid)


# This is categories_def.description,
# we need it here to extract is as a part of this provider
N_("Common test category definitions")


@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):
Пример #23
0
#!/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,
)
Пример #24
0
#!/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"))
Пример #25
0
# 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.
exporters_def = get_exporters_def()


def _(msgid):
    """
    manage.py specific gettext that uses the manifest provider domain
    """
    return dgettext(exporters_def.gettext_domain, msgid)


# This is exporters_def.description,
# we need it here to extract is as a part of this provider
N_("Exporters Provider")


@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):
Пример #26
0
#!/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",
)
Пример #27
0
from plainbox.provider_manager import setup

# 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.
manifest_def = get_manifest_def()


def _(msgid):
    """manage.py specific gettext that uses the manifest provider domain."""
    return dgettext(manifest_def.gettext_domain, msgid)


# This is manifest_def.description,
# we need it here to extract is as a part of this provider
N_("Hardware Manifest Provider")


@manage_py_extension
class DevelopCommandExt(DevelopCommand):

    __doc__ = DevelopCommand.__doc__

    name = 'develop'

    def invoked(self, ns):
        print(_("The Manifest provider is special"))
        print(_("You don't need to develop it explicitly"))


@manage_py_extension
Пример #28
0
#!/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,
)
Пример #29
0
#!/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",
)