예제 #1
0
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'])
예제 #2
0
 def test_upload(self):
     task = list(docs.pythonhosted_upload("www", task_dep=["build"]))[0]
     assert task["basename"] == "pythonhosted_upload"
     assert task["task_dep"] == ["build"]
예제 #3
0
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'])
예제 #4
0
파일: test_docs.py 프로젝트: saimn/doit-py
 def test_upload(self):
     task = list(docs.pythonhosted_upload('www', task_dep=['build']))[0]
     assert task['basename'] == 'pythonhosted_upload'
     assert task['task_dep'] == ['build']