Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TypePoetry api.DependencyManagerType = typePoetry("Poetry") TypePipenv api.DependencyManagerType = typePipenv("Pipenv") TypeRequirementsTxt api.DependencyManagerType = typeRequirementsTxt("requirements.txt") TypeSetupPy api.DependencyManagerType = typeSetupPy("setup.py") )
Functions ¶
Types ¶
type Pipenv ¶
func (Pipenv) Dependencies ¶
func (Pipenv) HasDependency ¶
func (Pipenv) HasDevDependency ¶
func (Pipenv) Type ¶
func (p Pipenv) Type() api.DependencyManagerType
type Pipfile ¶
type Pipfile struct { Packages *toml.Tree `toml:"packages"` DevPackages *toml.Tree `toml:"dev-packages"` }
type Poetry ¶
type Poetry struct {
Config *PoetryConfig
}
func (Poetry) Dependencies ¶
func (Poetry) HasDependency ¶
func (Poetry) HasDevDependency ¶
func (Poetry) Type ¶
func (p Poetry) Type() api.DependencyManagerType
type PoetryConfig ¶
type PoetryConfig struct { Dependencies *toml.Tree `toml:"dependencies"` DevDependencies *toml.Tree `toml:"dev-dependencies"` Group struct { Dev struct { Dependencies *toml.Tree `toml:"dependencies"` } `toml:"dev"` } `toml:"group"` }
type PyProjectTOML ¶
type PyProjectTOML struct { Tool struct { Black *toml.Tree `toml:"black,omitempty"` ISort *toml.Tree `toml:"isort,omitempty"` Poetry *PoetryConfig `toml:"poetry,omitempty"` } `toml:"tool"` BuildSystem struct { BuildBackend string `toml:"build-backend"` } `toml:"build-system"` }
func ReadPyProjectTOML ¶
func ReadPyProjectTOML(dir string) (*PyProjectTOML, error)
type RequirementsTxt ¶
func (RequirementsTxt) Dependencies ¶
func (p RequirementsTxt) Dependencies() []string
func (RequirementsTxt) HasDependency ¶
func (p RequirementsTxt) HasDependency(dependency string) bool
func (RequirementsTxt) HasDevDependency ¶
func (p RequirementsTxt) HasDevDependency(dependency string) bool
func (RequirementsTxt) Type ¶
func (p RequirementsTxt) Type() api.DependencyManagerType
type SetupPy ¶
func (SetupPy) Dependencies ¶
func (SetupPy) HasDependency ¶
func (SetupPy) HasDevDependency ¶
func (SetupPy) Type ¶
func (p SetupPy) Type() api.DependencyManagerType
Click to show internal directories.
Click to hide internal directories.