Upgrade notes
Changes that can make a working setup stop working after an hpm upgrade, newest first. The changelog has every change; this page has only the ones that need action.
Use 0.40.1 or newer. 0.40.0 is a security release that closed several ways a cloned project, a registry or an archive could write outside hpm’s directories or run commands; 0.40.1 fixes a Windows regression in it.
0.40
- Plain
httpis refused for API registries, download URLs and URL dependencies, except to the local machine. Serve them overhttps. - Git registry URLs must be
https://,ssh://,file://,git@host:pathor a local path.git://andhttp://are refused. Indexes are cloned again, into~/.hpm/registry/<digest>/; the old~/.hpm/registry/<name>/directories can be deleted. - A project’s
.hpm/config.tomlmay set only[install].[storage],[projects],[signing]and[[registries]]there are ignored with a warning. Put them in~/.hpm/config.toml, and declare a project’s registries in itshpm.toml. hpm installstops on an unreadablehpm.lockinstead of replacing it. Fix or delete the file.--frozen-lockfilerequires a checksum in the lock for every registry and URL dependency. Runhpm installonce without the flag and commit the result.- A URL dependency must match its archive. The key and
versionmust equal thepathandversionin the archive’shpm.toml, andversionmust be a semantic version. [python_dependencies]entries are plain requirements. Direct URLs (name @ url), environment markers and characters outside version specifiers fail the manifest load.- Zip archives must use stored or deflated entries. Repack an archive made with another compression method.
[stage]place rules: atowith.., a leading/, a drive, a backslash or a colon fails the manifest load, and a staged file whose name contains a colon or backslash is refused.- Symlinks pointing outside the package no longer pack or dev-install. Replace the link with the file.
- A project whose
.hpmor.hpm/packagesis a symlink or junction no longer installs. Make it a real directory. - On Windows,
hpm runarguments may not contain", a line break, or a%NAME%reference to a set variable. - The first Python install after upgrading downloads a newer
uv.
0.39
hpm packnames the archive after the slug:{slug}-{version}[-{platform}].zip, not the display name. Read the path fromhpm pack --json.
0.38
- Unknown keys in a dependency table are errors.
registy = "..."oroptinal = trueused to be dropped silently. The rule applies to everyhpm.tomlhpm reads, including packages already in the store. - Exit codes changed.
hpm auditexits 1 on an integrity failure, andhpm registry updateexits 1 when a registry could not be refreshed. A flag value hpm does not accept is a usage error, exit 2. hpm --output json updateneeds--dry-runor--yes.- Global flags
-v,-q,--colorand-Cwork on either side of the subcommand.--output <format>goes before it. hpm initno longer writes a rootpackage.json.
0.29
- Generated package files are named
{creator}.{slug}.json. The next install renames them; nothing to do unless a launcher referred to the old{slug}.jsonnames. registry = "<name>"on a dependency is authoritative. It no longer falls back to other registries.
0.28: old manifests no longer load
The manifest format used before 0.16 is rejected, as is any unknown section
or key. If hpm.toml fails with an unknown field named houdini, env,
dev or native, rewrite those sections:
| Old | New |
|---|---|
[houdini] with min_version = "20.5" | [compat] with houdini = ">=20.5" |
[env], and [dev.env] for the same key | One [runtime] entry. Where the two differed, give value one variant per install_source (see conditional values). |
[native] with platforms = [...] and [native.<platform>] files = [...] | [compat] platforms = [...] and [stage.platform.<platform>] place = [{ from, to }] |
Other changes in 0.28:
- The manifest flag is
-m/--manifeston every command;-p/--packageis gone. - A Git registry must use the
creator/sluglayout, and platform tags must be the full identifiers (linux-x86_64, notLINUX).
Houdini versions
Houdini 19.x and 20.0 to 20.4 are not supported: their Python versions are past end of life, and hpm refuses to build an environment for them.