Hello community,

here is the log from the commit of package python-brotlipy for 
openSUSE:Leap:15.2 checked in at 2020-03-31 07:21:24
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-brotlipy (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.python-brotlipy.new.3160 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-brotlipy"

Tue Mar 31 07:21:24 2020 rev:16 rq:789128 version:0.7.0

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-brotlipy/python-brotlipy.changes        
2020-02-21 23:48:41.256487301 +0100
+++ 
/work/SRC/openSUSE:Leap:15.2/.python-brotlipy.new.3160/python-brotlipy.changes  
    2020-03-31 07:21:25.186373281 +0200
@@ -1,0 +2,5 @@
+Mon Mar 16 10:21:09 UTC 2020 - Tomáš Chvátal <tchva...@suse.com>
+
+- Fix build without python2
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-brotlipy.spec ++++++
--- /var/tmp/diff_new_pack.NJmSlK/_old  2020-03-31 07:21:25.838373564 +0200
+++ /var/tmp/diff_new_pack.NJmSlK/_new  2020-03-31 07:21:25.842373565 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-brotlipy
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,14 +17,14 @@
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%bcond_without python2
 Name:           python-brotlipy
 Version:        0.7.0
 Release:        0
 Summary:        Python binding to the Brotli library
 License:        MIT
-Group:          Development/Languages/Python
-Url:            https://github.com/python-hyper/brotlipy
-Source0:        
https://pypi.io/packages/source/b/brotlipy/brotlipy-%{version}.tar.gz
+URL:            https://github.com/python-hyper/brotlipy
+Source0:        
https://files.pythonhosted.org/packages/source/b/brotlipy/brotlipy-%{version}.tar.gz
 # Copy of 
https://github.com/google/brotli/tree/46c1a881b41bb638c76247558aa04b1591af3aa7/tests/testdata
 Source1:        testdata.tgz
 Source2:        
https://raw.githubusercontent.com/python-hyper/brotlipy/master/test/conftest.py
@@ -37,9 +37,11 @@
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  libbrotli-devel
-BuildRequires:  python-enum34
 BuildRequires:  python-rpm-macros
 Requires:       python-cffi >= 1.0.0
+%if %{with python2}
+BuildRequires:  python-enum34
+%endif
 %ifpython2
 Requires:       python-enum34
 %endif
@@ -77,7 +79,7 @@
 
 %check
 # the skipped tests are benchmarks which can be flaky in OBS
-%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python -m pytest -k 
'not (test_streaming_compression or test_streaming_compression_flush)'
+%pytest_arch -k 'not (test_streaming_compression or 
test_streaming_compression_flush)'
 
 %files %{python_files}
 %license LICENSE


Reply via email to