Exemple #1
0
    def test_should_return_rev_and_travis_info_when_count_travis(self):
        environ_get = patch("pybuilder.vcs.os.environ.get").start()
        environ_get.return_value = "456"
        self.execute_command.side_effect = [(1, "", ""),  # not git
                                            (0, "", ""),  # is svn
                                            (0, "123", "any-stderr")]
        travis = count_travis()

        if "123" not in travis or "456" not in travis:
            self.assertEquals(False, True)
Exemple #2
0
    def test_should_return_rev_and_travis_info_when_count_travis(self):
        environ_get = patch("pybuilder.vcs.os.environ.get").start()
        environ_get.return_value = "456"
        self.execute_command.side_effect = [(1, "", ""),  # not git
                                            (0, "", ""),  # is svn
                                            (0, "123", "any-stderr")]
        travis = count_travis()

        if "123" not in travis or "456" not in travis:
            self.assertEqual(False, True)
Exemple #3
0
from pybuilder.core import use_plugin, init
from pybuilder.vcs import count_travis

use_plugin("python.core")
use_plugin("python.unittest")
use_plugin("python.install_dependencies")
use_plugin("python.flake8")
use_plugin("python.coverage")
use_plugin("python.distutils")
use_plugin("python.cram")

name = "usiq"
default_task = "publish"
version = count_travis()


@init
def set_properties(project):
    project.depends_on('docopt')
    project.depends_on('mutagen')
    project.depends_on('logbook')
    project.depends_on('pyyaml')
Exemple #4
0
import sys
from pybuilder.core import use_plugin, init
from pybuilder.vcs import count_travis

use_plugin("python.core")
use_plugin("python.unittest")
use_plugin("python.install_dependencies")
use_plugin("python.flake8")
use_plugin("python.coverage")
use_plugin("python.distutils")


name = "triforce"
default_task = "publish"
version = count_travis()


@init
def set_properties(project):
    project.depends_on('sh')
    project.depends_on('pyyaml')
    if sys.version_info[0] == 2:
        project.build_depends_on('mock')
Exemple #5
0
from pybuilder.core import use_plugin, init
from pybuilder.vcs import count_travis

use_plugin("python.core")
use_plugin("python.unittest")
use_plugin("python.install_dependencies")
use_plugin("python.flake8")
use_plugin("python.coverage")
use_plugin("python.cram")
use_plugin("python.distutils")

name = "startt"
default_task = "publish"
version = '0.{}'.format(count_travis())

with open('src/main/python/startt/__init__.py', 'w') as f:
    f.write('''# This file is automatically written during the build process
# Do not edit manually!
version = "{}"
'''.format(version))


@init
def set_properties(project):
    project.depends_on('docopt')
    project.build_depends_on('cram')
Exemple #6
0
from pybuilder.core import use_plugin, init
from pybuilder.vcs import count_travis

use_plugin("python.core")
use_plugin("python.unittest")
use_plugin("python.install_dependencies")
use_plugin("python.flake8")
use_plugin("python.coverage")
use_plugin("python.distutils")


name = "vyu"
default_task = "publish"
version = '0.' + count_travis()


@init
def set_properties(project):
    project.depends_on('imageio')
    project.depends_on('numpy')
    project.depends_on('scikit-image')
    project.depends_on('scipy')
    project.depends_on('docopt')
    
    project.set_property('coverage_break_build', False)