Hello community,

here is the log from the commit of package python-tornado5 for openSUSE:Factory 
checked in at 2020-12-12 20:28:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-tornado5 (Old)
 and      /work/SRC/openSUSE:Factory/.python-tornado5.new.2328 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-tornado5"

Sat Dec 12 20:28:45 2020 rev:4 rq:853439 version:5.1.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-tornado5/python-tornado5.changes  
2020-03-08 22:20:46.603953043 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-tornado5.new.2328/python-tornado5.changes    
    2020-12-12 20:31:10.285777361 +0100
@@ -1,0 +2,13 @@
+Sun Dec  6 18:04:33 UTC 2020 - Benjamin Greiner <c...@bnavigator.de>
+
+- Fix Python 2 tests for Leap
+  * Don't log another deprecation warning
+    py2-dont-log-cryptographywarning.patch
+  * BuildRequire python2 service_identity
+- Fix test failures, which surfaced while preparing support for
+  multiple python3 flavors gh#openSUSE/python-rpm-macros#66
+  * BuildRequire python-pycares for all python3 flavors
+  * explicitely BuildRequire python-curses
+  * clean creation of test environment
+
+-------------------------------------------------------------------

New:
----
  py2-dont-log-cryptographywarning.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-tornado5.spec ++++++
--- /var/tmp/diff_new_pack.wJmPTG/_old  2020-12-12 20:31:11.013778120 +0100
+++ /var/tmp/diff_new_pack.wJmPTG/_new  2020-12-12 20:31:11.017778125 +0100
@@ -31,15 +31,21 @@
 Patch3:         skip-failing-tests.patch
 Patch4:         py38-0001-test-silence-deprecation-warning.patch
 Patch5:         py38-0002-dont-log-CancelledError.patch
+Patch6:         py2-dont-log-cryptographywarning.patch
 BuildRequires:  %{python_module Twisted}
 BuildRequires:  %{python_module certifi}
+BuildRequires:  %{python_module curses}
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module pycurl}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module simplejson}
+%if 0%{?suse_version} >= 1550
+BuildRequires:  %{python_module pycares}
+%else
+BuildRequires:  python3-pycares
+%endif
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
-BuildRequires:  python3-pycares
 Requires:       python
 Requires:       python-simplejson
 Conflicts:      python-tornado-impl
@@ -60,6 +66,7 @@
 BuildRequires:  python-backports_abc
 BuildRequires:  python-futures
 BuildRequires:  python-mock
+BuildRequires:  python-service_identity
 BuildRequires:  python-singledispatch
 %endif
 %if %{python3_version_nodots} < 35
@@ -115,15 +122,14 @@
 %check
 export ASYNC_TEST_TIMEOUT=30
 export TRAVIS=1
-mv tornado tornado_temp
-rm -rf build _build.*
-%{python_expand rm -rf build _build.*
-ln -s `pwd`/tornado_temp/test %{buildroot}%{$python_sitearch}/tornado/
-export PYTHONPATH=%{buildroot}%{$python_sitearch}
-$python -Bm tornado.test.runtests
-rm -rf %{buildroot}%{$python_sitearch}/tornado/test
+%{python_expand # merge the compiled sitearch and the test directory into 
testenv dir
+mkdir testenv-%{$python_bin_suffix}
+pushd testenv-%{$python_bin_suffix}
+cp -r %{buildroot}%{$python_sitearch}/tornado ./
+cp -r ../tornado/test tornado/
+$python -Bm tornado.test.runtests --verbose
+popd
 }
-mv tornado_temp tornado
 
 %files %{python_files}
 %license LICENSE

++++++ py2-dont-log-cryptographywarning.patch ++++++
Index: tornado-5.1.1/tornado/test/runtests.py
===================================================================
--- tornado-5.1.1.orig/tornado/test/runtests.py
+++ tornado-5.1.1/tornado/test/runtests.py
@@ -8,6 +8,8 @@ import operator
 import textwrap
 import sys
 
+from cryptography.utils import CryptographyDeprecationWarning
+
 from tornado.httpclient import AsyncHTTPClient
 from tornado.httpserver import HTTPServer
 from tornado.ioloop import IOLoop
@@ -159,6 +161,12 @@ def main():
         category=DeprecationWarning,
         message="PY_SSIZE_T_CLEAN will be required",
     )
+    # This deprecation warning prevents Leap python2 from building now
+    warnings.filterwarnings(
+        "ignore",
+        category=CryptographyDeprecationWarning,
+        message="Python 2 is no longer supported",
+    )
 
     logging.getLogger("tornado.access").setLevel(logging.CRITICAL)
 
_______________________________________________
openSUSE Commits mailing list -- commit@lists.opensuse.org
To unsubscribe, email commit-le...@lists.opensuse.org
List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette
List Archives: 
https://lists.opensuse.org/archives/list/commit@lists.opensuse.org

Reply via email to