There is no indication in the documentation that you can specify multiple links for the same package dependency: https://setuptools.readthedocs.io/en/latest/userguide/dependency_management.html#dependencies-that-aren-t-in-pypi
Use Case — Authentication using multiple methods for Github (Token or SSH)
Authenticating a private repo in GitHub can be done with either an SSH key or GitHub token. In
setup.py, you can specify it with very different URLs.
install_requires = [ "mypkg @ git+ssh://[email protected]/org/[email protected]", "mypkg @ git+https://[email protected]/org/[email protected]", ]
How do I write a
pyproject.toml) file such so that both authentication (whichever available) are an option for the user.
Source: Python Questions