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()
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()
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()
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()
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()
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)
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
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()
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
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)
def push(): assert run("git push origin master") == 0
def push(): assert (run('git push origin master') == 0)
def upload(): assert run("python setup.py sdist upload && python setup.py bdist_wheel upload", shell=True) == 0
def lint(target="./ec"): assert run('pylint --rcfile=ec/.pylintrc "%s"' % target) == 0
def spellcheck(): assert run("sphinx-build -b spelling -d _build/doctrees . _build/_spelling", cwd="docs") == 0
def check(): assert (run('rst-lint README.rst') == 0)
def spellcheck(): assert (run( 'sphinx-build -b spelling -d _build/doctrees . _build/_spelling', cwd='docs') == 0)
def install(): rmtree("%s/build" % project_root) for command in ["build", "install"]: assert run("python setup.py %s" % command) == 0
def lint(target='./ec'): assert (run('pylint --rcfile=ec/.pylintrc "%s"' % target) == 0)
def upload(): docs.check() assert (run('python setup.py upload_sphinx') == 0)
def install(): rmtree('%s/build' % project_root) for command in ['build', 'install']: assert (run('python setup.py %s' % command) == 0)
def check(): assert run("rst-lint README.rst") == 0
def upload(): assert run("python setup.py sdist upload") == 0
def upload(): docs.check() assert run("python setup.py upload_sphinx") == 0
def upload(): assert (run('python setup.py sdist upload') == 0)