Specifying the minimum python version required for a module in pip -


is there way specify minimum python version required installing module in pip?

i trying publish package pypi.

python setup.py sdist upload -r pypi 

is command using. in setup.py there no way specify minimum python version (in case python 3.5) needed run module.

you can specify version of python required project using:

python_requires='>=3.5' 

the above code must specified in setup.py ,also versions 9.0.0 , higher of pip recognize python_requires metadata.

additionally in setup.py specify dependences:

setup( install_requires=['dependent functions,classes,etc'], ) 

Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -