- really run tests (setup tests just check dependencies, prints deprecation warning...
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 18 Mar 2020 05:17:53 +0000 (06:17 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Wed, 18 Mar 2020 05:17:53 +0000 (06:17 +0100)
- fixed docs packaging

python-cryptography.spec

index 219e6ee6371b259f9a4b7238f8d4f0f52925e47b..0a74e010dd15b618fc8c005ca368003c0de85c15 100644 (file)
@@ -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
This page took 0.044593 seconds and 4 git commands to generate.