python

package
v2.57.2 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 License: Apache-2.0 Imports: 26 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigPoetryRepo added in v2.56.6

func ConfigPoetryRepo(url, username, password, configRepoName string) error

func GetPypiRemoteRegistryFlag added in v2.56.6

func GetPypiRemoteRegistryFlag(tool pythonutils.PythonTool) string

func GetPypiRepoUrl added in v2.56.6

func GetPypiRepoUrl(serverDetails *config.ServerDetails, repository string, isCurationCmd bool) (string, error)

Get the pypi repository embedded credentials URL (https://<user>:<password/token>@<your-artifactory-url>/artifactory/api/pypi/<repo-name>/simple)

func GetPypiRepoUrlWithCredentials added in v2.56.6

func GetPypiRepoUrlWithCredentials(serverDetails *config.ServerDetails, repository string, isCurationCmd bool) (*url.URL, string, string, error)

Get the pypi repository url and the credentials.

func RunConfigCommand added in v2.57.0

func RunConfigCommand(buildTool project.ProjectType, args []string) error

func RunPoetryConfig added in v2.57.0

func RunPoetryConfig(url, username, password, configRepoName string) error

Types

type PipCommand added in v2.22.0

type PipCommand struct {
	PythonCommand
}

func NewPipCommand added in v2.22.0

func NewPipCommand() *PipCommand

func (*PipCommand) CommandName added in v2.22.0

func (pc *PipCommand) CommandName() string

func (*PipCommand) GetCmd added in v2.22.0

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

func (*PipCommand) GetEnv added in v2.22.0

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

func (*PipCommand) GetErrWriter added in v2.22.0

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

func (*PipCommand) GetStdWriter added in v2.22.0

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

func (*PipCommand) Run added in v2.22.0

func (pc *PipCommand) Run() (err error)

func (*PipCommand) ServerDetails added in v2.22.0

func (pc *PipCommand) ServerDetails() (*config.ServerDetails, error)

func (*PipCommand) SetArgs added in v2.22.0

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

func (*PipCommand) SetCommandName added in v2.22.0

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

func (*PipCommand) SetRepo added in v2.22.0

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

func (*PipCommand) SetServerDetails added in v2.22.0

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

func (*PipCommand) UpdateDepsChecksumInfoFunc added in v2.22.0

func (pc *PipCommand) UpdateDepsChecksumInfoFunc(dependenciesMap map[string]entities.Dependency, srcPath string) error

type PipenvCommand added in v2.22.0

type PipenvCommand struct {
	PythonCommand
}

func NewPipenvCommand added in v2.22.0

func NewPipenvCommand() *PipenvCommand

func (*PipenvCommand) CommandName added in v2.22.0

func (pc *PipenvCommand) CommandName() string

func (*PipenvCommand) GetCmd added in v2.22.0

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

func (*PipenvCommand) GetEnv added in v2.22.0

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

func (*PipenvCommand) GetErrWriter added in v2.22.0

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

func (*PipenvCommand) GetStdWriter added in v2.22.0

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

func (*PipenvCommand) Run added in v2.22.0

func (pc *PipenvCommand) Run() (err error)

func (*PipenvCommand) ServerDetails added in v2.22.0

func (pc *PipenvCommand) ServerDetails() (*config.ServerDetails, error)

func (*PipenvCommand) SetArgs added in v2.22.0

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

func (*PipenvCommand) SetCommandName added in v2.22.0

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

func (*PipenvCommand) SetRepo added in v2.22.0

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

func (*PipenvCommand) SetServerDetails added in v2.22.0

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

func (*PipenvCommand) UpdateDepsChecksumInfoFunc added in v2.22.0

func (pc *PipenvCommand) UpdateDepsChecksumInfoFunc(dependenciesMap map[string]entities.Dependency, srcPath string) error

type PoetryCommand added in v2.22.0

type PoetryCommand struct {
	PythonCommand
}

func NewPoetryCommand added in v2.22.0

func NewPoetryCommand() *PoetryCommand

func (*PoetryCommand) CommandName added in v2.22.0

func (pc *PoetryCommand) CommandName() string

func (*PoetryCommand) GetCmd added in v2.22.0

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

func (*PoetryCommand) GetEnv added in v2.22.0

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

func (*PoetryCommand) GetErrWriter added in v2.22.0

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

func (*PoetryCommand) GetStdWriter added in v2.22.0

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

func (*PoetryCommand) Run added in v2.22.0

func (pc *PoetryCommand) Run() (err error)

func (*PoetryCommand) ServerDetails added in v2.22.0

func (pc *PoetryCommand) ServerDetails() (*config.ServerDetails, error)

func (*PoetryCommand) SetArgs added in v2.22.0

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

func (*PoetryCommand) SetCommandName added in v2.22.0

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

func (*PoetryCommand) SetPypiRepoUrlWithCredentials added in v2.22.0

func (pc *PoetryCommand) SetPypiRepoUrlWithCredentials() error

func (*PoetryCommand) SetRepo added in v2.22.0

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

func (*PoetryCommand) SetServerDetails added in v2.22.0

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

func (*PoetryCommand) UpdateDepsChecksumInfoFunc added in v2.22.0

func (pc *PoetryCommand) UpdateDepsChecksumInfoFunc(dependenciesMap map[string]entities.Dependency, srcPath string) error

type PythonCommand

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

func NewPythonCommand added in v2.12.3

func NewPythonCommand(pythonTool pythonutils.PythonTool) *PythonCommand

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) Run added in v2.12.3

func (pc *PythonCommand) Run() (err error)

func (*PythonCommand) ServerDetails added in v2.12.3

func (pc *PythonCommand) ServerDetails() (*config.ServerDetails, error)

func (*PythonCommand) SetArgs

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

func (*PythonCommand) SetCommandName

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

func (*PythonCommand) SetPypiRepoUrlWithCredentials added in v2.12.3

func (pc *PythonCommand) SetPypiRepoUrlWithCredentials() error

func (*PythonCommand) SetRepo

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

func (*PythonCommand) SetServerDetails

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

func (*PythonCommand) UpdateDepsChecksumInfoFunc added in v2.12.3

func (pc *PythonCommand) UpdateDepsChecksumInfoFunc(dependenciesMap map[string]entities.Dependency, srcPath string) error

type TwineCommand added in v2.56.0

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

func NewTwineCommand added in v2.56.0

func NewTwineCommand(commandName string) *TwineCommand

func (*TwineCommand) CommandName added in v2.56.0

func (tc *TwineCommand) CommandName() string

func (*TwineCommand) Run added in v2.56.0

func (tc *TwineCommand) Run() (err error)

func (*TwineCommand) ServerDetails added in v2.56.0

func (tc *TwineCommand) ServerDetails() (*config.ServerDetails, error)

func (*TwineCommand) SetArgs added in v2.56.0

func (tc *TwineCommand) SetArgs(args []string) *TwineCommand

func (*TwineCommand) SetServerDetails added in v2.56.0

func (tc *TwineCommand) SetServerDetails(serverDetails *config.ServerDetails) *TwineCommand

func (*TwineCommand) SetTargetRepo added in v2.56.0

func (tc *TwineCommand) SetTargetRepo(targetRepo string) *TwineCommand

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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