mirror of
https://git.centos.org/centos/centpkg.git
synced 2025-02-24 00:32:55 +00:00
skeleton init file defining commands, mark them all NotImplemented so we can enable them one-by-one
This commit is contained in:
parent
7816b3a15d
commit
2fb8a5ce03
1 changed files with 119 additions and 0 deletions
119
src/centpkg/__init__.py
Normal file
119
src/centpkg/__init__.py
Normal file
|
@ -0,0 +1,119 @@
|
||||||
|
import pyrpkg
|
||||||
|
|
||||||
|
from . import cli
|
||||||
|
|
||||||
|
class Commands(pyrpkg.Commands):
|
||||||
|
def __init__(self, path, lookaside, lookasidehash, lookaside_cgi,
|
||||||
|
gitbaseurl, anongiturl, branchre, kojiconfig,
|
||||||
|
build_client, user=None, dist=None, target=None,
|
||||||
|
quiet=False):
|
||||||
|
|
||||||
|
super(Commands,self).__init__(path, lookaside, lookasidehash,
|
||||||
|
lookaside_cgi, gitbaseurl, anongiturl,
|
||||||
|
branchre, kojiconfig, build_client,
|
||||||
|
user, dist, target,
|
||||||
|
quiet)
|
||||||
|
|
||||||
|
|
||||||
|
# These are the commands defined in the base pyrpkg.Commands class
|
||||||
|
def load_kojisession(self, *args, **kwargs):
|
||||||
|
raise NotImplementedError("This command is not yet implemented in centpkg")
|
||||||
|
|
||||||
|
def add_tag(self, *args, **kwargs):
|
||||||
|
raise NotImplementedError("This command is not yet implemented in centpkg")
|
||||||
|
|
||||||
|
def clean(self, *args, **kwargs):
|
||||||
|
raise NotImplementedError("This command is not yet implemented in centpkg")
|
||||||
|
|
||||||
|
def clone(self, *args, **kwargs):
|
||||||
|
raise NotImplementedError("This command is not yet implemented in centpkg")
|
||||||
|
|
||||||
|
def clone_with_dirs(self, *args, **kwargs):
|
||||||
|
raise NotImplementedError("This command is not yet implemented in centpkg")
|
||||||
|
|
||||||
|
def commit(self, *args, **kwargs):
|
||||||
|
raise NotImplementedError("This command is not yet implemented in centpkg")
|
||||||
|
|
||||||
|
def delete_tag(self, *args, **kwargs):
|
||||||
|
raise NotImplementedError("This command is not yet implemented in centpkg")
|
||||||
|
|
||||||
|
def get_latest_commit(self, *args, **kwargs):
|
||||||
|
raise NotImplementedError("This command is not yet implemented in centpkg")
|
||||||
|
|
||||||
|
def gitbuildhash(self, *args, **kwargs):
|
||||||
|
raise NotImplementedError("This command is not yet implemented in centpkg")
|
||||||
|
|
||||||
|
def import_srpm(self, *args, **kwargs):
|
||||||
|
raise NotImplementedError("This command is not yet implemented in centpkg")
|
||||||
|
|
||||||
|
def list_tag(self, *args, **kwargs):
|
||||||
|
raise NotImplementedError("This command is not yet implemented in centpkg")
|
||||||
|
|
||||||
|
def new(self, *args, **kwargs):
|
||||||
|
raise NotImplementedError("This command is not yet implemented in centpkg")
|
||||||
|
|
||||||
|
def patch(self, *args, **kwargs):
|
||||||
|
raise NotImplementedError("This command is not yet implemented in centpkg")
|
||||||
|
|
||||||
|
def pull(self, *args, **kwargs):
|
||||||
|
raise NotImplementedError("This command is not yet implemented in centpkg")
|
||||||
|
|
||||||
|
def push(self, *args, **kwargs):
|
||||||
|
raise NotImplementedError("This command is not yet implemented in centpkg")
|
||||||
|
|
||||||
|
def sources(self, *args, **kwargs):
|
||||||
|
raise NotImplementedError("This command is not yet implemented in centpkg")
|
||||||
|
|
||||||
|
def switch_branch(self, *args, **kwargs):
|
||||||
|
raise NotImplementedError("This command is not yet implemented in centpkg")
|
||||||
|
|
||||||
|
def file_exists(self, *args, **kwargs):
|
||||||
|
raise NotImplementedError("This command is not yet implemented in centpkg")
|
||||||
|
|
||||||
|
def upload_file(self, *args, **kwargs):
|
||||||
|
raise NotImplementedError("This command is not yet implemented in centpkg")
|
||||||
|
|
||||||
|
def build(self, *args, **kwargs):
|
||||||
|
raise NotImplementedError("This command is not yet implemented in centpkg")
|
||||||
|
|
||||||
|
def clog(self, *args, **kwargs):
|
||||||
|
raise NotImplementedError("This command is not yet implemented in centpkg")
|
||||||
|
|
||||||
|
def compile(self, *args, **kwargs):
|
||||||
|
raise NotImplementedError("This command is not yet implemented in centpkg")
|
||||||
|
|
||||||
|
def giturl(self, *args, **kwargs):
|
||||||
|
raise NotImplementedError("This command is not yet implemented in centpkg")
|
||||||
|
|
||||||
|
def koji_upload(self, *args, **kwargs):
|
||||||
|
raise NotImplementedError("This command is not yet implemented in centpkg")
|
||||||
|
|
||||||
|
def install(self, *args, **kwargs):
|
||||||
|
raise NotImplementedError("This command is not yet implemented in centpkg")
|
||||||
|
|
||||||
|
def lint(self, *args, **kwargs):
|
||||||
|
raise NotImplementedError("This command is not yet implemented in centpkg")
|
||||||
|
|
||||||
|
def local(self, *args, **kwargs):
|
||||||
|
raise NotImplementedError("This command is not yet implemented in centpkg")
|
||||||
|
|
||||||
|
def mock_config(self, *args, **kwargs):
|
||||||
|
raise NotImplementedError("This command is not yet implemented in centpkg")
|
||||||
|
|
||||||
|
def mockbuild(self, *args, **kwargs):
|
||||||
|
raise NotImplementedError("This command is not yet implemented in centpkg")
|
||||||
|
|
||||||
|
def upload(self, *args, **kwargs):
|
||||||
|
raise NotImplementedError("This command is not yet implemented in centpkg")
|
||||||
|
|
||||||
|
def prep(self, *args, **kwargs):
|
||||||
|
raise NotImplementedError("This command is not yet implemented in centpkg")
|
||||||
|
|
||||||
|
def srpm(self, *args, **kwargs):
|
||||||
|
raise NotImplementedError("This command is not yet implemented in centpkg")
|
||||||
|
|
||||||
|
def unused_patches(self, *args, **kwargs):
|
||||||
|
raise NotImplementedError("This command is not yet implemented in centpkg")
|
||||||
|
|
||||||
|
def verify_files(self, *args, **kwargs):
|
||||||
|
raise NotImplementedError("This command is not yet implemented in centpkg")
|
Loading…
Add table
Reference in a new issue