Skip to content

Commit a978a75

Browse files
authored
Merge pull request #523 from nextstrain/cryptography-warning
Suppress warning from cryptography about deprecated Python 3.8 support
2 parents 9665127 + 0243f05 commit a978a75

3 files changed

Lines changed: 16 additions & 2 deletions

File tree

CHANGES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ development source code and as such may not be routinely kept up to date.
2727
* Updated the dependency list to explicitly include `boto3`, used for various
2828
commands.
2929
([#499](https://github.com/nextstrain/cli/pull/499))
30+
* Suppress warning from cryptography about deprecated Python 3.8 support
31+
([#523](https://github.com/nextstrain/cli/pull/523))
3032

3133
# 10.5.0 (25 March 2026)
3234

doc/changes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ development source code and as such may not be routinely kept up to date.
3232
* Updated the dependency list to explicitly include `boto3`, used for various
3333
commands.
3434
([#499](https://github.com/nextstrain/cli/pull/499))
35+
* Suppress warning from cryptography about deprecated Python 3.8 support
36+
([#523](https://github.com/nextstrain/cli/pull/523))
3537

3638
(v10-5-0)=
3739
## 10.5.0 (25 March 2026)

nextstrain/cli/authn/session.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,18 @@
22
Authentication sessions.
33
"""
44
import boto3
5-
import jwt
6-
import jwt.exceptions
5+
import warnings
6+
7+
# Ignore noisy warning from cryptography 47.0.0 about deprecated support for Python 3.8
8+
with warnings.catch_warnings():
9+
warnings.filterwarnings(
10+
"ignore",
11+
message = "Python 3\\.8 is no longer supported by the Python core team and support for it is deprecated",
12+
category = UserWarning
13+
)
14+
import jwt
15+
import jwt.exceptions
16+
717
import secrets
818

919
from base64 import b64encode

0 commit comments

Comments
 (0)