From eed4b01608be46e759dee3c45d24bfcac1aff992 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=8E=BA=E6=BA=90?= Date: Mon, 7 Feb 2022 09:01:00 +0000 Subject: [PATCH] Drop python2 support --- python-tornado.spec | 26 +++++--------------------- 1 file changed, 5 insertions(+), 21 deletions(-) diff --git a/python-tornado.spec b/python-tornado.spec index 9d7fc9a..2186ec1 100644 --- a/python-tornado.spec +++ b/python-tornado.spec @@ -1,13 +1,13 @@ Name: python-tornado Version: 5.0.2 -Release: 7 +Release: 8 Summary: a Python web framework and asynchronous networking library License: ASL 2.0 URL: http://www.tornadoweb.org Source0: https://files.pythonhosted.org/packages/source/t/tornado/tornado-%{version}.tar.gz Patch0: fix-erroneous-deprecation-warnings.patch -BuildRequires: gcc python2-devel python2-singledispatch python3-devel +BuildRequires: gcc python3-devel %description Tornado is a Python web framework and asynchronous networking library, originally @@ -15,17 +15,6 @@ developed at FriendFeed. By using non-blocking network I/O, Tornado can scale to tens of thousands of open connections, making it ideal for long polling, WebSockets, and other applications that require a long-lived connection to each user. -%package -n python2-tornado -Summary: a Python web framework and asynchronous networking library -Requires: python2-pycurl python2-backports_abc python2-singledispatch python2-futures -%{?python_provide:%python_provide python2-tornado} - -%description -n python2-tornado -Tornado is a Python web framework and asynchronous networking library, originally -developed at FriendFeed. By using non-blocking network I/O, Tornado can scale to -tens of thousands of open connections, making it ideal for long polling, WebSockets, -and other applications that require a long-lived connection to each user. - %package -n python3-tornado Summary: a Python web framework and asynchronous networking library Requires: python3-pycurl @@ -42,19 +31,11 @@ and other applications that require a long-lived connection to each user. %{__sed} -i.orig -e '/^#!\//, 1d' *py tornado/*.py tornado/*/*.py %build -%py2_build %py3_build %install -%py2_install %py3_install -%files -n python2-tornado -%defattr(-,root,root) -%license LICENSE -%doc README.rst -%{python2_sitearch}/* - %files -n python3-tornado %defattr(-,root,root) %license LICENSE @@ -62,6 +43,9 @@ and other applications that require a long-lived connection to each user. %{python3_sitearch}/* %changelog +* Mon Feb 07 2022 wangixyuan - 5.0.2-8 +- Drop python2 support + * Mon Sep 27 2021 lingsheng - 5.0.2-7 - Provide python-tornado -- Gitee