Skip to content

Commit

Permalink
Merge pull request #120 from shaneknapp/fix-no-args-stacktrace
Browse files Browse the repository at this point in the history
fix stacktrace w/no args, minor version bump
  • Loading branch information
shaneknapp authored Jan 27, 2025
2 parents 6c39337 + df971e0 commit bc49f8c
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 36 deletions.
58 changes: 27 additions & 31 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ---------------------------------------------------
Expand All @@ -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.
Expand All @@ -65,18 +62,18 @@
# 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 -------------------------------------------------

# 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
Expand All @@ -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.
Expand All @@ -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 ------------------------------------------------
Expand All @@ -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',
Expand All @@ -130,19 +124,15 @@
# (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"),
]


# -- Options for manual page output ------------------------------------------

# 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 ----------------------------------------------
Expand All @@ -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",
),
]


Expand All @@ -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"]
5 changes: 5 additions & 0 deletions hubploy/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand All @@ -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:
Expand Down
7 changes: 2 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down

0 comments on commit bc49f8c

Please sign in to comment.