From 7af6a93f1de65fec5df0724d4f10d3d0513076e7 Mon Sep 17 00:00:00 2001 From: Silvie Chlupova Date: May 11 2022 10:57:42 +0000 Subject: cli: Remove depraceted method Fixes: #2174 --- diff --git a/cli/copr_cli/main.py b/cli/copr_cli/main.py index 9c3da61..467bdb5 100644 --- a/cli/copr_cli/main.py +++ b/cli/copr_cli/main.py @@ -412,16 +412,6 @@ class Commands(object): data[arg] = getattr(args, arg) return self.process_build(args, self.client.build_proxy.create_from_custom, data) - @requires_api_auth - def action_build_distgit(self, args): - """ - Method called when the 'buildfedpkg' action has been selected by the user. - - :param args: argparse arguments provided by the user - """ - data = {"clone_url": args.clone_url, "committish": args.branch} - return self.process_build(args, self.client.build_proxy.create_from_scm, data) - def process_build(self, args, build_function, data, bar=None, progress_callback=None): username, project_dirname = self.parse_name(args.copr_repo) projectname = project_dirname.split(':')[0] @@ -1358,11 +1348,6 @@ def setup_parser(): help="Build packages from SRPM generated by custom script") parser_build_custom.set_defaults(func="action_build_custom") - # create the parser for the "buildfedpkg" command - parser_build_distgit = subparsers.add_parser("buildfedpkg", parents=[parser_distgit_args_parent, parser_build_parent], - help="DEPRECATED. Use SCM source type instead.") - parser_build_distgit.set_defaults(func="action_build_distgit") - # create the parser for the "buildscm" command parser_build_scm = subparsers.add_parser("buildscm", parents=[parser_scm_args_parent, parser_build_parent], help="Builds package from Git/DistGit/SVN repository.") diff --git a/cli/man/copr-cli.1.asciidoc b/cli/man/copr-cli.1.asciidoc index abc9eb8..0cbedf1 100644 --- a/cli/man/copr-cli.1.asciidoc +++ b/cli/man/copr-cli.1.asciidoc @@ -279,80 +279,6 @@ Name of the PyPI package to be built, required. For the rest of the arguments, see `copr-cli build` command above. -`copr-cli buildtito [options]` -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -usage: copr buildtito [-h] [--memory MEMORY] [--timeout TIMEOUT] [--nowait] - [--background] - [-r CHROOTS] [--git-url URL] [--git-dir DIRECTORY] - [--git-branch BRANCH] [--test] - project - -Deprecated by SCM source type. - ---git-url URL:: -Url to a project managed by Tito, required. - ---git-dir DIRECTORY:: -Relative path from Git root to directory containing .spec file. - ---git-branch BRANCH:: -Checokut specific branch on the repository. - ---test:: -To build from the last commit instead of the last release tag. - - -For the rest of the arguments, see `copr-cli build` command above. - - -`copr-cli buildmock [options]` -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -usage: copr buildmock [-h] [--memory MEMORY] [--timeout TIMEOUT] [--nowait] - [--background] - [-r CHROOTS] [--scm-type TYPE] [--scm-url URL] - [--scm-branch BRANCH] [--spec FILE] - project - -Deprecated by SCM source type. - ---scm-type TYPE:: -Specify versioning tool, default is 'git'. - ---scm-url URL:: -Url to a project versioned by Git or SVN, required. - ---scm-branch BRANCH:: -Checokut specific branch on the repository. - ---spec FILE:: -Relative path from SCM root to .spec file, required. - - -For the rest of the arguments, see `copr-cli build` command above. - - -`copr-cli buildfedpkg [options]` -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -usage: copr buildfedpkg [-h] [--memory MEMORY] [--timeout TIMEOUT] [--nowait] - [--background] - [-r CHROOTS] [--clone-url URL] [--branch BRANCH] - project - -Deprecated by SCM source type. - ---clone-url URL:: -Specify clone url to the dist-git project on pkgs.fedoraproject.org. - ---branch BRANCH:: -Specify branch in the dist-git project to be be built from. - - -For the rest of the arguments, see `copr-cli build` command above. - - `copr-cli buildscm [options]` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -473,44 +399,6 @@ The text-row format prints all information separated by a space on a single line PACKAGE ACTIONS --------------- -`copr-cli add-package-tito [options]` -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -usage: copr add-package-tito [-h] --git-url URL [--git-dir DIRECTORY] - [--git-branch BRANCH] [--test {on,off}] --name - PKGNAME [--webhook-rebuild {on,off}] - project - -Deprecated by SCM source type. - ---git-url URL:: -URL to a project managed by Tito - ---git-dir DIRECTORY:: -Relative path from Git root to directory containing .spec file - ---git-branch BRANCH:: -Git branch that you want to build from - ---test {on,off}:: -Build the last commit instead of the last release tag - ---name PKGNAME:: -Name of the package to be edited or created - ---webhook-rebuild {on,off}:: -Enable auto-rebuilding. - - -`copr-cli edit-package-tito [options]` -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -usage: copr edit-package-tito [-h] --git-url URL [--git-dir DIRECTORY] - [--git-branch BRANCH] [--test {on,off}] --name - PKGNAME [--webhook-rebuild {on,off}] - project - -Deprecated by SCM source type. - `copr-cli add-package-pypi [options]` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -551,46 +439,6 @@ usage: copr edit-package-pypi [-h] [--pythonversions [VERSION [VERSION ...]]] Edit source definition and type of an existing package. Options are shared with add-package-pypi. -`copr-cli add-package-mockscm [options]` -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -usage: copr add-package-mockscm [-h] [--scm-type TYPE] [--scm-url URL] - [--scm-branch BRANCH] [--spec FILE] --name - PKGNAME [--webhook-rebuild {on,off}] - project - -Deprecated by SCM source type. - ---scm-type TYPE:: -Specify versioning tool, default is 'git' - ---scm-url URL:: -Url to a project versioned by Git or SVN, required - ---scm-branch BRANCH:: -Branch in the target repository to build from - ---spec FILE:: -Relative path from SCM root to .spec file, required - ---name PKGNAME:: -Name of the package to be edited or created - ---webhook-rebuild {on,off}:: -Enable auto-rebuilding - - -`copr-cli edit-package-mockscm [options]` -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -usage: copr edit-package-mockscm [-h] [--scm-type TYPE] [--scm-url URL] - [--scm-branch BRANCH] [--spec FILE] --name - PKGNAME [--webhook-rebuild {on,off}] - project - -Deprecated by SCM source type. - - `copr-cli add-package-scm [options]` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ usage: copr add-package-scm [-h] --clone-url CLONE_URL [--commit COMMITTISH]