#2196 cli: Remove depraceted method
Merged 3 months ago by praiskup. Opened 3 months ago by schlupov.
copr/ schlupov/copr remove_deprecated_methods  into  main

file modified
-15
@@ -412,16 +412,6 @@ 

              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 @@ 

              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.")

@@ -279,80 +279,6 @@ 

  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 @@ 

  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 @@ 

  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]

Build succeeded.

Commit 6b4f856 fixes this pull-request

Pull-Request has been merged by praiskup

3 months ago