aboutsummaryrefslogtreecommitdiffstats
path: root/cli.py
diff options
context:
space:
mode:
authorJuergen Bocklage-Ryannel <[email protected]>2017-04-03 20:30:31 +0200
committerJuergen Bocklage-Ryannel <[email protected]>2017-04-03 20:30:31 +0200
commit4b99d5ebd4727b3394a52c251bbce84b1ce1cf4f (patch)
treeddecfcddf1fe117c2d6f39408a87cffafa08befc /cli.py
parented428a06bbd665e4fe97ffc02a81620c5676e424 (diff)
parent808254b0c88d2bc7672cf01891a9f774bea641a7 (diff)
Merge branch 'release/1.1'1.1
Diffstat (limited to 'cli.py')
-rwxr-xr-xcli.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/cli.py b/cli.py
index 9c0f4fb..c04cbac 100755
--- a/cli.py
+++ b/cli.py
@@ -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()