https://packaging.python.org/en/latest/specifications/inline-script-metadata Thanks to @henryiii for the heads-up on this.