From cfbfd6534218b86de5b3aedef27a1b0ae06f1f2af2ea66956cf5d2eace7b4af1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 19 Jul 2019 09:56:34 +0000 Subject: [PATCH] - Restrict pytest5 for now OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hpack?expand=0&rev=11 --- python-hpack.changes | 5 +++++ python-hpack.spec | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/python-hpack.changes b/python-hpack.changes index 27ba685..684df2f 100644 --- a/python-hpack.changes +++ b/python-hpack.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jul 19 09:49:33 UTC 2019 - Tomáš Chvátal + +- Restrict pytest5 for now + ------------------------------------------------------------------- Wed Jan 2 12:47:37 UTC 2019 - Tomáš Chvátal diff --git a/python-hpack.spec b/python-hpack.spec index 0f36b18..8610045 100644 --- a/python-hpack.spec +++ b/python-hpack.spec @@ -25,9 +25,9 @@ License: MIT Group: Development/Languages/Python URL: https://github.com/python-hyper/hpack Source: https://files.pythonhosted.org/packages/source/h/hpack/hpack-%{version}.tar.gz -# test requirements BuildRequires: %{python_module hypothesis} -BuildRequires: %{python_module pytest} +# https://github.com/python-hyper/hpack/issues/168 +BuildRequires: %{python_module pytest < 5.0} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -49,10 +49,10 @@ export LC_ALL="en_US.UTF-8" %install export LC_ALL="en_US.UTF-8" %python_install -%python_expand %fdupes -s %{buildroot}%{$python_sitelib} +%python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_expand PYTHONPATH=build/lib py.test-%{$python_version} -k"-test_can_decode_a_story -test_can_decode_a_story_no_huffman -test_can_encode_a_story_with_huffman -test_can_encode_a_story_no_huffman -test_decode_either_succeeds_or_raises_error" +%pytest -k "not (test_can_decode_a_story or test_can_decode_a_story_no_huffman or test_can_encode_a_story_with_huffman or test_can_encode_a_story_no_huffman or test_decode_either_succeeds_or_raises_error)" %files %{python_files} %license LICENSE