[packages/python-cryptography] - really run tests (setup tests just check dependencies, prints deprecation warning and runs 0 tests

qboosh qboosh at pld-linux.org
Wed Mar 18 06:16:51 CET 2020


commit 503cd915ad91c4aec9553ff0e8e080647de492ba
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Mar 18 06:17:53 2020 +0100

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

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-cryptography.git/commitdiff/503cd915ad91c4aec9553ff0e8e080647de492ba



More information about the pld-cvs-commit mailing list