- merged 2.8 from PLD master
authorMarcin Krol <hawk@tld-linux.org>
Sun, 19 Apr 2020 11:16:29 +0000 (13:16 +0200)
committerMarcin Krol <hawk@tld-linux.org>
Sun, 19 Apr 2020 11:16:29 +0000 (13:16 +0200)
python-cryptography.spec

index 71ec7faa7352004907b40e59b60ea31772730496..4996c85353c4d1c9aade645d487d7da8e95b494b 100644 (file)
@@ -9,16 +9,16 @@
 Summary:       Crypthography library for Python 2
 Summary(pl.UTF-8):     Biblioteka Cryptography dla Pythona 2
 Name:          python-cryptography
-Version:       2.7
-Release:       2
+Version:       2.8
+Release:       1
 License:       Apache v2.0 or BSD
 Group:         Libraries/Python
 #Source0Download: https://pypi.org/simple/cryptography/
 Source0:       https://files.pythonhosted.org/packages/source/c/cryptography/cryptography-%{version}.tar.gz
-# Source0-md5: 7dfe1035cae43569e571318f000462a4
+# Source0-md5: 77730058b556c6d9838679a94c6229ce
 #Source1Download: https://pypi.org/simple/cryptography_vectors/
 Source1:       https://files.pythonhosted.org/packages/source/c/cryptography-vectors/cryptography_vectors-%{version}.tar.gz
-# Source1-md5: 1a518a28ed9c924ca6c570aa8ea0c334
+# Source1-md5: a744ed29bb9ef56b3a50317fea3b218e
 URL:           https://cryptography.io/
 BuildRequires: openssl-devel >= 1.0.1
 BuildRequires: rpm-pythonprov
@@ -149,17 +149,17 @@ export CFLAGS="%{rpmcflags}"
 %py_build
 
 %if %{with tests}
-PYTHONPATH=$(pwd) \
-%{__python} -m pytest tests  -k 'not test_dh_parameters_supported and not test_load_ecdsa_no_named_curve'
+PYTHONPATH=$(echo $(pwd)/build-2/lib.*) \
+%{__python} -m pytest tests
 %endif
 %endif
 
-%if %{with python2}
+%if %{with python3}
 %py3_build
 
 %if %{with tests}
-PYTHONPATH=$(pwd) \
-%{__python3} -m pytest tests  -k 'not test_dh_parameters_supported and not test_load_ecdsa_no_named_curve'
+PYTHONPATH=$(echo $(pwd)/build-3/lib.*) \
+%{__python3} -m pytest tests
 %endif
 %endif
 
@@ -268,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