This repository was archived by the owner on Nov 22, 2026. It is now read-only.
Repository navigation
Releases
Releases · amarbaro/mojo-subprocess
mojo-subprocess v0.1.2
mojo-subprocess-public v0.1.2
Released: 2026-11-08 · Commit: 5cb7dca · Previous: v0.1.1
What it does
Python's subprocess.run for Mojo: capture, input, timeout, cwd, env, check.
Highlights
- Packaging only: the conda recipe pins
mojo-compilerto the minor the package was built with (<1.3.0a0), so it cannot be installed on a Mojo it does not load on.
Changes
Changed
recipe.yaml:mojo-compilerrun dependency pinned to the build's minor (<1.3.0a0).
Verified
| Check | Result |
|---|---|
pkg-conda dry run on the version commit (H1-H3,H6) |
NOT RUN: blocked, a dependency is not on a channel yet (H7); recipe-only change |
Known limits
- Packages are built on one Mojo minor only; see the package protocol.
Upgrade / run
None: no API change.
Commits
5cb7dcabuild: bump version to 0.1.2ea9b57dbuild: recipe pins mojo-compiler to the build's minor
mojo-subprocess v0.1.1
mojo-subprocess-public v0.1.1
Released: 2026-11-07 · Tag: v0.1.1 · Previous: v0.1.0
What it does
Python's subprocess.run for Mojo: capture, input, timeout, cwd, env, check.
Highlights
- Docs only: CHANGELOG names no home path.
Changes
Changed
CHANGELOG.mdand the release notes name no home path.
Verified
| Check | Result |
|---|---|
mojo-lib-audit on this tree |
PASS |
gh-publish --check (ci-local) |
OK |
Known limits
- As in v0.1.0.
Upgrade / run
None: no code or API change.
Commits
git log v0.1.0..v0.1.1
mojo-subprocess v0.1.0
mojo-subprocess v0.1.0
What it does
Python's subprocess.run for Mojo: capture, input, timeout, cwd, env, check.
Highlights
- Deadlock-free on large outputs: one poll loop over all pipes plus a pidfd.
run(["true"])in about 0.4 ms; 0.6 GB/s through a pipe.
Changes
- First release:
run,check_output(stderr passes through to the parent),CompletedProcess. close_stdin(child reads an empty stdin, EOF, like Pythoninput=b"") andcapture_stderr(False leaves stderr on the parent's fd 2).
Verified
scripts/ci.shPASS on Mojo 1.2.0 and 1.3.0.dev2026110305: 4 scenarios byte-identical with Python subprocess (codes, signals, floods, input, cwd/env, errors), each twice; 6/6 mutants.
Known limits
- Linux only (posix_spawn file actions with addchdir_np, pidfd). No
Popenstreaming API, no shell=True, no stdin from a file. - Needs glibc >= 2.29 (
posix_spawn_file_actions_addchdir_np). The program is looked up in the PATH of the parent's environment, not ofenv=.
Upgrade / run
- Add
mojo-subprocess(pullsmojo-posix), thenfrom subprocess import run. Tryexamples/quickstart.mojo.
Commits
- All commits up to tag
v0.1.0:git log v0.1.0.