Can I check the version of a package from a git repository using pkg_resources?

57 Views Asked by At

Can I use pkg_resources to check the version of a package from a git repository?

When I use the code pkg_resources.require("git+https://github.com/example/example@a1b2c34#egg=example"), it fails to parse it.

Is there a better way to programmatically check the version of a package from a git repository to know whether it needs to be installed?

0

There are 0 best solutions below