Self-contained guibuild script deps; gate PyPI publish on all GUI builds

This commit is contained in:
2026-09-24 05:07:34 +00:00
parent d01bf1d88f
commit 8b0c7a7af1
3 changed files with 40 additions and 12 deletions
+11 -2
View File
@@ -1,11 +1,20 @@
#!/usr/bin/env -S uv run
# /// script
# requires-python = ">=3.14"
# dependencies = [
# "mediahive[gui]",
# ]
#
# [tool.uv.sources]
# mediahive = { path = "../" }
# ///
"""Build the desktop GUI application and package it with Velopack.
Usage:
uv run scripts/guibuild.py
This runs in the project environment where dependencies
are available via pyproject.toml.
Self-contained: inline script dependencies above make uv resolve the
package (with the gui extra) plus this script's own direct imports.
This script:
1. Reads the version from pyproject.toml