diff --git a/docs/conf.py b/docs/conf.py index b02605e..e033c6b 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -19,14 +19,14 @@ # -- Project information ----------------------------------------------------- -project = 'hubploy' -copyright = '2018, Yuvi Panda' -author = 'Yuvi Panda' +project = "hubploy" +copyright = "2018, Yuvi Panda" +author = "Yuvi Panda" # The short X.Y version -version = '' +version = "" # The full version, including alpha/beta/rc tags -release = '0.1' +release = "0.1" # -- General configuration --------------------------------------------------- @@ -38,22 +38,19 @@ # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. -extensions = [ - 'sphinx.ext.intersphinx', - 'sphinxcontrib.mermaid' -] +extensions = ["sphinx.ext.intersphinx", "sphinxcontrib.mermaid"] # Add any paths that contain templates here, relative to this directory. -templates_path = ['_templates'] +templates_path = ["_templates"] # The suffix(es) of source filenames. # You can specify multiple suffix as a list of string: # # source_suffix = ['.rst', '.md'] -source_suffix = '.rst' +source_suffix = ".rst" # The master toctree document. -master_doc = 'index' +master_doc = "index" # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. @@ -65,10 +62,10 @@ # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. # This pattern also affects html_static_path and html_extra_path . -exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] +exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] # The name of the Pygments (syntax highlighting) style to use. -pygments_style = 'sphinx' +pygments_style = "sphinx" # -- Options for HTML output ------------------------------------------------- @@ -76,7 +73,7 @@ # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. # -html_theme = 'alabaster' +html_theme = "alabaster" # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the @@ -87,7 +84,7 @@ # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = ['_static'] +html_static_path = ["_static"] # Custom sidebar templates, must be a dictionary that maps document names # to template names. @@ -103,7 +100,7 @@ # -- Options for HTMLHelp output --------------------------------------------- # Output file base name for HTML help builder. -htmlhelp_basename = 'hubploydoc' +htmlhelp_basename = "hubploydoc" # -- Options for LaTeX output ------------------------------------------------ @@ -112,15 +109,12 @@ # The paper size ('letterpaper' or 'a4paper'). # # 'papersize': 'letterpaper', - # The font size ('10pt', '11pt' or '12pt'). # # 'pointsize': '10pt', - # Additional stuff for the LaTeX preamble. # # 'preamble': '', - # Latex figure (float) alignment # # 'figure_align': 'htbp', @@ -130,8 +124,7 @@ # (source start file, target name, title, # author, documentclass [howto, manual, or own class]). latex_documents = [ - (master_doc, 'hubploy.tex', 'hubploy Documentation', - 'Yuvi Panda', 'manual'), + (master_doc, "hubploy.tex", "hubploy Documentation", "Yuvi Panda", "manual"), ] @@ -139,10 +132,7 @@ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). -man_pages = [ - (master_doc, 'hubploy', 'hubploy Documentation', - [author], 1) -] +man_pages = [(master_doc, "hubploy", "hubploy Documentation", [author], 1)] # -- Options for Texinfo output ---------------------------------------------- @@ -151,9 +141,15 @@ # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ - (master_doc, 'hubploy', 'hubploy Documentation', - author, 'hubploy', 'One line description of project.', - 'Miscellaneous'), + ( + master_doc, + "hubploy", + "hubploy Documentation", + author, + "hubploy", + "One line description of project.", + "Miscellaneous", + ), ] @@ -162,7 +158,7 @@ # -- Options for intersphinx extension --------------------------------------- # Example configuration for intersphinx: refer to the Python standard library. -intersphinx_mapping = {'https://docs.python.org/': None} +intersphinx_mapping = {"https://docs.python.org/": None} -mermaid_params = ['--theme', 'neutral'] +mermaid_params = ["--theme", "neutral"] diff --git a/hubploy/__main__.py b/hubploy/__main__.py index 477b6a2..a1314ea 100644 --- a/hubploy/__main__.py +++ b/hubploy/__main__.py @@ -97,6 +97,7 @@ def main(): ) deploy_parser.add_argument( "--dry-run", + default=False, action="store_true", help="Dry run the helm upgrade command. This also renders the " + "chart to STDOUT. This is not allowed to be used in a " @@ -120,6 +121,10 @@ def main(): args = argparser.parse_args() + if args.command is None: + argparser.print_help() + sys.exit(1) + if args.verbose: logger.setLevel(logging.INFO) elif args.debug: diff --git a/setup.py b/setup.py index 9b71bba..6168eb6 100644 --- a/setup.py +++ b/setup.py @@ -2,14 +2,11 @@ setuptools.setup( name="hubploy", - version="0.4.1", + version="0.4.2", url="https://github.com/berkeley-dsep-infra/hubploy", author="Yuvi Panda and Shane Knapp", packages=setuptools.find_packages(), - install_requires=[ - "kubernetes<=31.0.0", - "boto3" - ], + install_requires=["kubernetes<=31.0.0", "boto3"], python_requires=">=3.6", entry_points={ "console_scripts": [