Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Portable Python Manager

A self-contained PowerShell 7.x manager for downloading, verifying, installing, configuring, updating, switching, backing up, and uninstalling Portable Mode installations of Python on Windows (x64, arm64, & x86) — without Administrator privileges.

Key Capabilities

  • Live Version Selector: Fetches official PSF standalone ZIP releases from https://www.python.org/ftp/python/index-windows.json, lists Latest Stable, recent minor lines, and prereleases, supports patch browsing (b <minor>), free-threaded (3.XXt) builds, and exact versions, and defaults to Latest Stable on Enter.
  • SHA-256 Verified Archives: Validates every official PythonCore ZIP against the hash.sha256 embedded in index-windows.json before extracting.
  • True Zero-Leak Portability: Stores pip.ini, pip download cache, user-site packages, portable virtual environments, and REPL history inside <InstallDir>\data\ and writes an auto-managed Lib\site-packages\sitecustomize.py fallback.
  • Non-Admin PEP 514 Integration: Registers HKCU\Software\Python\PythonCore\<Tag> (PEP 514), App Paths, User PATH, portable User env vars, and optional "Open Python Prompt Here" Explorer context menus strictly under HKCU.
  • Side-by-Side Versions & Switching: Install multiple Python versions side by side and switch the active one in a single step.

Where to Start

Getting Started

Prerequisites

  • Windows 10 or Windows 11 (x64, arm64, or x86)
  • PowerShell 7.x (pwsh.exe) in PATH
    winget install Microsoft.PowerShell
    

Note: Administrator privileges are never required. All registry keys, PATH entries, and environment variables are scoped strictly to the current user (HKCU / User).


First Installation (Interactive)

  1. Extract the release .zip (or clone the repository) to a folder of your choice.
  2. Run main.bat and select 1. Download & Install Portable Python.
  3. The manager queries https://www.python.org/ftp/python/index-windows.json and displays available official PythonCore releases with Latest Stable listed as Option 1 ([DEFAULT]):
    • Press Enter to install Latest Stable.
    • Enter a menu number (1-10) to install a specific minor line.
    • Type b 3.14 (or b 3.14t) to browse individual patch releases in that minor line.
    • Type an exact version or spec (e.g., 3.13.17, freethreaded, prerelease).
  4. Confirm or customize the target folder (e.g., D:\CLI\Python).
  5. The manager downloads the official ZIP, verifies its SHA-256 hash, extracts it, initializes <InstallDir>\data\, bootstraps pip offline via ensurepip, and configures User PATH, portable env vars, and PEP 514 HKCU registry keys.
  6. Open a new terminal window and verify:
    python --version
    pip --version
    

Portable Directory Layout

All mutable user state stays inside <InstallDir>\data\ and is preserved across in-place updates:

<InstallDir>\
├── python.exe / pythonw.exe
├── Scripts\                       (pip.exe & installed CLI scripts)
├── Lib\site-packages\
│   └── sitecustomize.py           (auto-managed zero-leak portability fallback)
├── python-portable.json           (manager metadata)
└── data\                          (preserved across all in-place updates)
    ├── pip.ini                    (PIP_CONFIG_FILE)
    ├── pip-cache\                 (PIP_CACHE_DIR)
    ├── user-site\                 (PYTHONUSERBASE)
    ├── venvs\                     (WORKON_HOME)
    └── python_history             (PYTHON_HISTORY)

Side-by-Side Installations

Use {minor} in config.ini (or pass -TargetDir) to keep multiple Python versions installed simultaneously:

pwsh -File src\install.ps1 -Version 3.14 -TargetDir "D:\CLI\Python-3.14"
pwsh -File src\install.ps1 -Version 3.13 -TargetDir "D:\CLI\Python-3.13"

# Switch active version (updates User PATH, portable env vars, and PEP 514 registry)
pwsh -File src\configure.ps1 -Mode SwitchActive -TargetDir "D:\CLI\Python-3.13"

Configuration (config.ini & python.ini)

Configuration is split into two files at the repository root:

  • config.ini — Manager behavior, default install path template, release selection, automation toggles, profile pointers, and log retention.
  • python.ini — Personal Python & pip preferences ([PipConfig], [Packages], [Venvs], and [Env]), which always override any optional profile in profiles\.

config.ini Reference

Leave any [General] toggle blank to be prompted interactively at runtime. Command-line flags always take precedence over config.ini.

[General]

KeyValuesDescription
DefaultInstallDirPath template or blankSupports {program_name}, {channel}, {major}, {minor}, {version}, {arch}. Example: D:\CLI\{program_name}-{minor}.
DefaultChannelstable, prerelease, freethreaded, <major.minor>, or blankLeave blank to display the live interactive version picker (Enter = Latest Stable).
DefaultVersionExact version (e.g. 3.14.10) or blankPins a specific release when set.
DefaultArchx64, arm64, x86Target Windows CPU architecture (default: x64).
VerifyChecksumtrue / falseValidates downloaded ZIP SHA-256 against index-windows.json hash.sha256 (default: true).
AutoBootstrapPiptrue / false / blankRuns bundled python -m ensurepip --default-pip if pip is missing.
AutoAddPathtrue / false / blankAdds <InstallDir> and <InstallDir>\Scripts to User PATH.
AutoAddRegistrytrue / false / blankRegisters PEP 514 HKCU\Software\Python\PythonCore\<Tag> and App Paths.
AutoSetPortableEnvtrue / false / blankSets PIP_CONFIG_FILE, PIP_CACHE_DIR, PYTHONUSERBASE, PYTHON_HISTORY, and WORKON_HOME.
AutoAddContextMenutrue / false / blankRegisters "Open Python Prompt Here" Explorer right-click menus under HKCU.
AutoConfigurePiptrue / false / blankApplies resolved [PipConfig] settings to <InstallDir>\data\pip.ini.
OverwriteExistingPipInitrue / falsefalse merges non-destructively (keeps existing user keys); true enforces INI keys.
AutoInstallPackagestrue / false / blankInstalls [Packages] from loaded INI profiles.
AutoCreateVenvstrue / false / blankCreates named portable virtual environments from [Venvs] under data\venvs\.

[Profiles] & [Logging]

KeyDescription
OptionalProfilesComma-separated profile names from profiles\ (or relative/absolute .ini paths). Leave blank to load none.
PythonConfigFilePersonal INI file (default: python.ini). Overrides any optional profiles.
LogRetentionDaysDays to keep daily log files under logs\ before automatic pruning (default: 30).
LogFilePrefixCustom prefix for logs\<prefix>-YYYY-MM-DD.log (blank uses the project folder name).

python.ini Reference

Supported path expansion tokens inside [PipConfig] and [Env] values:

  • {install_dir} — Portable Python root directory
  • {scripts_dir} — <InstallDir>\Scripts
  • {data_dir} — <InstallDir>\data
  • {pip_cache} — <InstallDir>\data\pip-cache
  • {user_site} — <InstallDir>\data\user-site
  • {venvs_dir} — <InstallDir>\data\venvs

Example python.ini:

[Profile]
Name = Personal Python Configuration
Description = Personal pip.ini settings, packages, portable venvs, and env overrides.

[PipConfig]
disable-pip-version-check = true
prefer-binary = true

[Packages]
uv
ruff
pytest

[Venvs]
create = dev, tools
upgrade_pip = true

[Env]
PYTHONUTF8 = 1

Optional Profiles & Package Packs (profiles\*.ini)

All files under profiles\ are strictly opt-in. They are loaded only when:

  1. Listed in OptionalProfiles inside config.ini (e.g. OptionalProfiles = portable-essentials, privacy, pkg-core),
  2. Passed on the CLI via -Preset (e.g. -Preset "strict-security,pkg-core"), or
  3. Selected interactively in configure.ps1 (Option 2).

When multiple profiles are combined, they merge in listed order, and your personal python.ini always has final precedence.


Built-In Settings Profiles

ProfilePurposeKey Settings
portable-essentialsEnforces portable defaults & UTF-8cache-dir = {pip_cache}, disable-pip-version-check = true, PYTHONUTF8 = 1
privacyReduces update pings & telemetrydisable-pip-version-check = true, PIP_DISABLE_PIP_VERSION_CHECK = 1, DO_NOT_TRACK = 1, JUPYTER_NO_TELEMETRY = 1, SCARF_NO_ANALYTICS = true
strict-securityHardens Python & pip behaviorprefer-binary = true, timeout = 15, retries = 3, PYTHONSAFEPATH = 1, PYTHONUTF8 = 1
fast-devFaster installs & cleaner worktreesprefer-binary = true, timeout = 20, retries = 2, PYTHONUTF8 = 1, PYTHONDONTWRITEBYTECODE = 1

Built-In Package Packs

ProfileIncluded Packages ([Packages])
pkg-coreuv, ruff, pytest, ipython, pip-audit
pkg-webfastapi, uvicorn, httpx, pydantic
pkg-datanumpy, pandas, rich, jupyterlab

Examples

# Fresh install with security profile + core developer packages
pwsh -File src\install.ps1 -Channel stable -Preset "strict-security,pkg-core"

# Apply a profile on-demand to an existing portable installation
pwsh -File src\configure.ps1 -Mode Settings -Preset "fast-dev" -Overwrite
pwsh -File src\configure.ps1 -Mode InstallPackages -Preset "pkg-web"

CLI Reference

All entrypoints require PowerShell 7.x (pwsh.exe) and can be invoked directly or via main.bat.


src\install.ps1

Downloads, verifies, extracts, bootstraps pip, and preconfigures a Portable Python installation.

ParameterTypeDescription
-TargetDirstringDestination folder (overrides config.ini DefaultInstallDir).
-Channelstringstable, prerelease, freethreaded, or <major.minor> (e.g. 3.14, 3.14t).
-VersionstringExact version (e.g. 3.14.10, 3.13.17, 3.15.0rc3).
-Archstringx64, arm64, or x86 (default: x64).
-FreeThreadedswitchSelects free-threaded (3.XXt) builds.
-PresetstringComma-separated profile names from profiles\ (overrides OptionalProfiles).
-SkipVerifyswitchSkips SHA-256 verification (not recommended).
-SkipPipBootstrapswitchSkips offline ensurepip bootstrap.
-SkipPathswitchSkips User PATH updates.
-SkipRegistryswitchSkips PEP 514 HKCU registry and App Paths registration.
-SkipPortableEnvswitchSkips portable User env vars.
-SkipContextMenuswitchSkips "Open Python Prompt Here" Explorer menus.
-SkipSettingsswitchSkips applying [PipConfig] settings.
-SkipPackagesswitchSkips installing [Packages].
-SkipVenvsswitchSkips creating [Venvs].
-OverwriteSettingsswitchOverwrites conflicting keys in data\pip.ini.
-ForceswitchProceeds without overwriting prompts.

src\update.ps1

Updates an existing Portable Python installation in-place while preserving <InstallDir>\data\.

ParameterTypeDescription
-TargetDirstringExisting portable Python folder (omit to auto-discover).
-ChannelstringTarget channel (stable, prerelease, freethreaded).
-VersionstringExplicit target version or minor line (e.g. 3.14 or 3.14.10).
-SkipVerifyswitchSkips SHA-256 verification.
-ForceswitchUpdates non-interactively (defaults to latest patch in the same minor line).

src\configure.ps1

Standalone configurator, venv manager, active version switcher, and JSON profile backup/restore tool.

ParameterTypeDescription
-TargetDirstringExisting portable Python folder (omit to auto-discover).
-ModestringInteractive (default), Status, Settings, InstallPackages, BootstrapPip, Venvs, AddPath, RemovePath, SwitchActive, AddRegistry, RemoveRegistry, AddContextMenu, RemoveContextMenu, CleanCache, ExportProfile, ImportProfile.
-PresetstringProfile name(s) for Settings, InstallPackages, or Venvs.
-ProfilePathstringJSON file path for ExportProfile / ImportProfile.
-OverwriteswitchOverwrites conflicting keys in data\pip.ini.

src\uninstall.ps1

Auto-discovers portable Python installations (including stale PATH/registry references) and removes integration or deletes the entire folder.

ParameterTypeDescription
-TargetDirstringTarget folder to clean up or remove (omit to auto-discover).
-RegistryOnlyswitchRemoves PEP 514 registry, App Paths, context menus, User PATH, and portable env vars only (keeps files).
-ForceswitchSkips interactive confirmation prompts.

Troubleshooting

pwsh.exe Was Not Found in PATH

Portable Python Manager intentionally requires PowerShell 7.x (#Requires -Version 7.0). Install it via winget:

winget install Microsoft.PowerShell

Then open a new terminal window and re-run main.bat.


python Opens Microsoft Store Instead of Portable Python

Windows includes App Execution Aliases (python.exe / python3.exe) under %LOCALAPPDATA%\Microsoft\WindowsApps that may appear earlier in User PATH:

  1. Run pwsh -File src\configure.ps1 -Mode SwitchActive to prepend your portable Python directory to User PATH, or
  2. Disable the Store stubs in Windows Settings -> Apps -> Advanced app settings -> App execution aliases (python.exe and python3.exe), then open a new terminal.

Changes to PATH or Env Vars Don’t Appear in Current Terminal

Windows processes inherit environment variables at launch. After installing or running -Mode SwitchActive, open a new terminal window so Explorer/terminal picks up the WM_SETTINGCHANGE broadcast.


pip Is Missing After Manual Extraction

Official PSF PythonCore ZIPs bundle ensurepip. Run:

pwsh -File src\configure.ps1 -Mode BootstrapPip

This bootstraps pip offline via python.exe -m ensurepip --default-pip and optionally upgrades it.


Binary Wheels Fail After a Cross-Minor In-Place Update (e.g. 3.14 -> 3.15)

CPython C-extension .pyd wheels and existing virtual environments are tied to a specific major.minor ABI.

  • Use src\update.ps1 Option 1 (same minor line, e.g. 3.14.9 -> 3.14.10) for seamless in-place updates.
  • When moving to a new minor line (3.14 -> 3.15), prefer a side-by-side folder (e.g. D:\CLI\Python-3.15), export your package list via configure.ps1 -Mode ExportProfile, and import it into the new installation.

Checking Verbose Logs

Every run appends timestamped DEBUG/TRACE diagnostics and exception stack traces to:

logs\<prefix>-YYYY-MM-DD.log

You can open the folder directly from main.bat Option 7. Open Logs Folder.

Architecture Overview

Portable Python Manager uses a strict 4-layer PowerShell 7.x architecture designed for zero external module dependencies, high performance via direct .NET APIs, and complete portability without Administrator elevation.


Directory & Layer Map

{ROOT}\
├── main.bat                        Interactive launcher (invokes pwsh.exe)
├── config.ini                      Manager settings & INI profile pointers
├── python.ini                      Personal [PipConfig], [Packages], [Venvs], [Env]
├── README.txt                      Standalone runtime doc (packaged in release ZIPs)
├── profiles\                       Opt-in active INI profiles (discovered dynamically)
├── logs\                           Auto-created daily verbose logs (30-day retention)
└── src\
    ├── install.ps1                 [Layer 4] CLI entrypoint: fresh install
    ├── update.ps1                  [Layer 4] CLI entrypoint: in-place binary update
    ├── configure.ps1               [Layer 4] CLI entrypoint: configurator & switcher
    ├── uninstall.ps1               [Layer 4] CLI entrypoint: removal & cleanup
    ├── core\                       [Layer 3] Domain logic & orchestration
    │   ├── config.ps1              INI parser, profile/python.ini loader & defaults
    │   ├── release.ps1             python.org index-windows.json, version picker & inspector
    │   ├── discovery.ps1           Multi-source portable install auto-discovery
    │   ├── settings.ps1            Portable data\ layout, sitecustomize.py, pip.ini & wizard
    │   └── packages.ps1            ensurepip bootstrap, scoped pip packages, venvs & cache
    ├── utility\                    [Layer 2] Low-level OS & I/O primitives
    │   ├── filesystem.ps1          HttpClient download, SHA-256, ZipFile extract, fast delete
    │   ├── path.ps1                User PATH & portable env var manager + broadcast
    │   └── registry.ps1            .NET Microsoft.Win32.Registry PEP 514 manager
    └── event\                      [Layer 1] Cross-cutting telemetry & UI
        ├── logger.ps1              Verbose daily file logger & retention pruner
        └── progress.ps1            Throttled inline wget-style progress bar

Dependency Flow

flowchart TD
    BAT["main.bat"] --> EP["Entrypoints: install / update / configure / uninstall"]
    EP --> CORE["src/core: config, release, discovery, settings, packages"]
    CORE --> UTIL["src/utility: filesystem, path, registry"]
    CORE --> EVT["src/event: logger, progress"]
    UTIL --> EVT
    EVT --> PROG["progress.ps1"]
  • Strict Acyclic Layering: Entrypoints dot-source all layers cleanly; library modules guard dot-sourcing via Get-Command checks so re-sourcing is idempotent.
  • Root Resolution Depth: Because src\core\config.ps1 and src\event\logger.ps1 reside two levels below {ROOT}, fallback $ScriptRoot computation always traverses two parent directories.

Key Architectural Decisions

1. Zero-Leak Portable Layout (data\ + sitecustomize.py)

Every installation creates data\pip-cache\, data\user-site\, data\venvs\, data\pip.ini, and writes an auto-managed Lib\site-packages\sitecustomize.py using os.environ.setdefault(...) pointing inside data\. Even if a user runs python.exe -m pip without User environment variables set, pip and REPL history stay strictly contained inside <InstallDir>\data\. Existing user-authored sitecustomize.py files are detected and never overwritten.

2. Pure .NET [Microsoft.Win32.Registry] with PEP 514

All registry operations use [Microsoft.Win32.Registry]::CurrentUser directly (CreateSubKey, OpenSubKey, SetValue, DeleteSubKeyTree, DeleteValue), registering official PEP 514 keys under HKCU\Software\Python\PythonCore\<Tag> alongside App Paths — requiring zero Administrator elevation and making portable copies discoverable by IDEs and py.

3. Exact Directory-Boundary Safety

All path-scoped operations prevent sibling prefix collisions (e.g. D:\CLI\Python vs D:\CLI\Python-3.14) using trailing separator checks ($Dir + "\") and regex boundary anchors.

Module & Function API Reference

Layer 1 — src\event\

src\event\progress.ps1

  • Test-ConsoleInteractive — Returns $true when stdout is an interactive console.
  • Clear-ProgressLine — Erases any active inline progress bar before printing a log line.
  • Show-WgetProgress -Task <string> -Percent <int> [-Stats <string>] [-ThrottleMs 75] [-Complete] — Renders a throttled inline progress bar with elapsed time.

src\event\logger.ps1

  • Resolve-ProjectRoot [-ScriptRoot <string>] — Resolves {ROOT} two directories above src\event\.
  • Initialize-Logger [-ScriptRoot] [-Component] [-RetentionDays 30] [-LogPrefix] [-Context] — Opens the daily log file, writes session metadata, and prunes expired logs.
  • Write-Log -Message <string> [-Level INFO|WARN|ERROR|SUCCESS|DEBUG|TRACE] — Writes timestamped lines to the log file and prints non-debug levels to stdout.
  • Write-ExceptionLog -ErrorRecord <ErrorRecord> [-Context <string>] — Logs message, exception type, inner exception, position, and stack trace.
  • Close-Logger [-Status <string>] — Appends session end footer with total duration.

Layer 2 — src\utility\

src\utility\filesystem.ps1

  • Invoke-FileDownloadWithProgress -Uri <string> -OutFile <string> [-TaskLabel] [-TimeoutMinutes 15] — Streams downloads via .NET HttpClient to a .part temp file before atomic rename.
  • Get-FileSha256 -FilePath <string> / Test-FileSha256 -FilePath <string> -ExpectedHash <string> — Computes and compares SHA-256 hashes.
  • Expand-ZipWithProgress -ZipPath <string> -DestinationPath <string> [-PreserveData] [-StripSingleTopDir] [-OnlyUnderPrefix] — Extracts .zip archives via .NET ZipFile with Zip Slip boundary guards and optional data\ / python-portable.json preservation.
  • Remove-FolderWithProgress -FolderPath <string> — Deepest-first .NET folder removal with progress.
  • Stop-PythonProcessesInDir -InstallDir <string> — Terminates processes whose executable path starts with $InstallDir\.

src\utility\path.ps1

  • Send-EnvironmentChangeBroadcast — Broadcasts WM_SETTINGCHANGE ("Environment").
  • Test-UserPathDirectory / Add-UserPathDirectory / Remove-UserPathEntry — Boundary-safe User PATH management.
  • Test-PythonPathEntries / Add-PythonPathEntries — Manages <InstallDir> and <InstallDir>\Scripts in User PATH.
  • Set-UserEnvVar / Set-PortablePythonEnvVars / Get-PortablePythonEnvStatus / Remove-PortablePythonEnvVarsForDir — Manages PIP_CONFIG_FILE, PIP_CACHE_DIR, PYTHONUSERBASE, PYTHON_HISTORY, and WORKON_HOME.

src\utility\registry.ps1

  • Test-RegistryValueMatchesDir -Value <string> -InstallDir <string> — Exact directory-boundary regex check.
  • Get-PythonPep514Tag -Version <string> [-Arch x64] [-FreeThreaded] — Formats PEP 514 registry tags (3.15, 3.15t, 3.15-arm64, 3.15-32).
  • Add-PythonRegistry / Test-PythonRegistry — Manages PEP 514 HKCU\Software\Python\PythonCore\<Tag> and App Paths (python.exe, pythonw.exe, pip.exe).
  • Add-PythonContextMenu / Test-PythonContextMenu / Remove-PythonContextMenu — Manages "Open Python Prompt Here" Explorer context menus under HKCU\Software\Classes.
  • Find-PythonPathsInRegistry / Remove-PythonAllRegistry — Targeted .NET registry scanner and boundary-safe cleaner.

Layer 3 — src\core\

src\core\config.ps1

  • Resolve-ConfigBool, Split-ListItems, Resolve-IniFilePath
  • Import-PythonIniFile -Path <string> — Parses [Profile], [PipConfig], [Packages], [Venvs], and [Env].
  • Get-ManagerConfig [-ScriptRoot <string>] — Loads config.ini, explicit OptionalProfiles, and personal PythonConfigFile.
  • Expand-InstallDirTokens / Get-TargetDir — Resolves {program_name}, {channel}, {major}, {minor}, {version}, {arch}.

src\core\release.ps1

  • Get-PythonVersionSortKey -VersionStr <string> — Produces semantic sortable version keys across stable and prerelease (a/b/rc) builds.
  • Get-PythonReleaseIndex [-IncludeOlder] [-ForceRefresh] — Queries https://www.python.org/ftp/python/index-windows.json and follows next pagination.
  • Get-AvailablePythonMinorReleases / Get-AvailablePythonVersionsForMinor
  • Resolve-PythonReleaseSpec / Select-PythonRelease
  • Test-PythonInstallDir / Test-PortableDataMode / Write-PortablePythonMetadata / Get-InstalledPythonInfo

src\core\discovery.ps1

  • Find-PythonInstalls [-Config <hashtable>] [-IncludeMissing] — Multi-source portable Python discovery excluding system/Store/Conda installs and venvs (pyvenv.cfg).
  • Format-InstallBadges / Select-DiscoveredInstall

src\core\settings.ps1

  • Get-PortablePipIniPath / Ensure-PortableDataLayout
  • Expand-PythonSettingTokens / Read-PipIniSettings / Apply-PipIniSettings
  • Get-PythonProfilesCatalog / Resolve-ConfiguredPythonSettings / Select-OptionalProfileInteractive / Invoke-InteractivePipWizard

src\core\packages.ps1

  • Invoke-PortablePythonCommand — Executes python.exe with process environment strictly scoped to <InstallDir>.
  • Ensure-PortablePip — Bootstraps pip offline via ensurepip and optionally upgrades pip.
  • Get-InstalledPipPackages / Install-PipPackagesBatch
  • Get-PortableVenvs / Invoke-VenvSetup / Clear-PortablePipCache

Extending Profiles & Workflows

Adding a New Optional Profile

Drop any .ini file into profiles\ — no PowerShell code changes are required. Get-PythonProfilesCatalog discovers it automatically.

[Profile]
Name = Corporate PyPI
Description = Configures internal PyPI mirror, trusted host, and proxy defaults.

[PipConfig]
index-url = https://pypi.internal.example/simple
trusted-host = pypi.internal.example
prefer-binary = true

[Packages]
uv
ruff
pytest

[Venvs]
create = dev
upgrade_pip = true

[Env]
REQUESTS_CA_BUNDLE = {data_dir}\corp-ca.pem

Adding a New configure.ps1 Mode

  1. Add the mode name to the [ValidateSet(...)] attribute on $Mode in src\configure.ps1.
  2. Add a corresponding branch in the switch ($Mode) dispatcher.
  3. Optionally expose it in the interactive menu and document it in docs\user\cli-reference.md and README.txt.

Release Packaging

Releases are automated by .github/workflows/release.yml when pushing a semantic version tag (v*.*.*) or triggering workflow_dispatch.

Strict Runtime Allowlist

Packaged .zip archives ship only runtime files:

  • README.txt
  • main.bat
  • config.ini
  • python.ini
  • profiles\**
  • src\**

Repository governance Markdown (*.md), docs\, .github\, logs\, and plan.txt are explicitly excluded and audited by the release workflow before zipping.

Artifacts Produced

  • portable-python-manager-<tag>.zip
  • portable-python-manager-<tag>.zip.sha256
  • Auto-generated release notes extracted from CHANGELOG.md