Skip to content

Commit 9be77bc

Browse files
jstabenowclaude
andcommitted
Add v2.11.2
Official Python 3.14 support (classifier); verified import + full unit suite on 3.11-3.14. Test uses a 32+ byte JWT key to avoid PyJWT's InsecureKeyLengthWarning. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent dec7d8b commit 9be77bc

3 files changed

Lines changed: 11 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Changelog
22
---------
33

4+
## 2.11.2
5+
6+
- Add official support for Python 3.14 (classifier); verified: import + full unit suite pass on 3.11–3.14
7+
- Mod test uses a 32+ byte JWT key to avoid PyJWT's `InsecureKeyLengthWarning`
8+
49
## 2.11.1
510

611
- Docs: `ProcessEventFilter` fields verified against the Core source (`pid`, `domain`, `type`, `core_id`); document that filter values are case-insensitive, unanchored regex, AND-combined across fields

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
setup(
2121
name="datarhei-mediacore-client",
22-
version="2.11.1",
22+
version="2.11.2",
2323
url="https://github.com/datarhei/core-client-python",
2424
project_urls={
2525
"Source": "https://github.com/datarhei/core-client-python",
@@ -36,6 +36,7 @@
3636
"Programming Language :: Python :: 3.11",
3737
"Programming Language :: Python :: 3.12",
3838
"Programming Language :: Python :: 3.13",
39+
"Programming Language :: Python :: 3.14",
3940
"Topic :: datarhei Core Development :: Libraries",
4041
],
4142
python_requires=">=3.11",

tests/unit/test_client_unit.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ def test_expected_methods_are_exposed():
1313

1414

1515
def test_basic_login_uses_resolved_domain_in_url(monkeypatch):
16-
access = jwt.encode({"exp": 4102444800}, "secret", algorithm="HS256")
17-
refresh = jwt.encode({"exp": 4102444800}, "secret", algorithm="HS256")
16+
# 32+ byte key: avoids PyJWT's InsecureKeyLengthWarning on newer versions.
17+
secret = "secret" * 6
18+
access = jwt.encode({"exp": 4102444800}, secret, algorithm="HS256")
19+
refresh = jwt.encode({"exp": 4102444800}, secret, algorithm="HS256")
1820
seen = {}
1921

2022
class Response:

0 commit comments

Comments
 (0)