diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 8cd93bf..3d93e1d 100755 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -20,6 +20,10 @@ jobs: uses: actions/setup-python@v4 with: python-version: 3.9 + - name: Install system dependencies + run: | + sudo apt-get update -y + sudo apt-get install -y libopengl0 - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/glb2mesh.py b/glb2mesh.py index 0530c83..afa6c58 100644 --- a/glb2mesh.py +++ b/glb2mesh.py @@ -1,4 +1,11 @@ #! /usr/bin/env python +# /// script +# requires-python = ">=3.8" +# dependencies = [ +# "pymeshlab", +# "trimesh", +# ] +# /// """ Convert a GLB file to other mesh formats. """ diff --git a/glbquery.py b/glbquery.py index 5b97143..e9245d9 100755 --- a/glbquery.py +++ b/glbquery.py @@ -1,4 +1,10 @@ #! /usr/bin/env python +# /// script +# requires-python = ">=3.8" +# dependencies = [ +# "trimesh", +# ] +# /// """ Query a GLB file for information """ diff --git a/glbthumb.py b/glbthumb.py index 573291c..fa479f3 100644 --- a/glbthumb.py +++ b/glbthumb.py @@ -1,4 +1,13 @@ #! /usr/bin/env python +# /// script +# requires-python = ">=3.8" +# dependencies = [ +# "matplotlib", +# "numpy", +# "pyrender", +# "trimesh", +# ] +# /// """ Generate a thumbnail image of a GLB mesh. """ diff --git a/glbutils.py b/glbutils.py index d87fd6f..d5e5093 100644 --- a/glbutils.py +++ b/glbutils.py @@ -1,3 +1,9 @@ +# /// script +# requires-python = ">=3.8" +# dependencies = [ +# "trimesh", +# ] +# /// """ Utilities for working with glb files. """ import trimesh diff --git a/mesh2glb.py b/mesh2glb.py index 37131ef..6f5eb4c 100755 --- a/mesh2glb.py +++ b/mesh2glb.py @@ -1,4 +1,11 @@ #! /usr/bin/env python +# /// script +# requires-python = ">=3.8" +# dependencies = [ +# "pymeshlab", +# "trimesh", +# ] +# /// """ Convert a mesh file to a GLB file. """ import sys