Skip to content

Commit

Permalink
Fix kpops --version
Browse files Browse the repository at this point in the history
  • Loading branch information
disrupted committed Jun 27, 2024
1 parent 4bc8ae5 commit 951cfde
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion kpops/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
collect_pipeline_paths,
)
from kpops.config import ENV_PREFIX
from kpops.const import KPOPS, __version__
from kpops.utils.gen_schema import (
gen_config_schema,
gen_defaults_schema,
Expand Down Expand Up @@ -309,7 +310,7 @@ def clean(

def version_callback(show_version: bool) -> None:
if show_version:
# typer.echo(f"KPOps {__version__}") # FIXME: read version from package
typer.echo(f"{KPOPS} {__version__}")
raise typer.Exit


Expand Down
2 changes: 2 additions & 0 deletions kpops/const/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
__version__ = "6.0.1"
KPOPS = "KPOps"
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ mkdocs-glightbox = "^0.3.1"
mkdocs-exclude-search = "^0.6.5"
mike = "^1.1.2"

[tool.poetry_bumpversion.file."kpops/__init__.py"]
[tool.poetry_bumpversion.file."kpops/const/__init__.py"]

[tool.pyright]
reportUnknownParameterType = "warning"
Expand Down

0 comments on commit 951cfde

Please sign in to comment.