Hello community,
here is the log from the commit of package python-brotlipy for openSUSE:Factory
checked in at 2020-03-27 00:25:04
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-brotlipy (Old)
and /work/SRC/openSUSE:Factory/.python-brotlipy.new.3160 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-brotlipy"
Fri Mar 27 00:25:04 2020 rev:6 rq:785562 version:0.7.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-brotlipy/python-brotlipy.changes
2019-11-04 17:14:33.812783998 +0100
+++
/work/SRC/openSUSE:Factory/.python-brotlipy.new.3160/python-brotlipy.changes
2020-03-27 00:25:12.780254238 +0100
@@ -1,0 +2,5 @@
+Mon Mar 16 10:21:09 UTC 2020 - Tomáš Chvátal <[email protected]>
+
+- Fix build without python2
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-brotlipy.spec ++++++
--- /var/tmp/diff_new_pack.TeToUx/_old 2020-03-27 00:25:14.892255308 +0100
+++ /var/tmp/diff_new_pack.TeToUx/_new 2020-03-27 00:25:14.892255308 +0100
@@ -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