Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteRequirementsFile

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 "==").

    Types

    type Name

    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

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

        ParseName parses a wheel Name from its filename.

        func ScanDir

        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

          func (wn *Name) String() string

          Source Files