Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warn user on startup if requires-python is not met #268

Open
gy-mate opened this issue Dec 18, 2024 · 0 comments
Open

Warn user on startup if requires-python is not met #268

gy-mate opened this issue Dec 18, 2024 · 0 comments

Comments

@gy-mate
Copy link

gy-mate commented Dec 18, 2024

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 gy-mate/moodle-to-vikwikiquiz#17 for a user report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant