Skip to content

Commit

Permalink
⬆️: ozi-core~=1.5.16, add --uninstall-user-files option to ozi
Browse files Browse the repository at this point in the history
Signed-off-by: rjdbcm <[email protected]>
  • Loading branch information
rjdbcm committed Nov 21, 2024
1 parent 062c633 commit 8022dae
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
9 changes: 9 additions & 0 deletions ozi/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
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 uninstall_user_files # pragma: no cover # pyright: ignore

from ozi import __version__

Expand Down Expand Up @@ -104,6 +105,13 @@
action='store',
choices={i.name.replace('_', '-') for i in fields(ExactMatch) if i.repr},
)
helpers.add_argument(
'--uninstall-user-files',
help=TRANSLATION('term-help-uninstall-user-files'),
action='store_const',
default=lambda: None,
const=lambda: uninstall_user_files()
)


def main() -> None: # pragma: no cover
Expand All @@ -112,6 +120,7 @@ def main() -> None: # pragma: no cover
ozi.version()
ozi.check_version()
ozi.info()
ozi.uninstall_user_files()
if ozi.list_available:
list_available(ozi.list_available)
if ozi.check_license_expr:
Expand Down
3 changes: 1 addition & 2 deletions ozi/tasks.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"""Invoke tasks for OZI CI."""

# ozi/tasks.py
# Part of the OZI Project, under the Apache License v2.0 with LLVM Exceptions.
# See LICENSE.txt for license information.
Expand All @@ -18,6 +16,7 @@
# 'tomli>=2;python_version<="3.11"', # noqa: E800, RUF100
# 'twine',
# ///
"""Invoke tasks for OZI CI."""
from __future__ import annotations

import inspect
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ tag_regex = "^(?P<prefix>v)?(?P<version>[^\\+]+)(?P<suffix>.*)?$"
[project]
dynamic = ["version"]
license = {file = "LICENSE.txt"}
dependencies = ['ozi-core~=1.5.0', 'setuptools_scm[toml]', 'tomli>=2.0.0;python_version<"3.11"']
dependencies = ['ozi-core~=1.5.16', 'setuptools_scm[toml]', 'tomli>=2.0.0;python_version<"3.11"']

[project.optional_dependencies] # also meson test suite names
# continuous integration
Expand Down

0 comments on commit 8022dae

Please sign in to comment.