wheel

package
v0.0.0-...-a0a3655 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

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

Jump to

Keyboard shortcuts

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