Back to

Package wheel

Latest Go to latest

The latest major version is .

Published: Aug 13, 2020 | License: Apache-2.0 | Module:


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

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:

{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

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier