Skip to content

Commit

Permalink
Recolor version string.
Browse files Browse the repository at this point in the history
Reverts b0fa329

Refs:
#1152
704d585
  • Loading branch information
kdeldycke committed Feb 18, 2024
1 parent 086e4b1 commit f705825
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ This version is not released yet and is under active development.
- \[mpm\] Build `arm64` binaries on `macos-14`.
- \[mpm\] Run tests on `macos-14` instead of `macos-13`.
- \[mpm\] Run tests on Python 3.13-dev branch.
- \[mpm\] Reintroduce coloring of version. Refs {pr}`1152`.
- \[mpm\] Use external workflow to manage issues and PRs content-based labelling.

## [5.14.2 (2024-01-17)](https://github.com/kdeldycke/meta-package-manager/compare/v5.14.1...v5.14.2)
Expand Down
20 changes: 1 addition & 19 deletions meta_package_manager/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,9 @@
pass_context,
table_format_option,
)
from click_extra.colorize import KO, OK, ColorOption, HelpOption, highlight
from click_extra.colorize import KO, OK, highlight
from click_extra.colorize import default_theme as theme
from click_extra.config import ConfigOption
from click_extra.logging import VerbosityOption
from click_extra.parameters import ShowParamsOption
from click_extra.platforms import reduce
from click_extra.timer import TimerOption
from click_extra.version import ExtraVersionOption

if sys.version_info >= (3, 11):
import tomllib
Expand Down Expand Up @@ -174,19 +169,6 @@ def bar_plugin_path(ctx, param, value):
@extra_group(
# XXX Default verbosity has been changed in Click Extra 4.0.0 from INFO to WARNING.
context_settings={"default_map": {"verbosity": "INFO"}},
# XXX Same as what click_extra.commands.default_extra_params returns, but with
# colors of the version option forced to be neutralized. This temporarily address
# the validation of mpm version by old (X|Swift)Bar plugins. This could be removed
# once https://github.com/matryer/xbar-plugins/pull/2018 is merged upstream.
params=[
TimerOption(),
ColorOption(),
ConfigOption(),
ShowParamsOption(),
VerbosityOption(),
ExtraVersionOption(version_style=None),
HelpOption(),
],
)
@option_group(
"Package manager selection options",
Expand Down

0 comments on commit f705825

Please sign in to comment.