From 96e83acbbf3903e8bed2949b19aa6abc885a6719 Mon Sep 17 00:00:00 2001 From: s17723959267 Date: Fri, 23 Oct 2020 17:13:22 +0800 Subject: [PATCH] delete python2 --- python-docker-pycreds.spec | 48 ++++---------------------------------- 1 file changed, 4 insertions(+), 44 deletions(-) diff --git a/python-docker-pycreds.spec b/python-docker-pycreds.spec index dcfba3a..fa353de 100644 --- a/python-docker-pycreds.spec +++ b/python-docker-pycreds.spec @@ -4,7 +4,7 @@ Name: python-docker-pycreds Version: 0.4.0 -Release: 1 +Release: 2 Summary: Python bindings for the docker credentials store API License: ASL 2.0 URL: https://github.com/shin-/dockerpy-creds/ @@ -16,13 +16,6 @@ BuildRequires: python3-devel python3-setuptools python3-six BuildRequires: python3-pytest %endif -%if %{with python2} -BuildRequires: python2-devel python2-setuptools python2-six -%if %{with tests} -BuildRequires: python2-pytest -%endif -%endif - %description Python bindings for the docker credentials store API @@ -36,57 +29,21 @@ Requires: python3-six %description -n python3-docker-pycreds Python bindings for the docker credentials store API -%if %{with python2} -%package -n python2-docker-pycreds -Summary: Python bindings for the docker credentials store API - -Requires: python2-six - -%{?python_provide:%python_provide python2-docker-pycreds} - -%description -n python2-docker-pycreds -Python bindings for the docker credentials store API -%endif - %prep %autosetup -n docker-pycreds-%{version} -p1 %build %py3_build -%if %{with python2} -%py2_build -%endif - %install %py3_install -%if %{with python2} -%py2_install -%endif - %check %{__python3} -c "import dockerpycreds" %if %{with tests} PYTHONPATH="${PWD}" py.test-%{python3_version} -vv tests/ %endif -%if %{with python2} -%{__python2} -c "import dockerpycreds" -%if %{with tests} -PYTHONPATH="${PWD}" py.test-%{python2_version} -vv tests/ -%endif -%endif - -%if %{with python2} -%files -n python2-docker-pycreds -%defattr(-,root,root) -%doc README.md -%license LICENSE -%{python2_sitelib}/dockerpycreds -%{python2_sitelib}/docker_pycreds-%{version}-py?.?.egg-info -%endif - %files -n python3-docker-pycreds %defattr(-,root,root) %doc README.md @@ -95,5 +52,8 @@ PYTHONPATH="${PWD}" py.test-%{python2_version} -vv tests/ %{python3_sitelib}/docker_pycreds-%{version}-py?.?.egg-info %changelog +* Fri Oct 23 2020 tianwei - 0.4.0-2 +- delete python2 + * Wed Feb 12 2020 openEuler Buildteam - 0.4.0-1 - Package init