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

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -