MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / get_local_packages

Function get_local_packages

etc/scripts/utils_thirdparty.py:1815–1820  ·  view source on GitHub ↗

Return the list of all PypiPackage objects built from a local directory. Return an empty list if the package cannot be found.

(directory=THIRDPARTY_DIR)

Source from the content-addressed store, hash-verified

1813
1814
1815def get_local_packages(directory=THIRDPARTY_DIR):
1816 """
1817 Return the list of all PypiPackage objects built from a local directory. Return
1818 an empty list if the package cannot be found.
1819 """
1820 return list(PypiPackage.packages_from_dir(directory=directory))
1821
1822
1823################################################################################

Callers 3

clean_about_filesFunction · 0.85
find_problemsFunction · 0.85

Calls 1

packages_from_dirMethod · 0.80

Tested by

no test coverage detected