How do I use python_requires
classifier in setup.py to require Python 2.7.* or 3.2+?
I have tried many configurations, including this one: ~=2.7,==3,!=3.0,!=3.1,<4
but none have worked
setup(name="my_package_name", python_requires='>3.5. 2', [...] Save this answer.
What is python setup py bdist_wheel? python setup.py bdist_wheel. This will build any C extensions in the project and then package those and the pure Python code into a . whl file in the dist directory.
The setup. cfg is an ini file, containing option defaults for setup.py commands. You can pretty much specify every keyword we used in the setup.py file in the new setup. cfg file and simply use the setup.py file as the command line interface.
python -m build uses the build module (which may in-turn read a setup.py file, if it exists) – OneCricketeer. Jul 28, 2021 at 1:18. 2. @OneCricketeer The doc of build module says build is roughly the equivalent of setup.py sdist bdist_wheel but with PEP 517 support, allowing use with projects that don't use setuptools.
This argument for setuptools
uses the PEP440 version specifiers spec, so you can ask for:
python_requires='>=2.7,!=3.0.*,!=3.1.*'
The commas ,
are equivalent to logical and operator.
Note that the metadata generated is only respected by pip>=9.0.0
(Nov 2016).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With