def task_docs(): doc_files = glob.glob('doc/*.rst') + ['README.rst'] yield docs.spell(doc_files, 'doc/dictionary.txt') yield docs.sphinx('doc/', 'doc/_build/html/', task_dep=['spell', 'doc_sample']) yield docs.pythonhosted_upload('doc/_build/html/', task_dep=['sphinx'])
def test_upload(self): task = list(docs.pythonhosted_upload("www", task_dep=["build"]))[0] assert task["basename"] == "pythonhosted_upload" assert task["task_dep"] == ["build"]
def task_docs(): doc_files = glob.glob('doc/*.rst') + ['README.rst'] yield docs.spell(doc_files, 'doc/dictionary.txt') yield docs.sphinx('doc/', 'doc/_build/html/', task_dep=['spell']) yield docs.pythonhosted_upload('doc/_build/html/', task_dep=['sphinx'])
def test_upload(self): task = list(docs.pythonhosted_upload('www', task_dep=['build']))[0] assert task['basename'] == 'pythonhosted_upload' assert task['task_dep'] == ['build']