From 503cd915ad91c4aec9553ff0e8e080647de492ba Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Wed, 18 Mar 2020 06:17:53 +0100 Subject: [PATCH] - really run tests (setup tests just check dependencies, prints deprecation warning and runs 0 tests) - fixed docs packaging --- python-cryptography.spec | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) 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 -- 2.43.0