15
0
forked from pool/python-hpack
Tomáš Chvátal
2019-07-19 09:56:34 +00:00
committed by Git OBS Bridge
parent b8bed9e1c9
commit cfbfd65342
2 changed files with 9 additions and 4 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Jul 19 09:49:33 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Restrict pytest5 for now
-------------------------------------------------------------------
Wed Jan 2 12:47:37 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -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