diff --git a/python-six.spec b/python-six.spec index 94b21ba80c084bd641c34333ea0674da76667fef..07c1a52807d49c08a1128bad2804bde0e623ea38 100644 --- a/python-six.spec +++ b/python-six.spec @@ -1,12 +1,9 @@ -%bcond_without python2 -%bcond_without python3 - %global modname six %global python_wheelname %{modname}-%{version}-py2.py3-none-any.whl Name: python-six Version: 1.15.0 -Release: 2 +Release: 3 Summary: It is a Python 2 and 3 compatibility library License: MIT URL: https://pypi.python.org/pypi/%{modname} @@ -17,20 +14,6 @@ BuildArch: noarch Python-six provides simple utilities for wrapping over differences between Python 2 and Python 3. -%if %{with python2} -%package -n python2-%{modname} -Summary: Compatibility library for python 2 -BuildRequires: python2-devel python2-setuptools -BuildRequires: python2-pytest python2-tkinter -BuildRequires: python2-pip python2-wheel - -%{?python_provide:%python_provide python2-%{modname}} - -%description -n python2-%{modname} -Compatibility library for python 2. -%endif - -%if %{with python3} %package -n python3-%{modname} Summary: Compatibility library for python 3 BuildRequires: python3-devel python3-setuptools @@ -42,48 +25,19 @@ Obsoletes: platform-python-%{modname} < %{version}-%{release} %description -n python3-%{modname} Compatibility library for python 3. -%endif %prep %autosetup -n %{modname}-%{version} %build -%if %{with python2} -%py2_build_wheel -%endif - -%if %{with python3} %py3_build_wheel -%endif %install -%if %{with python2} -%py2_install_wheel %{python_wheelname} -%endif - -%if %{with python3} %py3_install_wheel %{python_wheelname} -%endif %check -%if %{with python2} -PYTHONPATH=%{buildroot}%{python2_sitelib} py.test-2 -rfsxX test_six.py -%endif - -%if %{with python3} PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-3 -rfsxX test_six.py -%endif -%if %{with python2} -%files -n python2-%{modname} -%license LICENSE -%doc README* documentation/index* -%{python2_sitelib}/%{modname}-*.dist-info/ -%exclude %{python2_sitelib}/%{modname}-*.dist-info/LICENSE* -%{python2_sitelib}/%{modname}.py* -%endif - -%if %{with python3} %files -n python3-%{modname} %license LICENSE %doc README* documentation/index* @@ -91,9 +45,11 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-3 -rfsxX test_six.py %exclude %{python3_sitelib}/%{modname}-*.dist-info/LICENSE* %{python3_sitelib}/%{modname}.py %{python3_sitelib}/__pycache__/%{modname}.* -%endif %changelog +* Thur Jan 27 2022 lijiawei - 1.15.0-3 +- Remove python2 support + * Sat Sep 5 2020 shixuantong - 1.15.0-2 - Type: bugfix - ID: NA