setup_requires needs to be specified in bothsetup.py and pyproject.toml.
The requirements.txt file should use -e . to install the module (and thus get the requirements). If a local or non-PyPi version of a module should be used to satisfy a requirement for either setup_requires or install_requires then it should also be specified in the requirements.txt file.
setup_requires
needs to be specified in bothsetup.py
andpyproject.toml
.The
requirements.txt
file should use-e .
to install the module (and thus get the requirements). If a local or non-PyPi version of a module should be used to satisfy a requirement for eithersetup_requires
orinstall_requires
then it should also be specified in therequirements.txt
file.Using
setup.py
is much clearer thansetup.cfg
and it looks like the file is going to get replaced bypyproject.toml
in the future, see https://github.com/pypa/setuptools/issues/1688Signed-off-by: Tim 'mithro' Ansell me@mith.ro