From 2d54806be2906ded0256dd6e822a2a57565efd92 Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Tue, 17 Nov 2026 20:08:20 +0000 Subject: [PATCH] Minor tweaks for release --- src/manage/commands.py | 14 +++++++++++--- src/manage/tagutils.py | 2 +- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/manage/commands.py b/src/manage/commands.py index bfe4f82..6bd5246 100644 --- a/src/manage/commands.py +++ b/src/manage/commands.py @@ -41,6 +41,8 @@ WELCOME = f"""!B!Python install manager was successfully updated to {__version__}.!W! +Configuration and runtime tags have been hardened, which may cause some unusual +(and likely incorrect) settings to fail. Please see !B!{CHANGELOG_URL}!W! for all changes. """ @@ -49,6 +51,8 @@ WELCOME_ARM64 = f"""!B!Python install manager was successfully updated to {__version__}.!W! The default platform on this PC is now !Y!-arm64!W! instead of !Y!-64!W!. +Configuration and runtime tags have been hardened, which may cause some unusual +(and likely incorrect) settings to fail. Please see !B!{CHANGELOG_URL}!W! for more details and all other changes. """ @@ -96,13 +100,14 @@ GLOBAL_OPTIONS_HELP_TEXT = fr"""!G!Global options: !B!(options must follow the command)!W! - -v, --verbose Increased output (!B!log_level={logging.INFO}!W!) + -v, --verbose Increased output (!B!log_level={logging.VERBOSE}!W!) -vv Further increased output (!B!log_level={logging.DEBUG}!W!) -q, --quiet Less output (!B!log_level={logging.WARN}!W!) -qq Even less output (!B!log_level={logging.ERROR}!W!) -y, --yes Always accept confirmation prompts (!B!confirm=false!W!) -h, -?, --help Show help for a specific command --config=!B!!W! Override configuration with JSON file + --log=!B!!W! Override log file location """ @@ -155,6 +160,8 @@ def execute(self): * 'path' to make a Path object, resolved against the config file's location * 'uri' to call 'as_uri()' (so it chains with 'path'), and ensure the argument is vaguely URI-shaped and minimally exploitable. +* 'sensitive' to avoid printing the value to logs files or consoles ('uri' + values always treat user/pass parts as sensitive) Arguments passed on the command line always override any config files. """ @@ -743,7 +750,7 @@ class ListCommand(BaseCommand): -f, --format=!B!!W! Specify list format, defaults to !B!table!W!. Pass !B!-f formats!W! for the full list of formats. - -1, --one Only display first result that matches the filter + -1, --one Display the default or best runtime matching the filter --online List runtimes available to install from the default index -s, --source=!B!!W! List runtimes from a particular index @@ -837,6 +844,7 @@ class InstallCommand(BaseCommand): Prepare an offline index with one or more runtimes -f, --force Re-download and overwrite existing install -u, --update Overwrite existing install if a newer version is available. + --repair Clean reinstalls an existing runtime --dry-run Choose runtime but do not install --refresh Update shortcuts and aliases for all installed versions. --configure Re-run the system configuration helper. @@ -850,7 +858,7 @@ class InstallCommand(BaseCommand): > py install --target=.\runtime 3.13-arm64 !B!EXAMPLE:!W! Clean reinstall of 3.13 -> py install --force 3.13 +> py install --repair 3.13 !B!EXAMPLE:!W! Refresh and replace all shortcuts > py install --refresh diff --git a/src/manage/tagutils.py b/src/manage/tagutils.py index 6fbf837..25aac7f 100644 --- a/src/manage/tagutils.py +++ b/src/manage/tagutils.py @@ -627,7 +627,7 @@ def tag_or_range(tag): tag = tag.lstrip(" =") if not tag: return CompanyTag("", "") - if tag[:1] in "<>!": + if tag[:1] in "<>!~": return TagRange(tag) if tag.lower() in ("default", "latest", "help"): raise ValueError(f"'{tag}' is not a valid tag or filter.")