Update to 6.0.2 (#1600318)

This commit is contained in:
Miro Hrončok 2019-06-03 12:17:32 +02:00
parent 246d60ba41
commit 86d1ca893a
5 changed files with 26 additions and 110 deletions

1
.gitignore vendored
View File

@ -17,3 +17,4 @@ tornado-1.0.1.tar.gz
/tornado-4.5.2.tar.gz
/tornado-5.0.2.tar.gz
/tornado-5.1.1.tar.gz
/tornado-6.0.2.tar.gz

View File

@ -1,25 +1,24 @@
From eccbc528d9800bdfef5e1795e6bada446aafaf43 Mon Sep 17 00:00:00 2001
From 58f264d25c9dc427733a6a72fedc7b0e3b9c8e06 Mon Sep 17 00:00:00 2001
From: Lumir Balhar <lbalhar@redhat.com>
Date: Thu, 16 May 2019 13:50:14 +0200
Subject: [PATCH] Do not turn DeprecationWarning into Exception
---
tornado/test/runtests.py | 2 --
1 file changed, 2 deletions(-)
tornado/test/runtests.py | 1 -
1 file changed, 1 deletion(-)
diff --git a/tornado/test/runtests.py b/tornado/test/runtests.py
index e4f938d3..cd2a5b87 100644
index dab76a2..117fd1c 100644
--- a/tornado/test/runtests.py
+++ b/tornado/test/runtests.py
@@ -127,8 +127,6 @@ def main():
@@ -124,7 +124,6 @@ def main():
# Tornado generally shouldn't use anything deprecated, but some of
# our dependencies do (last match wins).
warnings.filterwarnings("ignore", category=DeprecationWarning)
- warnings.filterwarnings("error", category=DeprecationWarning,
- module=r"tornado\..*")
- warnings.filterwarnings("error", category=DeprecationWarning, module=r"tornado\..*")
warnings.filterwarnings("ignore", category=PendingDeprecationWarning)
warnings.filterwarnings("error", category=PendingDeprecationWarning,
module=r"tornado\..*")
warnings.filterwarnings(
"error", category=PendingDeprecationWarning, module=r"tornado\..*"
--
2.21.0

View File

@ -1,39 +0,0 @@
diff --git a/tornado/test/web_test.py b/tornado/test/web_test.py
index 16938c4..b1ae474 100644
--- a/tornado/test/web_test.py
+++ b/tornado/test/web_test.py
@@ -398,7 +398,7 @@ class AuthRedirectTest(WebTestCase):
follow_redirects=False)
self.assertEqual(response.code, 302)
self.assertTrue(re.match(
- 'http://example.com/login\?next=http%3A%2F%2F127.0.0.1%3A[0-9]+%2Fabsolute',
+ r'http://example.com/login\?next=http%3A%2F%2F127.0.0.1%3A[0-9]+%2Fabsolute',
response.headers['Location']), response.headers['Location'])
diff --git a/tornado/util.py b/tornado/util.py
index a42ebeb..0b93ff9 100644
--- a/tornado/util.py
+++ b/tornado/util.py
@@ -252,7 +252,7 @@ _re_unescape_pattern = re.compile(r'\\(.)', re.DOTALL)
def re_unescape(s):
# type: (str) -> str
- """Unescape a string escaped by `re.escape`.
+ r"""Unescape a string escaped by `re.escape`.
May raise ``ValueError`` for regular expressions which could not
have been produced by `re.escape` (for example, strings containing
diff --git a/tornado/web.py b/tornado/web.py
index 6760b0b..4340b16 100644
--- a/tornado/web.py
+++ b/tornado/web.py
@@ -1887,7 +1887,7 @@ class _ApplicationRouter(ReversibleRuleRouter):
class Application(ReversibleRouter):
- """A collection of request handlers that make up a web application.
+ r"""A collection of request handlers that make up a web application.
Instances of this class are callable and can be passed directly to
HTTPServer to serve the application::

View File

@ -1,37 +1,20 @@
# python2 is not available on RHEL > 7
%if 0%{?rhel} > 7
%bcond_with python2
%else
%bcond_without python2
%endif
%global srcname tornado
Name: python-%{srcname}
Version: 5.1.1
Release: 2%{?dist}
Version: 6.0.2
Release: 1%{?dist}
Summary: Scalable, non-blocking web server and tools
License: ASL 2.0
URL: http://www.tornadoweb.org
Source0: %{pypi_source}
# Python 3.8 introduces SyntaxWarnings on invalid escape sequences
# Tornado has them, mostly in docstrings and the tests treat them as errors
# Fixed upstream: https://github.com/tornadoweb/tornado/commit/6dceb64ed27c1d48af22142f2ebae946f0e85e95
Patch0: fix-syntax-warnings.patch
# Do not turn DeprecationWarning in tornado module into Exception
# fixes FTBFS with Python 3.8
Patch1: Do-not-turn-DeprecationWarning-into-Exception.patch
BuildRequires: gcc
%if %{with python2}
BuildRequires: python2-devel
BuildRequires: python2-backports_abc
BuildRequires: python2-singledispatch
BuildRequires: python2-futures
%endif # with python2
BuildRequires: python%{python3_pkgversion}-setuptools
BuildRequires: python%{python3_pkgversion}-devel
@ -45,33 +28,6 @@ reasonably fast. Because it is non-blocking and uses epoll, it can
handle thousands of simultaneous standing connections, which means it is
ideal for real-time web services.
%if %{with python2}
%package -n python2-%{srcname}
Summary: Scalable, non-blocking web server and tools
%{?python_provide:%python_provide python2-%{srcname}}
Requires: python2-pycurl
%description -n python2-%{srcname}
Tornado is an open source version of the scalable, non-blocking web
server and tools.
The framework is distinct from most mainstream web server frameworks
(and certainly most Python frameworks) because it is non-blocking and
reasonably fast. Because it is non-blocking and uses epoll, it can
handle thousands of simultaneous standing connections, which means it is
ideal for real-time web services.
%endif # with python2
%package doc
Summary: Examples for python-tornado
Obsoletes: python%{python3_pkgversion}-%{srcname}-doc < 4.2.1-3
Provides: python%{python3_pkgversion}-%{srcname}-doc = %{version}-%{release}
%description doc
Tornado is an open source version of the scalable, non-blocking web
server and and tools. This package contains some example applications.
%package -n python%{python3_pkgversion}-%{srcname}
Summary: Scalable, non-blocking web server and tools
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
@ -87,6 +43,15 @@ reasonably fast. Because it is non-blocking and uses epoll, it can
handle thousands of simultaneous standing connections, which means it is
ideal for real-time web services.
%package doc
Summary: Examples for python-tornado
Obsoletes: python%{python3_pkgversion}-%{srcname}-doc < 4.2.1-3
Provides: python%{python3_pkgversion}-%{srcname}-doc = %{version}-%{release}
%description doc
Tornado is an open source version of the scalable, non-blocking web
server and and tools. This package contains some example applications.
%prep
%autosetup -p1 -n %{srcname}-%{version}
# remove shebang from files
@ -94,28 +59,13 @@ ideal for real-time web services.
%build
%py3_build
%{?with_python2:%py2_build}
%install
%py3_install
%{?with_python2:%py2_install}
%check
export ASYNC_TEST_TIMEOUT=10
%{__python3} -m tornado.test.runtests --verbose
%{?with_python2:%{__python2} -m tornado.test.runtests --verbose}
%if %{with python2}
%files -n python2-%{srcname}
%license LICENSE
%doc README.rst
%{python2_sitearch}/%{srcname}/
%{python2_sitearch}/%{srcname}-%{version}-*.egg-info
%endif # with python2
%files doc
%doc demos
%files -n python%{python3_pkgversion}-%{srcname}
%license LICENSE
@ -123,8 +73,13 @@ export ASYNC_TEST_TIMEOUT=10
%{python3_sitearch}/%{srcname}/
%{python3_sitearch}/%{srcname}-%{version}-*.egg-info
%files doc
%doc demos
%changelog
* Mon Jun 03 2019 Miro Hrončok <mhroncok@redhat.com> - 6.0.2-1
- Update to 6.0.2 (#1600318)
* Thu May 16 2019 Lumír Balhar <lbalhar@redhat.com> - 5.1.1-2
- New patch to not turn DeprecationWarning in tornado module into Exception
- Fixes FTBFS with Python 3.8

View File

@ -1 +1 @@
SHA512 (tornado-5.1.1.tar.gz) = f9ecedb20c055981f482c9a2a8bb30082dcc479674f75f6c8654afcf40f2ce5a45e82c7e2b5a6ce5d1c9da7896e865e78c7d29a64b6b1d28d6e74a718be62dc7
SHA512 (tornado-6.0.2.tar.gz) = 1167043a7661ca882b59de44a1e43df9ac09b4ffcfc1bf406bd796c7d899b95083881168607864106fb438829d447b41db981be39870cb87d560e00caf62fafc