From 786148eae6163d934888742d90792657b9cc1b78 Mon Sep 17 00:00:00 2001 From: zhaojf Date: Mon, 7 Feb 2022 13:59:40 +0000 Subject: [PATCH] remove python2 --- python-click.spec | 25 ++++--------------------- 1 file changed, 4 insertions(+), 21 deletions(-) diff --git a/python-click.spec b/python-click.spec index 3791d2e..25323b8 100644 --- a/python-click.spec +++ b/python-click.spec @@ -2,7 +2,7 @@ Name: python-%{pypi_name} Version: 7.0 -Release: 2 +Release: 3 Summary: Composable command line interface toolkit License: BSD @@ -18,17 +18,6 @@ comes with good defaults out of the box. %description %{_description} -%package -n python2-%{pypi_name} -Summary: %{summary} -%{?python_provide:%python_provide python2-%{pypi_name}} -BuildRequires: python2-devel -BuildRequires: python2-setuptools -BuildRequires: python2-pytest - -%description -n python2-%{pypi_name} %{_description} - -Python 2 version. - %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} @@ -50,11 +39,9 @@ Summary: Development documents and examples for Click %autosetup -n %{pypi_name}-%{version} %build -%py2_build %py3_build %install -%py2_install %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir}/ @@ -62,15 +49,8 @@ cp -arf docs/ examples/ %{buildroot}/%{_pkgdocdir}/ %check export PYTHONPATH=$(pwd) -py.test-%{python2_version} tests --tb=long --verbose py.test-%{python3_version} tests --tb=long --verbose -%files -n python2-%{pypi_name} -%license LICENSE.rst -%doc README.rst CHANGES.rst -%{python2_sitelib}/Click-*.egg-info/ -%{python2_sitelib}/%{pypi_name}/ - %files -n python3-%{pypi_name} %license LICENSE.rst %doc README.rst CHANGES.rst @@ -81,6 +61,9 @@ py.test-%{python3_version} tests --tb=long --verbose %{_pkgdocdir}/ %changelog +* Mon Feb 7 2022 zhaojunfeng - 7.0-3 +- remove python2 + * Thu Sep 17 2020 liuweibo - 7.0-2 - Fix Source0 -- Gitee