Skip to content
Advertisement

pip ignores python_requires field in setup

I have the following in my setup.cfg file:

JavaScript

Problem is that I created an enviroment with Python 3.7 and installation had no problems. Installation command:

JavaScript

Shouldn’t pip require a Python 3.8 enviroment?

Here is the test.PyPI link: PyPI project, and here the repo: GitHub repo

I know that the setup.cfg file is working because pip install packages in install_requires field and Trove Classifiers show in Test PyPI.

Complete setup.cfg file:

JavaScript

Advertisement

Answer

python_requires belongs to section [options]:

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement