Python API

gpypi – Main package

gpypi.sdist_ebuild – Distutils command

class gpypi.sdist_ebuild.sdist_ebuild(dist)

Bases: distutils.cmd.Command

argparse_config = {'overwrite': True}
default_format = {'nt': '', 'posix': 'ebuild'}
description = 'create an ebuild file for Gentoo Linux'
finalize_options()
initialize_options()
path_to_distutils_conf = '/home/docs/checkouts/readthedocs.org/user_builds/g-pypi/envs/latest/lib/python2.7/distutils/distutils.cfg'
classmethod register()

Writes gpypi project into distutils commmand_packages settings.

run()
user_options = [('config-file=', 'c', 'GPyPi configuration file [default: /etc/gpypi]'), ('dist-dir=', 'd', 'directory to put the source distribution archive(s) in [default: dist]')]

gpypi.cli – Command line handling

gpypi.config – Configuration handling

gpypi.ebuild – Ebuild generation module

gpypi.enamer – Utilities for metadata conversion

gpypi.excgpypi specific Exceptions

Exceptions module

exception gpypi.exc.GPyPiConfigurationError

Bases: gpypi.exc.GPyPiException

exception gpypi.exc.GPyPiCouldNotCreateEbuildPath

Bases: gpypi.exc.GPyPiException

Raised when directory for an ebuild could not be created.

exception gpypi.exc.GPyPiCouldNotUnpackEbuild

Bases: gpypi.exc.GPyPiException

Raised if unpacking failed.

exception gpypi.exc.GPyPiException

Bases: exceptions.Exception

Core exception class, all exception inherit from this class.

exception gpypi.exc.GPyPiInvalidAtom

Bases: gpypi.exc.GPyPiException

Raised when determining Portage Atom did not succeed.

exception gpypi.exc.GPyPiInvalidParameter

Bases: gpypi.exc.GPyPiException

Raised CLI parameter is not valid.

exception gpypi.exc.GPyPiNoDistribution

Bases: gpypi.exc.GPyPiException

Raised if unpacked directory could not be found.

exception gpypi.exc.GPyPiNoSetupFile

Bases: gpypi.exc.GPyPiException

Raised if no setup.py was found.

exception gpypi.exc.GPyPiOverlayDoesNotExist

Bases: gpypi.exc.GPyPiException

exception gpypi.exc.GPyPiValidationError

Bases: gpypi.exc.GPyPiException

gpypi.portage_utils – Portage utilities

gpypi.workflow – Generate manifest, metadata, changelog ...

gpypi.tests – Unittests package

gpypi.tests.test_sdist_ebuild

gpypi.tests.test_cli

gpypi.tests.test_config

gpypi.tests.test_ebuild

gpypi.tests.test_enamer

gpypi.tests.test_portage_utils

gpypi.tests.test_pypi

gpypi.tests.test_workflow