feat(skill): add uv/PEP 723 support to docx-official skill#1739
Merged
Conversation
Add inline script metadata (PEP 723) to all Python scripts so `uv run` resolves dependencies automatically without manual install. Update all command examples in documentation to use `uv run scripts/...` as the primary invocation path, preserving `python3 -m pip install` as the fallback for environments without uv.
…nit option Pin lxml>=4.9 and python-docx>=1.0 in inline script metadata. Add a note about uv init as an alternative for persistent workspaces.
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
docx-official, enablinguv run scripts/...to resolve dependencies automatically without manual installuv runpython3 -m pip installas fallback for non-uv environmentslxml>=4.9,python-docx>=1.0)uv initas an alternative for persistent workspaces with lockfileFollow-up (separate PRs)
runtime/subpackage — may needuv initapproach instead)render_pdf.py,render_slides.py,contact_sheet.pyimport from localsoffice_bridge.py