diff --git a/Do-not-turn-DeprecationWarning-into-Exception.patch b/Do-not-turn-DeprecationWarning-into-Exception.patch new file mode 100644 index 0000000000000000000000000000000000000000..7633f3592836548e7a5741f8eacefd67355f212c --- /dev/null +++ b/Do-not-turn-DeprecationWarning-into-Exception.patch @@ -0,0 +1,11 @@ +diff -Nur tornado-6.0.4/tornado/test/runtests.py tornado-6.0.4-new/tornado/test/runtests.py +--- tornado-6.0.4/tornado/test/runtests.py 2020-03-02 20:21:37.000000000 +0100 ++++ tornado-6.0.4-new/tornado/test/runtests.py 2020-09-14 09:21:31.818678680 +0200 +@@ -126,7 +126,6 @@ + # 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("ignore", category=PendingDeprecationWarning) + warnings.filterwarnings( + "error", category=PendingDeprecationWarning, module=r"tornado\..*" diff --git a/python-tornado.spec b/python-tornado.spec new file mode 100644 index 0000000000000000000000000000000000000000..3853e0fda609913f226d4afba91cd653c866027d --- /dev/null +++ b/python-tornado.spec @@ -0,0 +1,70 @@ +%define anolis_release 1 +%global srcname tornado +%global common_description %{expand: +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.} + +Name: python-%{srcname} +Version: 6.1.0 +Release: %{anolis_release}%{?dist} +Summary: Scalable, non-blocking web server and tools + +License: ASL 2.0 +URL: https://www.tornadoweb.org +Source0: https://github.com/tornadoweb/tornado/archive/v%{version}/%{srcname}-%{version}.tar.gz + +# 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 +BuildRequires: python3-devel + +%description %{common_description} + +%package -n python3-%{srcname} +Summary: %{summary} + +%description -n python3-%{srcname} %{common_description} + +%package doc +Summary: Examples for %{name} + +%description doc %{common_description} + +This package contains some example applications. + +%prep +%autosetup -p1 -n %{srcname}-%{version} + +%generate_buildrequires +%pyproject_buildrequires -e py3 + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files %{srcname} + +%check +# Skip the same timing-related tests that upstream skips when run in Travis CI. +export TRAVIS=true +%tox + +%files -n python3-%{srcname} -f %{pyproject_files} +%doc README.rst + +%files doc +%license LICENSE +%doc demos + +%changelog +* Thu Apr 28 2022 mgb01105731 -6.1.0-1 +- Init from upstream version 6.1.0 diff --git a/tornado-6.1.0.tar.gz b/tornado-6.1.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..5b89d44d3868b05390fce43abd3f755449aaa2fa Binary files /dev/null and b/tornado-6.1.0.tar.gz differ