Exemplo n.º 1
0
Arquivo: main.py Projeto: Laufire/ec
    def test(name=None):

        devLinks.clear()  # clear all the dev links to avoid module mixing
        assert run("pip uninstall -y ec") == 0
        assert run("pip install --upgrade ec") == 0
        assert run("python setup.py test") == 0
        devLinks.create()
Exemplo n.º 2
0
    def test(name=None):

        if True:  # //! ToDo: Write some tests.
            print 'ToDo: Write some tests.'
            return

        devLinks.clear()  # clear all the dev links to avoid module mixing
        assert (run('pip uninstall -y ec') == 0)
        assert (run('pip install --upgrade ec') == 0)
        assert (run('python setup.py test') == 0)
        devLinks.create()
Exemplo n.º 3
0
    def test(name=None):

        if True:  # //! ToDo: Write some tests.
            print "ToDo: Write some tests."
            return

        devLinks.clear()  # clear all the dev links to avoid module mixing
        assert run("pip uninstall -y ec") == 0
        assert run("pip install --upgrade ec") == 0
        assert run("python setup.py test") == 0
        devLinks.create()
Exemplo n.º 4
0
Arquivo: main.py Projeto: Laufire/ec
def test(name=None):
    """
  Args:
    name (str): The name of the test (the string after 'test_'). When a name isn't specified all tests will be done.
  """
    if name:
        assert run("python tests/test_%s.py" % name) == 0

    else:
        devLinks.clear()  # clear all the dev links to avoid module mixing
        install()
        assert run("python setup.py test") == 0
        devLinks.create()
Exemplo n.º 5
0
Arquivo: main.py Projeto: Laufire/ec
def lint(target=None):
    from glob2 import glob

    devLinks.clear()

    if not target:
        for item in ["ec", "tests"] + glob("Scripts/**/*.py"):
            assert run('pylint --rcfile=.pylintrc "%s"' % item) == 0

    else:
        assert run('pylint --rcfile=.pylintrc "%s"' % target) == 0

    devLinks.create()
Exemplo n.º 6
0
def installSphinxDoc():

    wd = '%s/sphinxdoc' % project_root
    rmtree('%s/build' % wd)

    for command in ['build', 'install']:
        assert (run('python setup.py %s' % command, cwd=wd) == 0)
Exemplo n.º 7
0
def installSphinxDoc():

    wd = "%s/sphinxdoc" % project_root
    rmtree("%s/build" % wd)

    for command in ["build", "install"]:
        assert run("python setup.py %s" % command, cwd=wd) == 0
Exemplo n.º 8
0
def test(name=None):
    """
  Args:
    name (str): The name of the test (the string after 'test_'). When a name isn't specified all tests will be done.
  """
    if True:  # //! ToDo: Write some tests.
        print 'ToDo: Write some tests.'
        return

    if name:
        assert (run('python tests/test_%s.py' % name) == 0)

    else:
        devLinks.clear()  # clear all the dev links to avoid module mixing
        install()
        assert (run('python setup.py test') == 0)
        devLinks.create()
Exemplo n.º 9
0
Arquivo: main.py Projeto: Laufire/ec
    def make(check=True, update=False):

        if check:
            docs.check()

        if not update:
            rmtree("docs/_build")

        assert run("sphinx-build -b html -d _build/doctrees  . _build/html", cwd="%s/docs" % project_root) == 0
Exemplo n.º 10
0
    def make(check=True, update=False):

        if check:
            docs.check()

        if not update:
            rmtree('docs/_build')

        assert (run('sphinx-build -b html -d _build/doctrees  . _build/html',
                    cwd='%s/docs' % project_root) == 0)
Exemplo n.º 11
0
Arquivo: main.py Projeto: Laufire/ec
def push():

    assert run("git push origin master") == 0
Exemplo n.º 12
0
def push():

    assert (run('git push origin master') == 0)
Exemplo n.º 13
0
Arquivo: main.py Projeto: Laufire/ec
    def upload():

        assert run("python setup.py sdist upload && python setup.py bdist_wheel upload", shell=True) == 0
Exemplo n.º 14
0
def lint(target="./ec"):

    assert run('pylint --rcfile=ec/.pylintrc "%s"' % target) == 0
Exemplo n.º 15
0
Arquivo: main.py Projeto: Laufire/ec
    def spellcheck():

        assert run("sphinx-build -b spelling -d _build/doctrees  . _build/_spelling", cwd="docs") == 0
Exemplo n.º 16
0
    def check():

        assert (run('rst-lint README.rst') == 0)
Exemplo n.º 17
0
    def spellcheck():

        assert (run(
            'sphinx-build -b spelling -d _build/doctrees  . _build/_spelling',
            cwd='docs') == 0)
Exemplo n.º 18
0
Arquivo: main.py Projeto: Laufire/ec
def install():

    rmtree("%s/build" % project_root)

    for command in ["build", "install"]:
        assert run("python setup.py %s" % command) == 0
Exemplo n.º 19
0
def lint(target='./ec'):

    assert (run('pylint --rcfile=ec/.pylintrc "%s"' % target) == 0)
Exemplo n.º 20
0
    def upload():

        docs.check()
        assert (run('python setup.py upload_sphinx') == 0)
Exemplo n.º 21
0
def install():

    rmtree('%s/build' % project_root)

    for command in ['build', 'install']:
        assert (run('python setup.py %s' % command) == 0)
Exemplo n.º 22
0
Arquivo: main.py Projeto: Laufire/ec
    def check():

        assert run("rst-lint README.rst") == 0
Exemplo n.º 23
0
    def upload():

        assert run("python setup.py sdist upload") == 0
Exemplo n.º 24
0
Arquivo: main.py Projeto: Laufire/ec
    def upload():

        docs.check()
        assert run("python setup.py upload_sphinx") == 0
Exemplo n.º 25
0
    def upload():

        assert (run('python setup.py sdist upload') == 0)