-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix DeprecationWarning with patched python-json-logger #103
Conversation
Running tests with https://github.com/nhairs/python-json-logger 3.1.0 produces: DeprecationWarning: pythonjsonlogger.jsonlogger has been moved to pythonjsonlogger.json It's easy enough to be compatible with both.
for more information, see https://pre-commit.ci
e692ff5
to
e4bbaf5
Compare
4f32aa1
to
eab9ba8
Compare
I don't know who is responsible for this repo, but will try to do what I can to push things a bit forward. |
I will also bump min supported version to 3.9. |
Wow, after a long battle, test are passing; merging. |
|
||
from jsonschema import ValidationError | ||
from pythonjsonlogger import jsonlogger | ||
from packaging.version import parse |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a novel (though common) dependency: we'll probably ship it on conda-forge with it added, but will PR up as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, yes. Thanks for catching that.
Running tests with https://github.com/nhairs/python-json-logger 3.1.0 produces:
DeprecationWarning: pythonjsonlogger.jsonlogger has been moved to pythonjsonlogger.json
It's easy enough to be compatible with both.