Skip to main content

setuptools_setup_py_python_requires

Function setuptools_setup_py_python_requires 

Source
pub fn setuptools_setup_py_python_requires(setup_py: &Path) -> Option<String>
Expand description

Read the python_requires specifier a legacy setup.py declares.

This is setuptools’ spelling of pyproject.toml’s requires-python, and it is what selects the standard-library semantic pack for a project that has no PEP 621 manifest. The script is read, never executed: only a literal string passed to a top-level call to an imported setup binding counts, and two calls that disagree declare nothing.