diff --git a/PyNaCl-1.3.0.tar.gz b/PyNaCl-1.3.0.tar.gz deleted file mode 100644 index 6687de8..0000000 --- a/PyNaCl-1.3.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0c6100edd16fefd1557da078c7a31e7b7d7a52ce39fdca2bec29d4f7b6e7600c -size 3351016 diff --git a/PyNaCl-1.4.0.tar.gz b/PyNaCl-1.4.0.tar.gz new file mode 100644 index 0000000..1ba0cd5 --- /dev/null +++ b/PyNaCl-1.4.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:54e9a2c849c742006516ad56a88f5c74bf2ce92c9f67435187c3c5953b346505 +size 3416950 diff --git a/fix_tests.patch b/fix_tests.patch deleted file mode 100644 index b1786ea..0000000 --- a/fix_tests.patch +++ /dev/null @@ -1,71 +0,0 @@ -From 3479eaed36a32c6bd91331573a450a5bf099bdd5 Mon Sep 17 00:00:00 2001 -From: Alex Gaynor -Date: Mon, 1 Jul 2019 00:11:38 -0400 -Subject: [PATCH] Fixed tests for change in pytest repr (#546) - -* Fixed tests for change in pytest repr - -* Fixed tests for change in pytest repr - -* Fixed tests for change in pytest repr - -* Fixed tests for change in pytest repr ---- - tests/test_box.py | 2 +- - tests/test_sealed_box.py | 2 +- - tests/test_secret.py | 2 +- - tests/test_signing.py | 2 +- - 4 files changed, 4 insertions(+), 4 deletions(-) - -diff --git a/tests/test_box.py b/tests/test_box.py -index d547ac27..46f3b793 100644 ---- a/tests/test_box.py -+++ b/tests/test_box.py -@@ -268,7 +268,7 @@ def test_box_wrong_length(): - def check_type_error(expected, f, *args): - with pytest.raises(TypeError) as e: - f(*args) -- assert expected in str(e) -+ assert expected in str(e.value) - - - def test_wrong_types(): -diff --git a/tests/test_sealed_box.py b/tests/test_sealed_box.py -index f7ba15c3..49ea2324 100644 ---- a/tests/test_sealed_box.py -+++ b/tests/test_sealed_box.py -@@ -110,7 +110,7 @@ def test_sealed_box_decryption(privalice, pubalice, plaintext, encrypted): - def check_type_error(expected, f, *args): - with pytest.raises(TypeError) as e: - f(*args) -- assert expected in str(e) -+ assert expected in str(e.value) - - - def test_wrong_types(): -diff --git a/tests/test_secret.py b/tests/test_secret.py -index 3b52459a..73987fcb 100644 ---- a/tests/test_secret.py -+++ b/tests/test_secret.py -@@ -142,7 +142,7 @@ def test_secret_box_wrong_lengths(): - def check_type_error(expected, f, *args): - with pytest.raises(TypeError) as e: - f(*args) -- assert expected in str(e) -+ assert expected in str(e.value) - - - def test_wrong_types(): -diff --git a/tests/test_signing.py b/tests/test_signing.py -index 4304afb9..3e2cf359 100644 ---- a/tests/test_signing.py -+++ b/tests/test_signing.py -@@ -219,7 +219,7 @@ def test_key_conversion(self): - def check_type_error(expected, f, *args): - with pytest.raises(TypeError) as e: - f(*args) -- assert expected in str(e) -+ assert expected in str(e.value) - - - def test_wrong_types(): diff --git a/python-PyNaCl-hypothesis-remove-average_size.patch b/python-PyNaCl-hypothesis-remove-average_size.patch deleted file mode 100644 index c5635d4..0000000 --- a/python-PyNaCl-hypothesis-remove-average_size.patch +++ /dev/null @@ -1,21 +0,0 @@ -iff --git a/tests/test_bindings.py b/tests/test_bindings.py -index 22930cc7..d7951a21 100644 ---- a/tests/test_bindings.py -+++ b/tests/test_bindings.py -@@ -306,7 +306,6 @@ def test_unpad_not_padded(): - - - @given(binary(min_size=0, -- average_size=128, - max_size=2049), - integers(min_value=16, - max_value=256) -@@ -320,7 +319,6 @@ def test_pad_sizes(msg, bl_sz): - - - @given(binary(min_size=0, -- average_size=128, - max_size=2049), - integers(min_value=16, - max_value=256) - diff --git a/python-PyNaCl.changes b/python-PyNaCl.changes index 31f217a..aa303eb 100644 --- a/python-PyNaCl.changes +++ b/python-PyNaCl.changes @@ -1,3 +1,31 @@ +------------------------------------------------------------------- +Sun Jul 5 14:42:24 UTC 2020 - Michael Ströder + +- Update to 1.4.0 + * Update ``libsodium`` to 1.0.18. + * **BACKWARDS INCOMPATIBLE:** We no longer distribute 32-bit ``manylinux1`` + wheels. Continuing to produce them was a maintenance burden. + * Added support for Python 3.8, and removed support for Python 3.4. + * Add low level bindings for extracting the seed and the public key + from crypto_sign_ed25519 secret key + * Add low level bindings for deterministic random generation. + * Add ``wheel`` and ``setuptools`` setup_requirements in ``setup.py`` (#485) + * Fix checks on very slow builders (#481, #495) + * Add low-level bindings to ed25519 arithmetic functions + * Update low-level blake2b state implementation + * Fix wrong short-input behavior of SealedBox.decrypt() (#517) + * Raise CryptPrefixError exception instead of InvalidkeyError when trying + to check a password against a verifier stored in a unknown format (#519) + * Add support for minimal builds of libsodium. Trying to call functions + not available in a minimal build will raise an UnavailableError + exception. To compile a minimal build of the bundled libsodium, set + the SODIUM_INSTALL_MINIMAL environment variable to any non-empty + string (e.g. ``SODIUM_INSTALL_MINIMAL=1``) for setup. +- removed obsolete back-port patch: + * fix_tests.patch + * hypothesis-no-unilmited.patch + * python-PyNaCl-hypothesis-remove-average_size.patch + ------------------------------------------------------------------- Fri Apr 17 06:48:28 UTC 2020 - Tomáš Chvátal diff --git a/python-PyNaCl.spec b/python-PyNaCl.spec index 3502328..32ed1a3 100644 --- a/python-PyNaCl.spec +++ b/python-PyNaCl.spec @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-PyNaCl -Version: 1.3.0 +Version: 1.4.0 Release: 0 Summary: Python binding to the Networking and Cryptography (NaCl) library License: Apache-2.0 @@ -26,13 +26,11 @@ Group: Development/Languages/Python URL: https://github.com/pyca/pynacl/ Source: https://pypi.org/packages/source/P/PyNaCl/PyNaCl-%{version}.tar.gz # https://github.com/pyca/pynacl/commit/a8c08b18f3a2e8f2140c531afaf42715fcab68e7 -Patch0: python-PyNaCl-hypothesis-remove-average_size.patch -Patch1: fix_tests.patch -Patch2: hypothesis-no-unilmited.patch BuildRequires: %{python_module cffi} BuildRequires: %{python_module devel} BuildRequires: %{python_module pycparser} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: pkgconfig BuildRequires: python-rpm-macros @@ -52,7 +50,6 @@ speed. %prep %setup -q -n PyNaCl-%{version} -%autopatch -p1 rm -Rf src/libsodium %build