requirements

package
v0.16.7 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const OverridesFile = "overrides.txt"
View Source
const RequirementsFile = "requirements.txt"

Variables

This section is empty.

Functions

func CurrentRequirements

func CurrentRequirements(tmpDir string) (string, error)

func GenerateRequirements

func GenerateRequirements(tmpDir string, path string, fileName string) (string, error)

func PackageName added in v0.15.2

func PackageName(pipRequirement string) string

func ReadRequirements added in v0.14.4

func ReadRequirements(path string) ([]string, error)

func SplitPinnedPythonRequirement added in v0.15.2

func SplitPinnedPythonRequirement(requirement string) (name string, version string, findLinks []string, extraIndexURLs []string, err error)

SplitPinnedPythonRequirement returns the name, version, findLinks, and extraIndexURLs from a requirements.txt line in the form name==version [--find-links=<findLink>] [-f <findLink>] [--extra-index-url=<extraIndexURL>]

func VersionSpecifier added in v0.15.7

func VersionSpecifier(pipRequirement string) string

func Versions added in v0.15.10

func Versions(pipRequirement string) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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