コード例 #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
ファイル: main.py プロジェクト: Laufire/eccontrib-sphinxdoc
    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
ファイル: main.py プロジェクト: Laufire/eccontrib-sphinxdoc
    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
ファイル: main.py プロジェクト: Laufire/eccontrib-sphinxdoc
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
ファイル: main.py プロジェクト: Laufire/eccontrib-sphinxdoc
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
ファイル: main.py プロジェクト: Laufire/eccontrib-sphinxdoc
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
ファイル: main.py プロジェクト: Laufire/eccontrib-sphinxdoc
    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
ファイル: main.py プロジェクト: Laufire/eccontrib-sphinxdoc
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
ファイル: main.py プロジェクト: Laufire/eccontrib-sphinxdoc
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
ファイル: main.py プロジェクト: Laufire/eccontrib-sphinxdoc
    def check():

        assert (run('rst-lint README.rst') == 0)
コード例 #17
0
ファイル: main.py プロジェクト: Laufire/eccontrib-sphinxdoc
    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
ファイル: main.py プロジェクト: Laufire/eccontrib-sphinxdoc
def lint(target='./ec'):

    assert (run('pylint --rcfile=ec/.pylintrc "%s"' % target) == 0)
コード例 #20
0
ファイル: main.py プロジェクト: Laufire/eccontrib-sphinxdoc
    def upload():

        docs.check()
        assert (run('python setup.py upload_sphinx') == 0)
コード例 #21
0
ファイル: main.py プロジェクト: Laufire/eccontrib-sphinxdoc
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
ファイル: main.py プロジェクト: Laufire/eccontrib-sphinxdoc
    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
ファイル: main.py プロジェクト: Laufire/eccontrib-sphinxdoc
    def upload():

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