Skip to content

ewoks install: add bootstrap shell scripts - #347

Closed
woutdenolf wants to merge 2 commits into
fix_poetry_active_environmentfrom
ewoks_install_bootstrap
Closed

woutdenolf wants to merge 2 commits into
fix_poetry_active_environmentfrom
ewoks_install_bootstrap

Conversation

@woutdenolf

@woutdenolf woutdenolf commented Oct 8, 2026 •

Copy link
Copy Markdown
Member

PR summary

Closes #341. Install a workflow environment with nothing but a package manager:

curl -LsSf https://ewoks.readthedocs.io/en/stable/ewoks-install.sh | sh -s -- demo.json --package-manager-name uv
  • ewoks-install.sh / .ps1 install the ewoks version of the workflow in a cached bootstrap environment and run ewoks install with the remaining arguments (--print-command only prints it).
  • Workflow requirements store the ewoks version.
  • ewoks install prints an execute command that does not need ewoks outside the environment.

AI Disclosure

  • No AI used
  • AI tool Claude used to create the shell scripts, docs and tests.

@woutdenolf
woutdenolf requested a review from a team October 8, 2026 12:23
Comment on lines +46 to +49
# Version of an object in a JSON file, for example `"ewoks": {"version": "7.0.0"}`
json_version() {
tr -d '\n\r' <"$1" | sed -n "s/.*\"$2\"[[:space:]]*:[[:space:]]*{[[:space:]]*\"version\"[[:space:]]*:[[:space:]]*\"\([^\"]*\)\".*/\1/p"
}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This only works for JSON files, not YAML or OWS. Not sure how the handle that.

@woutdenolf
woutdenolf force-pushed the ewoks_install_bootstrap branch from 4cd8a10 to 8839a78 Compare October 8, 2026 12:29
@codecov

codecov Bot commented Oct 8, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 85.71429% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/ewoks/__main__.py 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@woutdenolf
woutdenolf deleted the branch fix_poetry_active_environment October 8, 2026 12:54
@woutdenolf woutdenolf closed this Oct 8, 2026
@woutdenolf
woutdenolf removed the request for review from a team October 8, 2026 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant