pypidiff

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: 13 Imported by: 0

Documentation

Overview

Package pypidiff implements the "pypidiff" CLI command.

It renders the same METADATA that "gowheels pypi" would write into a wheel, fetches the current metadata from PyPI's JSON API, and emits the full local text followed by a unified diff. Exit code 0 means no differences; exit code 1 means at least one field differs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	*root.Config

	// Metadata flags — mirror the subset of pypi flags that affect METADATA.
	Name        string
	PackageName string
	Summary     string
	LicenseExpr string
	URL         string

	// ReadmePath and NoReadme mirror the pypi command's readme flags.
	// ReadmePath empty → auto-detect (README.md/.rst/.txt/README in CWD).
	// NoReadme true → no long description, matching --no-readme behaviour.
	ReadmePath string
	NoReadme   bool

	// Version pins the PyPI release to compare against; empty means latest.
	Version string

	// GitHub release-mode flags (metadata auto-population only).
	Repo        string
	GitHubToken string

	// ModDir is used only for go.mod URL auto-detection.
	ModDir string

	Flags   *ff.FlagSet
	Command *ff.Command
}

Config holds the configuration for the pypidiff command.

func New

func New(parent *root.Config) *Config

New creates and registers the pypidiff command with the given parent config.

Jump to

Keyboard shortcuts

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