forked from pool/python-hpack
- Restrict pytest5 for now
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hpack?expand=0&rev=11
This commit is contained in:
committed by
Git OBS Bridge
parent
b8bed9e1c9
commit
cfbfd65342
@@ -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>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user