Dependency handling with deptry for missing or unused or other checks
January 6, 2025
Initially I wondered how it handled cases where the distribution name differed from the package name, but the tool needs to be installed in the virtual environment that it is referencing, and then it looks at the installed packages and extracts the metadata, which is used to get the package name from the top_level.txt
file - https://github.com/fpgmaas/deptry/blob/29f14556d0f6d2432d45fdf9e369224ea7fcf8b4/python/deptry/dependency.py#L105.