Build a debian package out of a GIT repository

Function git_archive create a compressed orig tarball in output_dir using git_archive
Function prepare_upstream_tarball Make sure we have an upstream tarball. This involves loooking in tarball_dir, symlinking or building it.
Function write_tree Write a tree of the index or working copy if necessary
Function export_source Export a version of the source tree when building in a separate directory
Function move_old_export move a build tree away if it exists
Function extract_orig extract orig tarball to export dir before exporting from git
Function source_vfs Init source package info either from git or from working copy
Function prepare_output_dir Prepare the directory where the build result will be put
Function pristine_tar_build_orig build orig using pristine-tar @return: True: orig tarball build, False: noop
Function get_upstream_tree Determine the upstream tree from the given options
Function git_archive_build_orig Build orig tarball using git-archive
Function guess_comp_type Guess compression type
Function setup_pbuilder setup everything to use git-pbuilder
Function disable_builder Disable builder (and postbuild hook)
Function disable_hooks Disable all hooks (except for builder)
Function changes_file_suffix No summary
Function build_parser Undocumented
Function parse_args Undocumented
Class Hook A hook run during the build
Function main Undocumented
def git_archive(repo, cp, output_dir, tmpdir_base, treeish, comp_type, comp_level, with_submodules):

create a compressed orig tarball in output_dir using git_archive

def prepare_upstream_tarball(repo, cp, options, tarball_dir, output_dir):

Make sure we have an upstream tarball. This involves loooking in tarball_dir, symlinking or building it.

def write_tree(repo, options):

Write a tree of the index or working copy if necessary

Parametersrepothe git repository we're acting on (type: GitRepository)
Returnsthe sha1 of the tree (type: str)
def export_source(repo, tree, source, options, dest_dir, tarball_dir):

Export a version of the source tree when building in a separate directory

Parametersrepothe git repository to export from (type: gbp.git.GitRepository)
sourcethe source package
optionsoptions to apply
dest_dirwhere to export the source to
tarball_dirwhere to fetch the tarball from in overlay mode
Returnsthe temporary directory
def move_old_export(target):

move a build tree away if it exists

def extract_orig(orig_tarball, dest_dir):

extract orig tarball to export dir before exporting from git

def source_vfs(repo, options, tree):

Init source package info either from git or from working copy

def prepare_output_dir(dir):

Prepare the directory where the build result will be put

def pristine_tar_build_orig(repo, cp, output_dir, options):

build orig using pristine-tar

ReturnsTrue: orig tarball build, False: noop
def get_upstream_tree(repo, cp, options):

Determine the upstream tree from the given options

def git_archive_build_orig(repo, cp, output_dir, options):

Build orig tarball using git-archive

Parameterscpthe changelog of the package we're acting on (type: ChangeLog)
output_dirwhere to put the tarball (type: Str)
optionsthe parsed options (type: dict of options)
Returnsthe tree we built the tarball from (type: str)
def guess_comp_type(repo, comp_type, cp, tarball_dir):

Guess compression type

def setup_pbuilder(options):

setup everything to use git-pbuilder

def disable_builder(options):

Disable builder (and postbuild hook)

def disable_hooks(options):

Disable all hooks (except for builder)

def changes_file_suffix(dpkg_args):
>>> changes_file_suffix(['-A'])
'all'
>>> changes_file_suffix(['-S'])
'source'
>>> changes_file_suffix([]) == du.get_arch()
True
def build_parser(name, prefix=None):
Undocumented
def parse_args(argv, prefix):
Undocumented
def main(argv):
Undocumented
API Documentation for git-buildpackage, generated by pydoctor at 2020-05-22 08:50:00.