diff options
author | Juergen Bocklage-Ryannel <[email protected]> | 2017-04-03 20:30:31 +0200 |
---|---|---|
committer | Juergen Bocklage-Ryannel <[email protected]> | 2017-04-03 20:30:31 +0200 |
commit | 4b99d5ebd4727b3394a52c251bbce84b1ce1cf4f (patch) | |
tree | ddecfcddf1fe117c2d6f39408a87cffafa08befc /cli.py | |
parent | ed428a06bbd665e4fe97ffc02a81620c5676e424 (diff) | |
parent | 808254b0c88d2bc7672cf01891a9f774bea641a7 (diff) |
Merge branch 'release/1.1'1.1
Diffstat (limited to 'cli.py')
-rwxr-xr-x | cli.py | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -11,6 +11,8 @@ import os import yaml import logging import logging.config +from livereload import Server, shell + here = os.path.dirname(__file__) @@ -166,10 +168,19 @@ def uninstall(): @cli.command() def upload(): dist = Path('dist') - dist.rmdir_p() + if dist.exists(): + dist.rmdir_p() + dist.makedirs_p() sh('python3 setup.py bdist_wheel') sh('twine upload dist/*') +def docs_serve(): + server = Server() + server.watch('docs/*.rst', shell('make html', cwd='docs')) + server.serve(root='docs/_build/html', open_url=True) + + if __name__ == '__main__': cli() |