Exemple #1
0
from rdopkg.action import Action, Arg

ACTIONS = [
    Action('kojibuild',
           help="build package in koji",
           steps=[
               Action('get_package_env', module='distgit'),
               Action('koji_build'),
           ]),
    Action('cbsbuild',
           help="build package in CBS",
           steps=[
               Action('get_package_env', module='distgit'),
               Action('cbs_build'),
           ],
           optional_args=[
               Arg('scratch',
                   action='store_true',
                   help='Perform a scratch build'),
           ]),
    Action('mockbuild',
           help="Run fedpkg/rhpkg mockbuild",
           steps=[
               Action('get_package_env', module='distgit'),
               Action('fedpkg_mockbuild'),
           ]),
]
Exemple #2
0
from rdopkg.action import Action, Arg

ACTIONS = [
    Action('info',
           atomic=True,
           help="show information about RDO packaging",
           optional_args=[
               Arg('pkgs',
                   positional=True,
                   nargs='*',
                   metavar='ATTR:REGEX',
                   help="show info about packages with ATTR matching REGEX"),
               Arg('apply_tag',
                   shortcut='-t',
                   help="apply overrides for selected tag"),
               Arg('force_fetch',
                   shortcut='-f',
                   action='store_true',
                   help="force fetch of info repo"),
               Arg('local_info',
                   shortcut='-l',
                   help="use local rdoinfo repo found in specified path"),
           ]),
    Action('info_tags_diff',
           atomic=True,
           help="find which tags have changed between HEAD~..HEAD in rdoinfo",
           optional_args=[
               Arg('local_info',
                   positional=True,
                   metavar='RDOINFODIR',
                   help="use local rdoinfo repo found in RDOINFODIR"),
Exemple #3
0
from rdopkg.action import Action, Arg

ACTIONS = [
    Action('review_patch',
           help="send patch(es) for review",
           optional_args=[
               Arg('local_patches_branch',
                   metavar='PATCHES_BRANCH',
                   positional=True,
                   nargs='?',
                   help="local patches branch with changes to review"),
           ]),
    Action('review_spec',
           help="send distgit (.spec file) change for review",
           optional_args=[
               Arg('branch',
                   metavar='DISTGIT_BRANCH',
                   positional=True,
                   nargs='?',
                   help="local distgit branch with changes to review"),
           ],
           steps=[
               Action('get_package_env', module='distgit'),
               Action('review_spec'),
           ]),
]
Exemple #4
0
from rdopkg.action import Action, Arg


ACTIONS = [
    Action('reqdiff', help="show diff of requirements.txt",
           steps=[
               Action('get_package_env', module='distgit'),
               Action('get_diff_range', module='distgit'),
               Action('reqdiff'),
           ],
           optional_args=[
               Arg('diff_range', positional=True, nargs='*', metavar='GIT_REF',
                   help="no args: diff between current and upstream; "
                        "1 arg: diff between current and supplied git ref; "
                        "2 args: diff between 1st and 2nd supplied git refs"),
           ],
           ),
    Action('reqcheck',
           help="inspect requirements.txt vs .spec Requires",
           steps=[
               Action('get_package_env', module='distgit'),
               Action('reqcheck'),
           ],
           optional_args=[
               Arg('spec', shortcut='-s', action='store_true',
                   help="output .spec Requires: for easy pasting"),
           ]),
    Action('reqquery',
           help="query RDO repos for versions defined in requirements.txt",
           required_args=[
               Arg('filter', positional=True, metavar='RELEASE(/DIST)',
Exemple #5
0
from rdopkg.action import Action, Arg

ACTIONS = [
    Action('clone',
           atomic=True,
           help="clone an RDO package distgit and setup remotes",
           required_args=[
               Arg('package',
                   positional=True,
                   metavar='PACKAGE',
                   help="RDO package to clone (see `rdopkg info`)"),
           ],
           optional_args=[
               Arg('use_master_distgit',
                   shortcut='-m',
                   action='store_true',
                   help="clone 'master-distgit'"),
               Arg('gerrit_remotes',
                   shortcut='-g',
                   action='store_true',
                   help="create branches "
                   "'gerrit-origin' and 'gerrit-patches'"),
               Arg('review_user',
                   shortcut='-u',
                   metavar='USER',
                   help="gerrit username for reviews"),
           ]),
    Action('pkgenv',
           atomic=True,
           help="show detected package environment",
           steps=[
Exemple #6
0
from rdopkg.action import Action, Arg

ACTIONS = [
    Action('coprbuild',
           atomic=True,
           help="build package in copr-jruzicka",
           steps=[
               Action('get_package_env', module='distgit'),
               Action('copr_check'),
               Action('make_srpm', module='distgit'),
               Action('copr_upload'),
               Action('copr_build'),
           ],
           optional_args=[
               Arg('release',
                   shortcut='-r',
                   help="OpenStack release (havana, icehouse, ...)"),
               Arg('dist',
                   shortcut='-d',
                   help="target distribution (fedora-20, epel-7, ...)"),
               Arg('fuser',
                   shortcut='-u',
                   help="Fedora user to upload srpm as to fedorapeople.org"),
           ]),
    Action('kojibuild',
           atomic=True,
           help="build package in koji",
           steps=[
               Action('get_package_env', module='distgit'),
               Action('koji_build'),
           ]),
Exemple #7
0
    'release_bump_index':
        ("specify which Release part to bump:\n"
         "-R MAJOR/-R MINOR/-R PATCH\n"
         "   to bump selected in MAJOR.MINOR.PATCH\n"
         "-R 1/-R 2/-R 3/-R 4/-R N\n"
         "   to bump 1./2./3./4./N. part (numeric index)\n"
         "-R last-numeric\n"
         "   to bump last numeric only Release part (default)"),
}


ACTIONS = [
    Action('clone',
           help="clone an RDO package distgit and setup remotes",
           required_args=[
               Arg('package', positional=True, metavar='PACKAGE',
                   help="RDO package to clone (see `rdopkg info`)"),
           ],
           optional_args=[
               Arg('use_master_distgit', shortcut='-m', action='store_true',
                   help="clone 'master-distgit'"),
               Arg('gerrit_remotes', shortcut='-g', action='store_true',
                   help="create branches "
                        "'gerrit-origin' and 'gerrit-patches'"),
               Arg('review_user', shortcut='-u', metavar='USER',
                   help="gerrit username for reviews"),
           ]),
    Action('pkgenv', help="show detected package environment",
           steps=[
               Action('get_package_env'),
               Action('show_package_env'),
           ]),