pip-toolsとextra-index-url
pip-compile --no-emit-index-urlでextra-index-urlを出力しないようにできるらしい
TODO:要検証
To compile requirements.in, I specify extra-index-url on the CL. This stores --extra-index-url <URL> in requirements.txt, which works fine, when I run pip install -r requirements.txt.
However. if I build with python -m build or use the editable install pip install -e ., setuptools complains:
setuptools.extern.packaging.requirements.InvalidRequirement: Expected package name at the start of dependency specifier
--extra-index-url <URL>
it is not good practise to store information like extra-index-url in the repo/package itself