How do I pin the Python version for a project?

Viewed 25

I understand that the standard way of communicating package depencencies for a Python project is the requirements.txt file. But is there a standard way of communicating the Python version to other developers?

In my case, the project uses 3.9 features so it cannot be older than that. Also, 3.10 causes mysterious problems in combination with some packages so I want to exclude it as well.

0 Answers
Related