Skip to content

PEP or other official document about (mandatory) use of "requires_python" and "classifier" (with Python version) fields? #3816

Answered by abravalheri
buhtz asked this question in Q&A
Discussion options

You must be logged in to vote

They are not mandatory. The only metadata that is mandatory is name (and somehow version, but version can be dynamic). Reference: https://packaging.python.org/en/latest/specifications/declaring-project-metadata/.

Remark: I personally think requires-python is preferred over classifiers because tools are more likely to enforce requires-python.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by buhtz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants