python

package
v2.9.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractPackageNameFromSetupPy

func ExtractPackageNameFromSetupPy(setuppyFilePath, pythonExecutablePath string) (string, error)

Get the project-name by running 'egg_info' command on setup.py and extracting it from 'PKG-INFO' file.

Types

type PipInstallCommand

type PipInstallCommand struct {
	*PythonCommand
}

func NewPipInstallCommand

func NewPipInstallCommand() *PipInstallCommand

func (*PipInstallCommand) CommandName

func (pic *PipInstallCommand) CommandName() string

func (*PipInstallCommand) Run

func (pic *PipInstallCommand) Run() (err error)

func (*PipInstallCommand) ServerDetails

func (pic *PipInstallCommand) ServerDetails() (*config.ServerDetails, error)

type PipNativeCommand

type PipNativeCommand struct {
	PythonCommand
}

func NewPipNativeCommand

func NewPipNativeCommand() *PipNativeCommand

NewPipNativeCommand represents any pip command which is not "install".

func (*PipNativeCommand) CommandName

func (pnc *PipNativeCommand) CommandName() string

func (*PipNativeCommand) Run

func (pnc *PipNativeCommand) Run() (err error)

func (*PipNativeCommand) ServerDetails

func (pnc *PipNativeCommand) ServerDetails() (*config.ServerDetails, error)

type PipenvInstallCommand

type PipenvInstallCommand struct {
	*PythonCommand
}

func NewPipenvInstallCommand

func NewPipenvInstallCommand() *PipenvInstallCommand

func (*PipenvInstallCommand) CommandName

func (peic *PipenvInstallCommand) CommandName() string

func (*PipenvInstallCommand) Run

func (peic *PipenvInstallCommand) Run() (err error)

func (*PipenvInstallCommand) ServerDetails

func (peic *PipenvInstallCommand) ServerDetails() (*config.ServerDetails, error)

type PipenvNativeCommand

type PipenvNativeCommand struct {
	PythonCommand
}

func NewPipenvNativeCommand

func NewPipenvNativeCommand() *PipenvNativeCommand

NewPipNativeCommand represents any pip command which is not "install".

func (*PipenvNativeCommand) CommandName

func (penc *PipenvNativeCommand) CommandName() string

func (*PipenvNativeCommand) Run

func (penc *PipenvNativeCommand) Run() (err error)

func (*PipenvNativeCommand) ServerDetails

func (penc *PipenvNativeCommand) ServerDetails() (*config.ServerDetails, error)

type PythonCommand

type PythonCommand struct {
	// contains filtered or unexported fields
}

func (*PythonCommand) GetCmd

func (pc *PythonCommand) GetCmd() *exec.Cmd

func (*PythonCommand) GetEnv

func (pc *PythonCommand) GetEnv() map[string]string

func (*PythonCommand) GetErrWriter

func (pc *PythonCommand) GetErrWriter() io.WriteCloser

func (*PythonCommand) GetStdWriter

func (pc *PythonCommand) GetStdWriter() io.WriteCloser

func (*PythonCommand) SetArgs

func (pc *PythonCommand) SetArgs(arguments []string) *PythonCommand

func (*PythonCommand) SetCommandName

func (pc *PythonCommand) SetCommandName(commandName string) *PythonCommand

func (*PythonCommand) SetRepo

func (pc *PythonCommand) SetRepo(repo string) *PythonCommand

func (*PythonCommand) SetServerDetails

func (pc *PythonCommand) SetServerDetails(serverDetails *config.ServerDetails) *PythonCommand

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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