Find SCM using pypidb
I have built https://github.com/jayvdb/pypidb which finds the SCM repo for almost any PyPI package. The methodology is to not trust/rely-on the links provided in the PyPI metadata, and also it doesnt include explicit mappings which would also be brittle.
Currently I am checking all packages in the PyPI top 4000, Fedora and openSUSE, and there are very few packages where the correct active development project is not found. For some packages it returns a webpage if there doesnt appear to be any online SCM for it, especially archaic packages, but the default behaviour is to return no value if a reliable result cant be identified.
The main benefit for upt would be providing a reliable source URL in the generated files, however there are other benefits such as being able to get tarballs from the SCM (GitHub) instead of PyPI because PyPI sdists are often broken, and the one I am most interested in is being able to reliably get the tests in order to be able to use them in the RPM build (c.f. https://github.com/openSUSE/py2pack/issues/110).
If any of this sounds useful, or there are better applications for it, I would be happy to take a crack at integrating it into upt-pypi, probably as an optional feature while it is still getting polished.