Re:PYX: The next step in Python packaging
by mwarkentin on Thursday August 14, 2025 @07:10PM
(#44906809)
Uv solves this (with some new standards). ./script.py will now install the python version, create a venv, and install dependencies (very quickly) if they don’t exist already.
#!/usr/bin/env -S uv run --script # /// script # requires-python = ">=3.12" # dependencies = [ # "ffmpeg-normalize", # ] # ///