python

package
v1.31.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2026 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PythonPackageTypeIdentifier = "pypi://"

	CurationPipMinimumVersion = "23.0.0"
	PoetryNoInteractionFlag   = "--no-interaction"

	CurationPoetryMinimumVersion = "1.2.0"
)

Variables

This section is empty.

Functions

func BuildDependencyTree

func BuildDependencyTree(params technologies.BuildInfoBomGeneratorParams, technology techutils.Technology) (dependencyTree []*clientutils.GraphNode, uniqueDeps []string, downloadUrls map[string]string, err error)

func NormalizePypiName added in v1.31.0

func NormalizePypiName(name string) string

func ResolveVersionRange added in v1.31.0

func ResolveVersionRange(rangeSpec string, candidates []string) string

ResolveVersionRange returns the newest version from candidates satisfying rangeSpec. Returns "" if no candidate matches.

func SetPipVirtualEnvPath

func SetPipVirtualEnvPath() (restoreEnv func() error, err error)

Execute virtualenv command: "virtualenv venvdir" / "python3 -m venv venvdir" and set path

Types

type CvsBlockedError added in v1.31.0

type CvsBlockedError struct {
	Packages []PinnedRequirement
	Cause    error
}

CvsBlockedError is returned when CVS hides a pinned version from the simple index. Packages lists the blockers so the curation-audit command can recover policy details via the metadata-API fallback.

func (*CvsBlockedError) Error added in v1.31.0

func (e *CvsBlockedError) Error() string

func (*CvsBlockedError) Unwrap added in v1.31.0

func (e *CvsBlockedError) Unwrap() error

type PinnedRequirement added in v1.31.0

type PinnedRequirement struct {
	Name          string
	Version       string
	VersionRange  string
	ParentName    string
	ParentVersion string
}

PinnedRequirement is a blocker extracted from pip's failure output.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL