py2pack - Man Page

Generate Distribution Packages from Python Packages on PyPI

Synopsis

py2pack [-h] [--version] {search | help | show | list | fetch | generate} ...

Commands

The following commands are available:

The fetch Command

py2pack fetch  name [version]

Downloads a package from PyPI and stores it in the current directory. Optionally you can specify a version number.

The generate Command

py2pack generate [-h] [-t {fedora.spec | opensuse.dsc | opensuse.spec}] [-f FILENAME] name [version]

Creates a SPEC or DSC file for a specific distribution.

The list Command

py2pack list [-h]

Gives a list of all Python modules available on PyPI.

The search Command

py2pack search [-h] {name}

Gives a list of all Python modules found in name.

The show Command

py2pack show [-h] {name} [version]

Shows the DOAP[1] record for the given name and version (optionally). The output is a Python dictionary.

Examples

Creating a package from a Python module involves the following steps:

  1. Search for your favorite Python module, for example, :

    $ py2pack search pylint
    searching for package pylint...
    found logilab.pylintinstaller-0.15.2
    found plpylint-0.1.2
    found pylint-0.22.0
  2. Download

    $ py2pack fetch
    downloading package pylint-0.22.0...
    from http://pypi.python.org/packages/source/p/pylint/pylint-0.22.0.tar.gz
  3. Create a SPEC file, for example, for openSUSE:

    $ py2pack generate -t opensuse.spec -f python-pylint.spec pylint
  4. Check the SPEC file python-pylint.spec and adapt it to your needs.

Authors

Sascha Peilicke <sascha@peilicke.de>

Developer

Thomas Schraitle

Manpage author

Notes

1.

DOAP
http://usefulinc.com/doap

Info

07/19/2011 http://github.com/saschpe/py