Technically it gets the version from the named distribution’s metadata - usually the version kwarg to setuptools.setup() in setup.py. This can be different if setup.py dynamically appends SCM information to the hard-coded version number. Take a look at github.com/dave-shawley/setupext-g... for an example.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.