Repository navigation
Add uv inline script dependency metadata (PEP 723) - #2
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds PEP 723 inline script metadata blocks (uv-compatible) to the repo’s standalone Python utilities so they can be run with uv run while automatically resolving their Python/runtime dependencies.
Changes:
- Added
# /// scriptmetadata blocks specifyingrequires-pythonanddependenciesfor each utility. - Declared per-script third-party dependencies (e.g.,
trimesh,pymeshlab,pyrender,numpy,matplotlib) inline at the top of the scripts.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| mesh2glb.py | Adds PEP 723 metadata for running the mesh→GLB converter via uv with pymeshlab/trimesh. |
| glbutils.py | Adds PEP 723 metadata for uv to provision trimesh when using this helper module as a script. |
| glbthumb.py | Adds PEP 723 metadata listing rendering/plotting deps (pyrender, numpy, matplotlib, trimesh). |
| glbquery.py | Adds PEP 723 metadata for uv execution with trimesh. |
| glb2mesh.py | Adds PEP 723 metadata for running the GLB→mesh converter via uv with pymeshlab/trimesh. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
No description provided.