From: Jakub Bogusz Date: Wed, 18 Mar 2020 05:17:53 +0000 (+0100) Subject: - really run tests (setup tests just check dependencies, prints deprecation warning... X-Git-Tag: auto/th/python3-cryptography-35.0.0-0.1~9 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fpython3-cryptography.git;a=commitdiff_plain;h=503cd91 - really run tests (setup tests just check dependencies, prints deprecation warning and runs 0 tests) - fixed docs packaging --- diff --git a/python-cryptography.spec b/python-cryptography.spec index 219e6ee..0a74e01 100644 --- a/python-cryptography.spec +++ b/python-cryptography.spec @@ -146,11 +146,21 @@ Dokumentacja API modułu cryptography. export CFLAGS="%{rpmcflags}" %if %{with python2} -%py_build %{?with_tests:test} +%py_build + +%if %{with tests} +PYTHONPATH=$(echo $(pwd)/build-2/lib.*) \ +%{__python} -m pytest tests +%endif %endif %if %{with python3} -%py3_build %{?with_tests:test} +%py3_build + +%if %{with tests} +PYTHONPATH=$(echo $(pwd)/build-3/lib.*) \ +%{__python3} -m pytest tests +%endif %endif %if %{with doc} @@ -258,5 +268,5 @@ rm -rf $RPM_BUILD_ROOT %if %{with doc} %files apidocs %defattr(644,root,root,755) -%doc docs/_build/html/{_downloads,_modules,_static,development,hazmat,x509,*.html,*.js} +%doc docs/_build/html/{_downloads,_static,development,hazmat,x509,*.html,*.js} %endif