Repository navigation
Fix exit codes and Windows runner scripts; migrate to uv, click and rich 15 - #14
Merged
Merged
Conversation
- A command that exits with a non-zero code fails its task. Its targets are removed from the history, so they are built again next time. - Inline runner scripts are written to a temporary file that is closed before running, since Windows doesn't allow another process to open it while we have it open. - Test on Linux, macOS and Windows, with Python 3.11 and 3.13. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- pyproject.toml uses standard [project] metadata with a hatchling build and a `dev` dependency group. Runtime dependency constraints are the same as in the published 0.2.4. - CI and the PyPI deploy use uv. Tests run on Python 3.11, 3.13 and 3.15 on Linux, macOS and Windows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The `brei` command uses click, with the same options as before. argh and rich-argparse are no longer needed. - Errors about a missing workflow are shown as click errors, instead of a traceback, and name `brei.toml` and `-i` correctly. - rich >=15.0.0, <16. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
stdout) counted as a success. The failed task's targets are removed from the history, so a partly written target is built again next time.runnerwere written to aNamedTemporaryFilethat stayed open while the runner read it, which Windows doesn't allow. The file is now closed before running and removed afterwards.pyproject.tomluses standard[project]metadata, a hatchling build and adevdependency group, anduv.lockreplacespoetry.lock.docs/index.mdsay uv instead of Poetry.breicommand uses click, with the same options as before.arghandrich-argparseare replaced byrich-click, which keeps the help and errors rich-formatted, as in Entangled.loom.tomland a-foption; they now saybrei.tomland-i.rich>=15.0.0,<16(it was<14). Entangled's test suite passes with this Brei and rich 15.0.0.uv build.The Brei fixes are made in
docs/tasks.mdand tangled intobrei/task.py..entangled/filedb.jsonwas regenerated withentangled reset, because it came from Entangled 2.1.10.Tests
test_failing_commandcovers a failing inline runner script and a failing one-liner. Both fail without the fix.test_loom.pynow runs on Windows: it skipsos.sync()where that doesn't exist, andtest_runtimeuses thepythonrunner instead ofbash.🤖 Generated with Claude Code