Ejemplo n.º 1
0
def setup(test):
    """
    Make sure we are ready to test a buildout recipe, and the develop
    version of dumppickedversions2.
    """
    testing.buildoutSetUp(test)
    testing.install_develop('buildout.dumppickedversions2', test)
Ejemplo n.º 2
0
def setUp(test):
    home = os.environ.get('HOME', None)
    buildoutSetUp(test)
    os.environ['HOME'] = home
    class buildout_test(object):
        def __init__(self, config):
            self.config = config

        def reset(self):
            test.globs['write'](test.globs['sample_buildout'], 'buildout.cfg',
                os.linesep.join(('[buildout]', 'offline=true', 'parts =')))
            test.globs['system'](test.globs['buildout'])

        def __enter__(self):
            self.reset()
            test.globs['write'](test.globs['sample_buildout'], 'buildout.cfg', self.config)
            return self

        def run(self, *args):
            return test.globs['system'](' '.join([test.globs['buildout']] + list(args)))

        def __exit__(self, type, value, traceback):
            self.reset()
    test.globs['server_path'] = server_path = test.globs['tmpdir']('server')
    shutil.copytree(os.path.join(os.path.dirname(__file__), 'data'),
        os.path.join(server_path, 'data'))
    test.globs['server_url'] = test.globs['start_server'](server_path)
    test.globs['buildout_test'] = buildout_test
    install_develop('dockeroo', test)
Ejemplo n.º 3
0
def setUp(test):
    testing.buildoutSetUp(test)
    test.globs['isdir'] = isdir
    test.globs['isfile'] = isfile
    test.globs['copytree'] = copytree
    copy_index()
    testing.install_develop('djc.recipe2', test)
Ejemplo n.º 4
0
def setUp(test):
    buildoutSetUp(test)
    install_develop('plone.recipe.zope2instance', test)
    install('zc.recipe.egg', test)
    install_dependencies(pkg_resources.working_set.require('ZEO'), test)
    install_dependencies(pkg_resources.working_set.require('Zope'), test)
    install_dependencies(pkg_resources.working_set.require('ZODB'), test)
Ejemplo n.º 5
0
def setUp(test):
    buildoutSetUp(test)
    install_develop('plone.recipe.zope2instance', test)
    install('zc.recipe.egg', test)
    install_dependencies(pkg_resources.working_set.require('ZEO'), test)
    install_dependencies(pkg_resources.working_set.require('Zope'), test)
    install_dependencies(pkg_resources.working_set.require('ZODB'), test)
Ejemplo n.º 6
0
def setUp(test):
    buildoutSetUp(test)
    install_develop('plone.recipe.zeoserver', test)
    install('zc.recipe.egg', test)
    if sys.platform[:3].lower() == "win":
        install('nt_svcutils', test)
    install('zope.mkzeoinstance', test)
    install('ZopeUndo', test)
    install('zc.zrs', test)
    install('Automat', test)
    install('incremental', test)
    install('constantly', test)
    install('attrs', test)
    install('Twisted', test)
    install('hyperlink', test)
    install('idna', test)
    install('PyHamcrest', test)
    dependencies = pkg_resources.working_set.require('ZODB')
    for dep in dependencies:
        try:
            install(dep.project_name, test)
        except OSError:
            # Some distributions are installed multiple times, and the
            # underlying API doesn't check for it
            pass
def setUp(test):
    buildoutSetUp(test)
    install_develop('zope.exceptions', test)
    install_develop('zope.interface', test)
    install_develop('zope.testing', test)
    install_develop('genshi', test)
    install_develop('collective.recipe.solrinstance', test)
def setUp(test):

    buildoutSetUp(test)
    install_develop('leocornus.recipe.distribute', test)
    install('mwclient', test)
    install('requests', test)
    install('six', test)
Ejemplo n.º 9
0
def setUp(test):
    testing.buildoutSetUp(test)
    test.globs['isdir'] = isdir
    test.globs['isfile'] = isfile
    test.globs['copytree'] = copytree
    copy_index()
    testing.install_develop('djc.recipe2', test)
Ejemplo n.º 10
0
def setUp(test):
    buildoutSetUp(test)
    install_develop('plone.recipe.zeoserver', test)
    install('zc.recipe.egg', test)
    if sys.platform[:3].lower() == "win":
        install('nt_svcutils', test)
    install('zope.mkzeoinstance', test)
    install('ZopeUndo', test)
    install('zc.zrs', test)
    install('Automat', test)
    install('incremental', test)
    install('constantly', test)
    install('attrs', test)
    install('Twisted', test)
    install('hyperlink', test)
    install('idna', test)
    install('PyHamcrest', test)
    dependencies = pkg_resources.working_set.require('ZODB')
    for dep in dependencies:
        try:
            install(dep.project_name, test)
        except OSError:
            # Some distributions are installed multiple times, and the
            # underlying API doesn't check for it
            pass
Ejemplo n.º 11
0
def setUp(test):
    buildoutSetUp(test)
    # Work around "Not Found" messages on Buildout 2
    del os.environ['buildout-testing-index-url']
    test.globs['buildout'] += ' -No'

    install_develop('birdhousebuilder.recipe.nginx', test)
def setUp(test):
    buildoutSetUp(test)
    # Work around "Not Found" messages on Buildout 2
    del os.environ['buildout-testing-index-url']
    test.globs['buildout'] += ' -No'

    install_develop('birdhousebuilder.recipe.ncwms', test)
Ejemplo n.º 13
0
def setUp(test):
    buildoutSetUp(test)
    install('zc.recipe.egg',test)
    install('argparse',test)
    install('execute',test)
    install('mailinglogger',test)
    install('zope.dottedname',test)
    install_develop('checker',test)
Ejemplo n.º 14
0
def setUp(test):
    buildoutSetUp(test)
    install('zc.recipe.egg', test)
    install('argparse', test)
    install('execute', test)
    install('mailinglogger', test)
    install('zope.dottedname', test)
    install_develop('checker', test)
Ejemplo n.º 15
0
def setUp(test):

    buildoutSetUp(test)
    install_develop('leocornus.recipe.ci', test)
    install('pexpect', test)
    install('mwclient', test)
    install('requests', test)
    install('ansi2html', test)
    install('six', test)
Ejemplo n.º 16
0
def setUp(test):

    buildoutSetUp(test)
    install_develop('leocornus.recipe.ci', test)
    install('pexpect', test)
    install('mwclient', test)
    install('requests', test)
    install('ansi2html', test)
    install('six', test)
def setUp(test):
    buildoutSetUp(test)
    #Work around "Not Found" messages on Buildout 2
    del os.environ['buildout-testing-index-url']
    test.globs['buildout'] += ' -No'

    install_develop('zope.exceptions', test)
    install_develop('zope.interface', test)
    install_develop('zope.testing', test)
    install_develop('genshi', test)
    install_develop('collective.recipe.solrinstance', test)
Ejemplo n.º 18
0
def setUp(test):
    buildout_testing.buildoutSetUp(test)
    # do a develop install of the recipe
    buildout_testing.install_develop('buildout-tox', test)
    # required by the recipe
    #buildout_testing.install('zc.recipe.egg', test)
    # setup the tempdir for testfixtures.manuel
    test.globs['dir'] = td = TempDirectory(path=os.getcwd())
    test.globs['r'] = r = Replacer()
    r.replace('os.environ', {})
    r.replace('sys.path', sys.path[:])
Ejemplo n.º 19
0
def setUp(test):
    buildoutSetUp(test)
    install_develop('plone.recipe.zope2instance', test)
    install('zc.recipe.egg', test)
    install('mailinglogger', test)
    dependencies = pkg_resources.working_set.require('Zope2')
    for dep in dependencies:
        try:
            install(dep.project_name, test)
        except OSError:
            # Some distributions are installed multiple times, and the
            # underlying API doesn't check for it
            pass
Ejemplo n.º 20
0
def setUp(test):
    buildoutSetUp(test)
    install_develop('plone.recipe.zope2instance', test)
    install('zc.recipe.egg', test)
    install('mailinglogger', test)
    dependencies = pkg_resources.working_set.require('Zope2')
    for dep in dependencies:
        try:
            install(dep.project_name, test)
        except OSError:
            # Some distributions are installed multiple times, and the
            # underlying API doesn't check for it
            pass
 def setUp(self):
     buildoutSetUp(self)
     install_develop('zope.exceptions', self)
     install_develop('zope.interface', self)
     install_develop('zope.testing', self)
     install_develop('Genshi', self)
     install_develop('collective.recipe.solrinstance', self)
     sample_buildout = self.globs['sample_buildout']
     os.makedirs(join(sample_buildout, 'example', 'etc'))
     os.makedirs(join(
         sample_buildout, 'example', 'solr', 'collection1', 'conf'))
     os.makedirs(join(sample_buildout, 'dist'))
     os.makedirs(join(sample_buildout, 'contrib'))
Ejemplo n.º 22
0
def setUp(test):
    buildoutSetUp(test)
    install_develop('isotoma.recipe.zeo', test)
    install('zc.recipe.egg', test)
    if sys.platform[:3].lower() == "win":
        install('nt_svcutils', test)
    install('zope.mkzeoinstance', test)
    install('ZopeUndo', test)
    dependencies = pkg_resources.working_set.require('ZODB3')
    for dep in dependencies:
        try:
            install(dep.project_name, test)
        except OSError:
            # Some distributions are installed multiple times, and the
            # underlying API doesn't check for it
            pass
Ejemplo n.º 23
0
def setUp(test):
    buildoutSetUp(test)
    install_develop("plone.recipe.zeoserver", test)
    install("zc.recipe.egg", test)
    if sys.platform[:3].lower() == "win":
        install("nt_svcutils", test)
    install("zope.mkzeoinstance", test)
    install("ZopeUndo", test)
    install("zc.zrs", test)
    install("Twisted", test)
    dependencies = pkg_resources.working_set.require("ZODB3")
    for dep in dependencies:
        try:
            install(dep.project_name, test)
        except OSError:
            # Some distributions are installed multiple times, and the
            # underlying API doesn't check for it
            pass
Ejemplo n.º 24
0
def setUp(test):
    easy_install_SetUp(test)
    create_celery_egg(test)
    install_develop('collective.recipe.celery', test)
Ejemplo n.º 25
0
def setUpBuildout(test):
    testing.buildoutSetUp(test)
    testing.install_develop('zc.recipe.egg', test)
    testing.install_develop('lovely.recipe', test)
    testing.install_develop('zope.testing', test)
    testing.install_develop('zope.interface', test)
Ejemplo n.º 26
0
def setUp(test):
    buildoutSetUp(test)
    install_develop('plone.recipe.varnish', test)
    install('zc.recipe.cmmi', test)
def setUp(test):
    buildoutSetUp(test)
    install_develop('zc.recipe.egg', test)
    install_develop('collective.recipe.pydevproject', test)
Ejemplo n.º 28
0
def setUp(test):
    buildoutSetUp(test)
    install_develop('zope.interface', test)
    install_develop('zope.testing', test)
    install_develop('Cheetah', test)
    install_develop('iw.recipe.template', test)
    install_develop('Markdown', test)
    install_develop('zope.exceptions', test)
    install_develop('zc.recipe.egg', test)
    install_develop('so.recipe.instance', test)
Ejemplo n.º 29
0
def setUp(test):
    easy_install_SetUp(test)
    create_celery_egg(test)
    install_develop('collective.recipe.celery', test)
Ejemplo n.º 30
0
def setUp(test):
    testing.buildoutSetUp(test)
    testing.install('zope.testing', test)
    testing.install_develop('zc.recipe.egg', test)
    testing.install_develop('pb.recipes.pydev', test)
Ejemplo n.º 31
0
def setUp(test):
    buildoutSetUp(test)
    install('zc.recipe.cmmi', test)
    install('jinja2', test)
    install('markupsafe', test)
    install_develop('plone.recipe.varnish', test)
def setUp(test):

    buildoutSetUp(test)
    install_develop('leocornus.recipe.distribute', test)
def setUp(test):
    buildoutSetUp(test)
    install_develop('zope.exceptions', test)
    install_develop('zope.interface', test)
    install_develop('zope.testing', test)
    install_develop('Cheetah', test)
    install_develop('Markdown', test)
    install_develop('iw.recipe.template', test)
    install_develop('collective.recipe.solrinstance', test)
Ejemplo n.º 34
0
def setUpBuildout(test):
    testing.buildoutSetUp(test)
    testing.install_develop('zc.recipe.egg', test)
    testing.install_develop('lovely.recipe', test)
    testing.install_develop('zope.testing', test)
    testing.install_develop('zope.interface', test)
 def setUp(self):
     buildoutSetUp(self)
     install_develop('Genshi', self)
     install_develop('collective.recipe.solrinstance', self)
     install_develop('hexagonit.recipe.download', self)
     install_develop('zope.exceptions', self)
     install_develop('zope.interface', self)
     install_develop('zope.testing', self)
Ejemplo n.º 36
0
def setUp(test):
    buildoutSetUp(test)
    install('zc.recipe.cmmi', test)
    install('jinja2', test)
    install('markupsafe', test)
    install_develop('plone.recipe.varnish', test)
Ejemplo n.º 37
0
def setUp(test):
    buildoutSetUp(test)
    install_develop('zc.recipe.egg', test)
    install_develop('collective.recipe.pydevproject', test)
Ejemplo n.º 38
0
def setUp(test):
    setUpBuildout(test)
    testing.install_develop('zope.app.locales', test)
    testing.install_develop('zope.i18nmessageid', test)
Ejemplo n.º 39
0
def setUp(test):
    setUpBuildout(test)
    testing.install_develop('zope.app.locales', test)
    testing.install_develop('zope.i18nmessageid', test)