diff --git a/backport-Don-t-emit-warnings-here-there-s-no-point-137.patch b/backport-Don-t-emit-warnings-here-there-s-no-point-137.patch new file mode 100644 index 0000000000000000000000000000000000000000..f829dacffc2ece0a3efe6a6fa70c7ca6fd718cbc --- /dev/null +++ b/backport-Don-t-emit-warnings-here-there-s-no-point-137.patch @@ -0,0 +1,30 @@ +From ea76ee82eba1700e1143022050b368460fc9cd7f Mon Sep 17 00:00:00 2001 +From: Alex Gaynor +Date: Sun, 3 Dec 2017 20:43:38 -0600 +Subject: [PATCH 01/73] Don't emit warnings here, there's no point (#137) + +* Don't emit warnings here, there's no point + +* whoops here +--- + tests/test_bcrypt.py | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/tests/test_bcrypt.py b/tests/test_bcrypt.py +index 7ad40f7..3f00875 100644 +--- a/tests/test_bcrypt.py ++++ b/tests/test_bcrypt.py +@@ -400,7 +400,9 @@ def test_checkpw_extra_data(): + b"\x43\x66\x6c\x9b\x09\xef\x33\xed\x8c\x27\xe8\xe8\xf3\xe2\xd8\xe6" + ]]) + def test_kdf(rounds, password, salt, expected): +- derived = bcrypt.kdf(password, salt, len(expected), rounds) ++ derived = bcrypt.kdf( ++ password, salt, len(expected), rounds, ignore_few_rounds=True ++ ) + assert derived == expected + + +-- +2.23.0 + diff --git a/python-bcrypt.spec b/python-bcrypt.spec index a6a3579912ba85515224344d7857fe38526f104d..0ecbbc3e30ce5e566e7cef9ae7f293e0ad83ad77 100644 --- a/python-bcrypt.spec +++ b/python-bcrypt.spec @@ -1,11 +1,13 @@ Name: python-bcrypt Summary: Good password hashing for your software and your servers Version: 3.1.4 -Release: 7 +Release: 8 License: ASL 2.0 and Public Domain and BSD URL: http://pypi.python.org/pypi/bcrypt Source0: https://files.pythonhosted.org/packages/source/b/bcrypt/bcrypt-%{version}.tar.gz +Patch6000: backport-Don-t-emit-warnings-here-there-s-no-point-137.patch + BuildRequires: gcc python2-devel python2-setuptools python2-six python2-pytest python2-cffi BuildRequires: python3-devel python3-setuptools python3-cffi python3-six python3-pytest @@ -37,7 +39,7 @@ Good password hashing for your software and your servers. This library should be compatible with py-bcrypt and it will run on Python 3.4+ and PyPy 2.6+. %prep -%autosetup -n bcrypt-%{version} +%autosetup -n bcrypt-%{version} -p1 %build %{__python2} setup.py build @@ -69,5 +71,11 @@ This library should be compatible with py-bcrypt and it will run on Python 3.4+ %changelog +* Tue Mar 16 2021 extinctfire - 3.1.4-8 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:Don't emit warning in test_kdf, there's no point whoops here + * Wed Nov 13 2019 Lijin Yang - 3.1.4-7 - init package