Skip to content

Commit

Permalink
[pyproject] Support Python 3.13 (#23)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
nhairs authored Dec 10, 2024
1 parent 2ed6762 commit 2548e3a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- "3.10"
- "3.11"
- "3.12"
- "3.13-dev"
- "3.13"
os:
- ubuntu-latest
- windows-latest
Expand Down
2 changes: 2 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `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`.
- `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.
- `typing_extensions` is only installed on Python version < 3.10.
- Support Python 3.13
- `msgspec` has only been tested against pre-release versions.

Thanks @cjwatson and @bharel

Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: System :: Logging",
"Typing :: Typed",
]
Expand All @@ -45,8 +46,9 @@ GitHub = "https://github.com/nhairs/python-json-logger"
[project.optional-dependencies]
dev = [
## Optional but required for dev
"orjson;implementation_name!='pypy' and python_version<'3.13'",
"orjson;implementation_name!='pypy'",
"msgspec;implementation_name!='pypy' and python_version<'3.13'",
"msgspec-python313-pre;implementation_name!='pypy' and python_version=='3.13'",
## Lint
"validate-pyproject[all]",
"black",
Expand Down

0 comments on commit 2548e3a

Please sign in to comment.