Skip to content

Commit

Permalink
🐛 fix metadata output, version, and check version
Browse files Browse the repository at this point in the history
Signed-off-by: rjdbcm <[email protected]>
  • Loading branch information
rjdbcm committed Jul 11, 2024
1 parent 641811a commit 8836652
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions ozi/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
from ozi_core.actions import info # pragma: no cover # pyright: ignore
from ozi_core.actions import license_expression # pragma: no cover # pyright: ignore
from ozi_core.actions import list_available # pragma: no cover # pyright: ignore
from ozi_core.actions import print_version # pragma: no cover # pyright: ignore

from ozi import __version__

EPILOG = """
METADATA_FIELD choices:
Expand Down Expand Up @@ -86,15 +87,15 @@
'--version',
action='store_const',
default=lambda: None,
const=print_version,
help=print_version.__doc__,
const=lambda: print(__version__) or exit(0),
help='Print out the current version and exit.',
)
helpers.add_argument( # pragma: no cover
'-c',
'--check-version',
action='store_const',
default=lambda: None,
const=check_version,
const=lambda v: check_version(v),
help=check_version.__doc__,
)
helpers.add_argument( # pragma: no cover
Expand Down
4 changes: 2 additions & 2 deletions requirements.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
TAP-Producer~=0.1.1
meson[ninja]>=1.1.0
ozi-core>=0.0.2
ozi-spec~=0.5
ozi-core~=0.1.0
ozi-spec~=0.5.1
ozi-templates~=2.5.1
pip-tools
setuptools_scm[toml]
Expand Down

0 comments on commit 8836652

Please sign in to comment.