luci: go.chromium.org/luci/vpython/wheel Index | Files

package wheel

import "go.chromium.org/luci/vpython/wheel"

Index

Package Files

wheel.go

func WriteRequirementsFile Uses

func WriteRequirementsFile(path string, wheels []Name) (err error)

WriteRequirementsFile writes a valid "requirements.txt"-style pip requirements file containing the supplied wheels.

The generated requirements will request the exact wheel senver version (using "==").

type Name Uses

type Name struct {
    Distribution string
    Version      string
    BuildTag     string
    PythonTag    string
    ABITag       string
    PlatformTag  string
}

Name is a parsed Python wheel name, defined here: https://www.python.org/dev/peps/pep-0427/#file-name-convention

{distribution}-{version}(-{build tag})?-{python tag}-{abi tag}-\ {platform tag}.whl .

func ParseName Uses

func ParseName(v string) (wn Name, err error)

ParseName parses a wheel Name from its filename.

func ScanDir Uses

func ScanDir(dir string) ([]Name, error)

ScanDir identifies all wheel files in the immediate directory dir and returns their parsed wheel names.

func (*Name) String Uses

func (wn *Name) String() string

Package wheel imports 5 packages (graph) and is imported by 2 packages. Updated 2018-08-14. Refresh now. Tools for package owners.