poetry

package
v0.0.0-...-9878773 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VersionCmd           command = "poetry run python -V"
	ModulesCmd           command = "poetry run pip list -v --format json"
	MetadataCmd          command = "poetry run pip show {PACKAGE}"
	InstallRootModuleCmd command = "poetry install"
)

assume poetry will take care of python version might be python2 or python3

Variables

This section is empty.

Functions

This section is empty.

Types

type Poetry

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

func New

func New() *Poetry

New ...

func (*Poetry) GetMetadata

func (m *Poetry) GetMetadata() plugin.Metadata

Get Metadata ...

func (*Poetry) GetPackageDetails

func (m *Poetry) GetPackageDetails(packageName string) (string, error)

func (*Poetry) GetRootModule

func (m *Poetry) GetRootModule(path string) (*meta.Package, error)

Get Root Module ...

func (*Poetry) GetVersion

func (m *Poetry) GetVersion() (string, error)

Get Version ...

func (*Poetry) HasModulesInstalled

func (m *Poetry) HasModulesInstalled(path string) error

Has Modules Installed ...

func (*Poetry) IsValid

func (m *Poetry) IsValid(path string) bool

Is Valid ...

func (*Poetry) ListModulesWithDeps

func (m *Poetry) ListModulesWithDeps(path string, globalSettingFile string) ([]meta.Package, error)

List Modules With Deps ...

func (*Poetry) ListUsedModules

func (m *Poetry) ListUsedModules(path string) ([]meta.Package, error)

List Used Modules...

func (*Poetry) LoadModuleList

func (m *Poetry) LoadModuleList(path string) error

func (*Poetry) PushRootModuleToVenv

func (m *Poetry) PushRootModuleToVenv() (bool, error)

func (*Poetry) SetRootModule

func (m *Poetry) SetRootModule(path string) error

Set Root Module ...

Jump to

Keyboard shortcuts

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