From 35cf20893c51e5d694ed3a0886364538a7bdccf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=8E=BA=E6=BA=90?= Date: Tue, 8 Feb 2022 07:59:01 +0000 Subject: [PATCH] Drop python2 support for OpenStack Train branch --- python-contextlib2.spec | 32 +++++--------------------------- 1 file changed, 5 insertions(+), 27 deletions(-) diff --git a/python-contextlib2.spec b/python-contextlib2.spec index ca8fe43..782380b 100644 --- a/python-contextlib2.spec +++ b/python-contextlib2.spec @@ -1,27 +1,19 @@ %{!?_licensedir: %global license %%doc} Name: python-contextlib2 Version: 0.5.5 -Release: 9 +Release: 10 Summary: Backports and enhancements for the contextlib module License: Python URL: https://pypi.io/project/contextlib2 Source0: https://pypi.io/packages/source/c/contextlib2/contextlib2-%{version}.tar.gz BuildArch: noarch -BuildRequires: python2-devel python2-unittest2 python3-devel +BuildRequires: python3-devel %description The package is a backport of the standard library's contextlib module to earlier Python versions. It provides a ground for enhancements to the standard library version. -%package -n python2-contextlib2 -Summary: Backports and enhancements for the contextlib module -%{?python_provide:%python_provide python2-contextlib2} - -%description -n python2-contextlib2 -The package is a backport of the standard library's contextlib module to earlier Python versions. -It provides a ground for enhancements to the standard library version. - %package -n python3-contextlib2 Summary: Backports and enhancements for the contextlib module @@ -31,33 +23,16 @@ It provides a ground for enhancements to the standard library version. %prep %autosetup -n contextlib2-%{version} - rm -rf contextlib2.egg-info -rm -rf %{py3dir} -cp -a . %{py3dir} %build -%{__python2} setup.py build -cd %{py3dir} %{__python3} setup.py build -cd - %install -cd %{py3dir} %{__python3} setup.py install -O1 --skip-build --root=%{buildroot} -cd - -%{__python2} setup.py install -O1 --skip-build --root=%{buildroot} %check -%{__python2} test_contextlib2.py -cd %{py3dir} %{__python3} test_contextlib2.py -cd - - -%files -n python2-contextlib2 -%doc README.rst VERSION.txt NEWS.rst -%license LICENSE.txt -%{python2_sitelib}/* %files -n python3-contextlib2 %doc README.rst VERSION.txt NEWS.rst @@ -65,5 +40,8 @@ cd - %{python3_sitelib}/* %changelog +* Tue Feb 08 2022 wangxiyuan - 0.5.5-10 +- Drop python2 support + * Wed Mar 4 2020 zhujunhao - 0.5.5-9 - Package init -- Gitee