Skip to content

Commit

Permalink
fix: Suppress deprecation warning from Cryptography in asyncssh
Browse files Browse the repository at this point in the history
  • Loading branch information
titom73 committed Aug 6, 2024
1 parent 79b6ae3 commit f609045
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 8 additions & 0 deletions anta/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@

import importlib.metadata
import os
import warnings

from cryptography.utils import CryptographyDeprecationWarning

# Suppress deprecation messages from Crypto - See Issue 674 in asyncssh
# https://github.com/ronf/asyncssh/issues/674
warnings.filterwarnings("ignore", category=CryptographyDeprecationWarning)


__version__ = f"v{importlib.metadata.version('anta')}"
__credits__ = [
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ dependencies = [
"requests>=2.31.0",
"rich>=13.5.2,<14",
"httpx>=0.27.0",
"cryptography<43.0.0",
]
keywords = [
"test",
Expand Down

0 comments on commit f609045

Please sign in to comment.