diff --git a/CHANGELOG.md b/CHANGELOG.md index 096e966..b35035a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,7 +26,7 @@ You can find our backwards-compatibility policy [here](https://github.com/hynek/ ### Removed -- Python 3.7 is not supported anymore. +- Python 3.7 and 3.8 are not supported anymore. [#186](https://github.com/hynek/argon2-cffi/pull/186) diff --git a/pyproject.toml b/pyproject.toml index 5d0cff5..2d4bac1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,7 +14,7 @@ name = "argon2-cffi" description = "Argon2 for Python" authors = [{ name = "Hynek Schlawack", email = "hs@ox.cx" }] dynamic = ["version", "readme"] -requires-python = ">=3.8" +requires-python = ">=3.9" license = "MIT" license-files = ["LICENSE"] keywords = ["password", "hash", "hashing", "security"] @@ -23,7 +23,6 @@ classifiers = [ "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", diff --git a/tests/test_legacy.py b/tests/test_legacy.py index af3a947..d069d95 100644 --- a/tests/test_legacy.py +++ b/tests/test_legacy.py @@ -125,18 +125,20 @@ class TestHash: """ Passing an argument of wrong type raises TypeError. """ - with pytest.deprecated_call( - match="argon2.hash_password is deprecated" - ), pytest.raises(TypeError): + with ( + pytest.deprecated_call(match="argon2.hash_password is deprecated"), + pytest.raises(TypeError), + ): hash_password("oh no, unicode!") def test_illegal_argon2_parameter(self): """ Raises HashingError if hashing fails. """ - with pytest.deprecated_call( - match="argon2.hash_password is deprecated" - ), pytest.raises(HashingError): + with ( + pytest.deprecated_call(match="argon2.hash_password is deprecated"), + pytest.raises(HashingError), + ): hash_password(TEST_PASSWORD, memory_cost=1) @given(st.binary(max_size=128)) @@ -174,16 +176,22 @@ class TestVerify: """ Given a valid hash and password and wrong type, we fail. """ - with pytest.deprecated_call( - match="argon2.verify_password is deprecated" - ), pytest.raises(VerificationError): + with ( + pytest.deprecated_call( + match="argon2.verify_password is deprecated" + ), + pytest.raises(VerificationError), + ): verify_password(TEST_HASH_I, TEST_PASSWORD, Type.D) def test_wrong_arg_type(self): """ Passing an argument of wrong type raises TypeError. """ - with pytest.deprecated_call( - match="argon2.verify_password is deprecated" - ), pytest.raises(TypeError): + with ( + pytest.deprecated_call( + match="argon2.verify_password is deprecated" + ), + pytest.raises(TypeError), + ): verify_password(TEST_HASH_I, TEST_PASSWORD.decode("ascii")) diff --git a/tox.ini b/tox.ini index 975a61f..d882713 100644 --- a/tox.ini +++ b/tox.ini @@ -3,7 +3,7 @@ min_version = 4 env_list = pre-commit, mypy-pkg, - py3{8,9,10,11,12,13,14}-{tests,mypy} + py3{9,10,11,12,13,14}-{tests,mypy} py312-bindings-main, pypy3-tests, system-argon2,