Drop 3.8
This commit is contained in:
parent
71a5f0f84c
commit
47ef1e4bb7
@ -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)
|
||||
|
||||
|
||||
|
||||
@ -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",
|
||||
|
||||
@ -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(
|
||||
with (
|
||||
pytest.deprecated_call(
|
||||
match="argon2.verify_password is deprecated"
|
||||
), pytest.raises(VerificationError):
|
||||
),
|
||||
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(
|
||||
with (
|
||||
pytest.deprecated_call(
|
||||
match="argon2.verify_password is deprecated"
|
||||
), pytest.raises(TypeError):
|
||||
),
|
||||
pytest.raises(TypeError),
|
||||
):
|
||||
verify_password(TEST_HASH_I, TEST_PASSWORD.decode("ascii"))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user