shiv icon indicating copy to clipboard operation
shiv copied to clipboard

Warn user on startup if `requires-python` is not met

Open gy-mate opened this issue 10 months ago • 0 comments

I think that zipapps generated with shiv should warn users on start if the requires-python Trove classifier defined in pyproject.toml is not met by the user's Python environment. The warning might just be something like this:

shiv: Your Python version (x.xx) does not meet the zipapp's requirements (<>= x.xx). Please upgrade/downgrade it!
Do you want to continue anyway? The app might not behave as intended. (y/n)

See https://github.com/gy-mate/moodle-to-vikwikiquiz/issues/17 for a user report.

gy-mate avatar Dec 18 '24 14:12 gy-mate