forked from pool/python-msoffcrypto-tool
Accepting request 827064 from home:jayvdb:py-submit
Replace nose with pytest OBS-URL: https://build.opensuse.org/request/show/827064 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-msoffcrypto-tool?expand=0&rev=10
This commit is contained in:
@@ -37,8 +37,8 @@ BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module coverage}
|
||||
BuildRequires: %{python_module cryptography >= 2.3}
|
||||
BuildRequires: %{python_module nose}
|
||||
BuildRequires: %{python_module olefile >= 0.45}
|
||||
BuildRequires: %{python_module pytest}
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
|
||||
@@ -60,7 +60,8 @@ wc -c msoffcrypto/method/xor_obfuscation.py | sed -n '/^0/{s/^0\s//;p}' | xargs
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%python_exec -m nose --with-doctest
|
||||
# pytest creates an illegitimate doctest case for __main__ which then fails
|
||||
%pytest --doctest-modules -k 'not __main__'
|
||||
|
||||
%post
|
||||
%python_install_alternative msoffcrypto-tool
|
||||
|
||||
Reference in New Issue
Block a user