You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many common tools already support this, including uv: uv run some-script.py will automatically create a temporary virtual environment with the embedded requirements, and use it to run the script.
Some of the Python scripts in
scripts/
require packages to be installed (e.g. discord.py or pydantic).Let's use inline script metadata (PEP 723) to embed these requirements in the script files.
Many common tools already support this, including uv:
uv run some-script.py
will automatically create a temporary virtual environment with the embedded requirements, and use it to run the script.(
pip
does not yet support it, though: pypa/pip#12891.)Example:
The text was updated successfully, but these errors were encountered: