From 6ef2f730ca0a0c2130f90374d52fc049e09b26b0 Mon Sep 17 00:00:00 2001 From: zhangtao2020 <18066722603@163.com> Date: Fri, 30 Oct 2020 10:19:18 +0800 Subject: [PATCH] remove python2 --- python-dockerpty.spec | 33 ++++----------------------------- 1 file changed, 4 insertions(+), 29 deletions(-) diff --git a/python-dockerpty.spec b/python-dockerpty.spec index ef903b8..077a5df 100644 --- a/python-dockerpty.spec +++ b/python-dockerpty.spec @@ -1,8 +1,7 @@ -%bcond_with python2 %bcond_without python3 Name: python-dockerpty Version: 0.4.1 -Release: 2 +Release: 3 Summary: Python library to use the pseudo-tty of a docker container License: ASL 2.0 URL: https://github.com/d11wtq/dockerpty @@ -14,18 +13,6 @@ BuildArch: noarch Provides the functionality needed to operate the pseudo-tty (PTY) allocated to a docker container, using the Python client -%if %{with python2} -%package -n python2-dockerpty -Summary: Python library to use the pseudo-tty of a docker container -BuildRequires: python2-devel python2-setuptools -Requires: python2-six -%{?python_provide:%python_provide python2-dockerpty} - -%description -n python2-dockerpty -Provides the functionality needed to operate the pseudo-tty (PTY) allocated -to a docker container, using the Python client -%endif - %if %{with python3} %package -n python3-dockerpty Summary: Python library to use the pseudo-tty of a docker container @@ -44,26 +31,11 @@ to a docker container, using the Python client %autosetup -n dockerpty-%{version} %build -%if %{with python2} -%_bindir/python2 setup.py build '--executable=%_bindir/python2 -s' -%endif %_bindir/python3 setup.py build '--executable=%_bindir/python3 -s' %install -%if %{with python2} -%_bindir/python2 setup.py install -O1 --skip-build --root %buildroot -%endif %_bindir/python3 setup.py install -O1 --skip-build --root %buildroot - -%if %{with python2} -%files -n python2-dockerpty -%defattr(-,root,root) -%license LICENSE.txt -%_prefix/lib/python2.7/site-packages/dockerpty -%_prefix/lib/python2.7/site-packages/dockerpty-%{version}-py%{python2_version}.egg-info -%endif - %if %{with python3} %files -n python3-dockerpty %defattr(-,root,root) @@ -77,6 +49,9 @@ to a docker container, using the Python client %doc README.md MANIFEST.in %changelog +* Thu Oct 22 2020 zhangtao - 0.4.1-3 +- delete python2 + * Tue Jun 16 2020 hanhui - 0.4.1-2 - fix python3 can not find path