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.
Click to show internal directories.
Click to hide internal directories.