How to add multiple dependency URLs to setuptools for the same package?

  python, setuptools

There is no indication in the documentation that you can specify multiple links for the same package dependency:

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, 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 (or pyproject.toml) file such so that both authentication (whichever available) are an option for the user.

Source: Python Questions