The pkginfo utility

Extracts package metadata from Python setup scripts.

All operations are performed on setup.py in the current directory unless -f is specified.

Usage

pkginfo.py [options] format[, format, ...]

Options

Specifying FILE

-f <FILE>, --file <FILE>

Specify a setup FILE to use instead of setup.py.

Miscellaneous

-h, --help

Show a help message and exit.

-l, --list-keys

List available metadata keys in FILE and exit.

-V, --version

Show program’s version number and exit.

Formatting metadata

pkginfo.py [-f FILE] format

Example output:

Annabel:base ryan$ pkginfo.py 'dist/{name}-{version}.tar.gz'
dist/draxoft.base-0.1.tar.gz

Listing metadata keys

pkginfo.py [-f FILE|specific options] -l

Example output:

Annabel:base ryan$ bin/pkginfo.py -lt
Available metadata keys:
 * author (str)
 * author_email (str)
 * classifiers (list)
 * cmdclass (dict)
 * description (str)
 * download_url (str)
 * long_description (str)
 * name (str)
 * package_dir (dict)
 * packages (list)
 * provides (list)
 * scripts (list)
 * url (str)
 * version (str)

Specific options

-t, --show-types

Show types when listing available metadata keys.

-v, --show-values

Show values when listing available metadata keys.

Table Of Contents

Previous topic

Welcome to draxoft.pkginfo’s documentation!

Next topic

The pkginfo module

This Page