Documentation ¶
Index ¶
- Constants
- func ExtractPackageNameFromSetupPy(setuppyFilePath string) (string, error)
- func GetPackageNameFromSetuppy(srcPath string) (string, error)
- func GetPythonDependencies(tool PythonTool, srcPath, localDependenciesPath string) (dependenciesGraph map[string][]string, topLevelDependencies []string, ...)
- func UpdateDepsIdsAndRequestedBy(dependenciesMap map[string]buildinfo.Dependency, ...)
- type PythonTool
Constants ¶
View Source
const ( Pip = "pip" Pipenv = "pipenv" )
Variables ¶
This section is empty.
Functions ¶
func ExtractPackageNameFromSetupPy ¶
Get the project-name by running 'egg_info' command on setup.py and extracting it from 'PKG-INFO' file.
func GetPythonDependencies ¶
func UpdateDepsIdsAndRequestedBy ¶
func UpdateDepsIdsAndRequestedBy(dependenciesMap map[string]buildinfo.Dependency, dependenciesGraph map[string][]string, topLevelPackagesList []string, packageName, moduleName string)
Before running this function, dependency IDs may be the file names of the resolved python packages. Update build info dependency IDs and the requestedBy field. allDependencies - Dependency name to Dependency map dependenciesGraph - Dependency graph as built by 'pipdeptree' or 'pipenv graph' topLevelPackagesList - The direct dependencies packageName - The resolved package name of the Python project, may be empty if we couldn't resolve it moduleName - The input module name from the user, or the packageName
Types ¶
type PythonTool ¶
type PythonTool string
Click to show internal directories.
Click to hide internal directories.