Skip to content

Commit 2548e3a

Browse files
authored
[pyproject] Support Python 3.13 (#23)
Resume testing orjson and msgspec against python 3.13. At the time of release for v3.1.0, orjon and msgspec could not be installed on python 3.13 as the packages did not support it. ### Test Plan - Unit tests
1 parent 2ed6762 commit 2548e3a

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.github/workflows/test-suite.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- "3.10"
4545
- "3.11"
4646
- "3.12"
47-
- "3.13-dev"
47+
- "3.13"
4848
os:
4949
- ubuntu-latest
5050
- windows-latest

docs/changelog.md

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111
- `pythonjsonlogger.[orjson,msgspec]` now throws a `pythonjsonlogger.exception.MissingPackageError` when required libraries are not available. These contain more information about what is missing whilst still being an `ImportError`.
1212
- `defaults` parameter is no longer ignored and now conforms to the standard library. Setting a defaults dictionary will add the specified keys if the those keys do not exist in a record or weren't passed by the `extra` parameter when logging a message.
1313
- `typing_extensions` is only installed on Python version < 3.10.
14+
- Support Python 3.13
15+
- `msgspec` has only been tested against pre-release versions.
1416

1517
Thanks @cjwatson and @bharel
1618

pyproject.toml

+3-1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ classifiers = [
3434
"Programming Language :: Python :: 3.10",
3535
"Programming Language :: Python :: 3.11",
3636
"Programming Language :: Python :: 3.12",
37+
"Programming Language :: Python :: 3.13",
3738
"Topic :: System :: Logging",
3839
"Typing :: Typed",
3940
]
@@ -45,8 +46,9 @@ GitHub = "https://github.com/nhairs/python-json-logger"
4546
[project.optional-dependencies]
4647
dev = [
4748
## Optional but required for dev
48-
"orjson;implementation_name!='pypy' and python_version<'3.13'",
49+
"orjson;implementation_name!='pypy'",
4950
"msgspec;implementation_name!='pypy' and python_version<'3.13'",
51+
"msgspec-python313-pre;implementation_name!='pypy' and python_version=='3.13'",
5052
## Lint
5153
"validate-pyproject[all]",
5254
"black",

0 commit comments

Comments
 (0)