pypi

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package pypi implements the "pypi" subcommand.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	*root.Config

	// Package identity
	Name        string
	PackageName string
	EntryPoint  string

	// Metadata
	Summary     string
	LicenseExpr string
	LicensePath string
	ReadmePath  string
	NoReadme    bool
	URL         string

	// Version
	Version   string
	PyVersion string

	// Platform selection
	PlatformFilter string

	// Output / upload
	OutputDir string
	Upload    bool
	PyPIURL   string
	PyPIToken string

	// Mode: "release", "local", or "build"; inferred from flags when empty.
	Mode string

	// Release mode (--mode release or --repo provided)
	Repo        string
	Assets      string
	Cache       string
	GitHubToken string

	// Local mode (--mode local or --artifact provided)
	Artifacts []string

	// Build mode (--mode build or --package / --mod-dir provided)
	Package string
	ModDir  string
	LDFlags string

	Flags   *ff.FlagSet
	Command *ff.Command
}

Config holds the configuration for the pypi subcommand.

func New

func New(parent *root.Config) *Config

New creates and registers the pypi subcommand with the given parent config.

Jump to

Keyboard shortcuts

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