From 27902a843707c318d0e2ec4e31ae78492cae253f Mon Sep 17 00:00:00 2001 From: Jakub Kadlcik Date: Mon, 3 Jul 2023 22:19:21 +0200 Subject: [PATCH] frontend, cli: make pyp2spec the default PyPI spec generator Fix #2791 --- cli/copr_cli/main.py | 2 +- frontend/coprs_frontend/coprs/forms.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/copr_cli/main.py b/cli/copr_cli/main.py index 328322aa8..04dc57038 100644 --- a/cli/copr_cli/main.py +++ b/cli/copr_cli/main.py @@ -1294,7 +1294,7 @@ def setup_parser(): dest="spec_generator", help="Tool for generating specfile from a PyPI package", choices=["pyp2rpm", "pyp2spec"], - default="pyp2rpm", + default="pyp2spec", ) parser_pypi_args_optional.add_argument("--template", "-t", dest="spec_template", diff --git a/frontend/coprs_frontend/coprs/forms.py b/frontend/coprs_frontend/coprs/forms.py index 2c658f9d8..889d82bdc 100644 --- a/frontend/coprs_frontend/coprs/forms.py +++ b/frontend/coprs_frontend/coprs/forms.py @@ -933,7 +933,7 @@ class PackageFormPyPI(BasePackageForm): choices=[ ("pyp2rpm", "pyp2rpm"), ("pyp2spec", "pyp2spec"), - ], default="pyp2rpm") + ], default="pyp2spec") spec_template = wtforms.SelectField( "Spec template",