pyproject

package
v0.67.2 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2025 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependencies added in v0.59.0

type Dependencies struct {
	set.Set[string]
}

func (*Dependencies) UnmarshalTOML added in v0.59.0

func (d *Dependencies) UnmarshalTOML(data any) error

type Group added in v0.58.1

type Group struct {
	Dependencies Dependencies `toml:"dependencies"`
}

type Parser

type Parser struct {
}

Parser parses pyproject.toml defined in PEP518. https://peps.python.org/pep-0518/

func NewParser

func NewParser() *Parser

func (*Parser) Parse

func (p *Parser) Parse(r io.Reader) (PyProject, error)

type Poetry

type Poetry struct {
	Dependencies Dependencies     `toml:"dependencies"`
	Groups       map[string]Group `toml:"group"`
}

type Project added in v0.59.1

type Project struct {
	Dependencies Dependencies `toml:"dependencies"`
}

type PyProject

type PyProject struct {
	Tool    Tool    `toml:"tool"`
	Project Project `toml:"project"`
}

func (PyProject) MainDeps added in v0.59.1

func (p PyProject) MainDeps() set.Set[string]

MainDeps returns set of main deps `poetry` only uses 1 list of main dependencies `project.dependencies` (first priority) or `tool.poetry.dependencies` (if `project.dependencies` is missing)

type Tool

type Tool struct {
	Poetry Poetry `toml:"poetry"`
}

Jump to

Keyboard shortcuts

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