Hello community, here is the log from the commit of package python-stem for openSUSE:Factory checked in at 2019-10-04 16:06:49 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-stem (Old) and /work/SRC/openSUSE:Factory/.python-stem.new.2352 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-stem" Fri Oct 4 16:06:49 2019 rev:2 rq:734614 version:1.7.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-stem/python-stem.changes 2019-01-03 18:08:20.252049241 +0100 +++ /work/SRC/openSUSE:Factory/.python-stem.new.2352/python-stem.changes 2019-10-04 16:06:50.520683968 +0200 @@ -1,0 +2,6 @@ +Wed Oct 2 13:26:41 UTC 2019 - Tomáš Chvátal <[email protected]> + +- Add patch to fix building with python 3.8: + * python38.patch + +------------------------------------------------------------------- New: ---- python38.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-stem.spec ++++++ --- /var/tmp/diff_new_pack.Afw6ZT/_old 2019-10-04 16:06:51.500681645 +0200 +++ /var/tmp/diff_new_pack.Afw6ZT/_new 2019-10-04 16:06:51.508681626 +0200 @@ -23,9 +23,9 @@ Release: 0 Summary: Python controller library for Tor License: LGPL-3.0-only -Group: Productivity/Networking/Security URL: https://stem.torproject.org/ Source: https://files.pythonhosted.org/packages/source/s/stem/stem-%{version}.tar.gz +Patch0: python38.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildArch: noarch @@ -37,6 +37,7 @@ %prep %setup -q -n stem-%{version} +%patch0 -p1 %build %python_build ++++++ python38.patch ++++++ >From af52d8b16f6623e3bdf0b470697b91a69b497dc2 Mon Sep 17 00:00:00 2001 From: Damian Johnson <[email protected]> Date: Wed, 12 Jun 2019 13:18:20 -0700 Subject: Tests fail to run with python 3.8 Python's platform module removed its linux_distribution() method... https://trac.torproject.org/projects/tor/ticket/30847 https://docs.python.org/3/library/platform.html#platform.linux_distribution https://stackoverflow.com/questions/49554443/platform-linux-distribution-deprecated-what-are-the-alternatives This method was only used for display purposes to indicate the OS where the tests were ran. No big whoop if we simply omit the information. --- test/task.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/task.py b/test/task.py index be518ca..1c14e64 100644 --- a/test/task.py +++ b/test/task.py @@ -120,7 +120,10 @@ def _check_platform_version(): extra = platform.release() elif platform.system() == 'Darwin': extra = platform.release() - elif platform.system() == 'Linux': + elif platform.system() == 'Linux' and hasattr(platform, 'linux_distribution'): + # TODO: platform.linux_distribution() was removed in python 3.8 + # https://trac.torproject.org/projects/tor/ticket/30847 + extra = ' '.join(platform.linux_distribution()[:2]) else: extra = None -- cgit v1.1
