Skip to content
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

Merged
merged 13 commits into from
Dec 17, 2024

Conversation

cjwatson
Copy link
Contributor

@cjwatson cjwatson commented Nov 5, 2024

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.

cjwatson and others added 2 commits November 5, 2024 11:16
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.
@Carreau Carreau added the bug Something isn't working label Dec 17, 2024
@Carreau Carreau force-pushed the jsonlogger-deprecation branch from e692ff5 to e4bbaf5 Compare December 17, 2024 09:29
@Carreau Carreau force-pushed the jsonlogger-deprecation branch from 4f32aa1 to eab9ba8 Compare December 17, 2024 09:39
@Carreau
Copy link
Member

Carreau commented Dec 17, 2024

I don't know who is responsible for this repo, but will try to do what I can to push things a bit forward.

@Carreau
Copy link
Member

Carreau commented Dec 17, 2024

I will also bump min supported version to 3.9.

@Carreau
Copy link
Member

Carreau commented Dec 17, 2024

Wow, after a long battle, test are passing; merging.

@Carreau Carreau merged commit 93d37c6 into jupyter:main Dec 17, 2024
22 checks passed

from jsonschema import ValidationError
from pythonjsonlogger import jsonlogger
from packaging.version import parse
Copy link
Contributor

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.

Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants