Enforce minimum Python version #17
Labels
blocked
Issues blocked by other (upstream) issues
enhancement
New feature or request
publishing
Issues regarding how the app is distributed
Description
If the
requires-python
Trove classifier inpyproject.toml
is ignored and package is ran with Python <3.12
, the following error occurs at the end of the process:Reported by @TancsicsGergely on Discord
Version
2.0.2
Preferred solution
Build backends (
pipx
andshiv
usessetuptools
) should fail when buildingmoodle-to-vikwikiquiz
with a Python version that doesn't meet therequires-python
Trove classifier.Related: pypa/pipx#387
To implement this, submitting a PEP was hinted at by a CPython developer. The steps for this are:
Alternatives considered
Using
sys.version_info
to check the interpreter version. I think this isn't a good idea because it would require updating the minimum Python version in two separate files.The text was updated successfully, but these errors were encountered: