예제 #1
0
파일: main.py 프로젝트: 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()
예제 #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()
예제 #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()
예제 #4
0
파일: main.py 프로젝트: 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()
예제 #5
0
파일: main.py 프로젝트: 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()
예제 #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)
예제 #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
예제 #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()
예제 #9
0
파일: main.py 프로젝트: 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
예제 #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)
예제 #11
0
파일: main.py 프로젝트: Laufire/ec
def push():

    assert run("git push origin master") == 0
예제 #12
0
def push():

    assert (run('git push origin master') == 0)
예제 #13
0
파일: main.py 프로젝트: Laufire/ec
    def upload():

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

    assert run('pylint --rcfile=ec/.pylintrc "%s"' % target) == 0
예제 #15
0
파일: main.py 프로젝트: Laufire/ec
    def spellcheck():

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

        assert (run('rst-lint README.rst') == 0)
예제 #17
0
    def spellcheck():

        assert (run(
            'sphinx-build -b spelling -d _build/doctrees  . _build/_spelling',
            cwd='docs') == 0)
예제 #18
0
파일: main.py 프로젝트: Laufire/ec
def install():

    rmtree("%s/build" % project_root)

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

    assert (run('pylint --rcfile=ec/.pylintrc "%s"' % target) == 0)
예제 #20
0
    def upload():

        docs.check()
        assert (run('python setup.py upload_sphinx') == 0)
예제 #21
0
def install():

    rmtree('%s/build' % project_root)

    for command in ['build', 'install']:
        assert (run('python setup.py %s' % command) == 0)
예제 #22
0
파일: main.py 프로젝트: Laufire/ec
    def check():

        assert run("rst-lint README.rst") == 0
예제 #23
0
    def upload():

        assert run("python setup.py sdist upload") == 0
예제 #24
0
파일: main.py 프로젝트: Laufire/ec
    def upload():

        docs.check()
        assert run("python setup.py upload_sphinx") == 0
예제 #25
0
    def upload():

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