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

DeprecationWarning in mkdocs 1.5.0 for use of warning_filter #173

Closed
johnthagen opened this issue Jul 27, 2023 · 5 comments
Closed

DeprecationWarning in mkdocs 1.5.0 for use of warning_filter #173

johnthagen opened this issue Jul 27, 2023 · 5 comments
Labels
fixed A fix has been submitted upgrade needed Evolution of libraries requires upgrade

Comments

@johnthagen
Copy link

https://github.com/fralau/mkdocs_macros_plugin/blob/f33011f324431731f26ac57f3910ffc217bc32b5/mkdocs_macros/util.py#L20

INFO    -  DeprecationWarning: warning_filter doesn't do anything since MkDocs 1.2 and will be removed soon. All messages on the `mkdocs` logger get counted automatically.
             File "lib/python3.10/site-packages/mkdocs_macros/util.py", line 20, in <module>
               from mkdocs.utils import warning_filter
             File "lib/python3.10/site-packages/mkdocs/utils/__init__.py", line 453, in __getattr__
               warnings.warn(

Environment

mkdocs                     1.5.0
mkdocs-htmlproofer-plugin  1.0.0
mkdocs-macros-plugin       1.0.2
mkdocs-material            9.2.0b2
mkdocs-material-extensions 1.1.1
mkdocs-video               1.5.0
@github-actions
Copy link

Welcome to this project and thank you!' first issue

@fralau fralau added the upgrade needed Evolution of libraries requires upgrade label Jul 27, 2023
fralau pushed a commit that referenced this issue Aug 3, 2023
  - issue shown as warnaing since mkdocs 1.5
@fralau fralau added the fixed A fix has been submitted label Aug 3, 2023
@fralau
Copy link
Owner

fralau commented Aug 3, 2023

@johnthagen Please check that it works for you?

@johnthagen
Copy link
Author

@fralau Happy to check. I'll be available to check in a few days.

@johnthagen
Copy link
Author

johnthagen commented Aug 7, 2023

@fralau I can confirm this issue is resolved on the latest master branch.

In my Poetry project I specified:

mkdocs-macros-plugin = { git = "https://github.com/fralau/mkdocs_macros_plugin.git", branch = "master" }
mkdocs                     1.5.0
mkdocs-htmlproofer-plugin  1.0.0
mkdocs-macros-plugin       1.0.4
mkdocs-material            9.2.0b2
mkdocs-material-extensions 1.1.1
mkdocs-video               1.5.0

No DeprecationWarning was shown during mkdocs serve.

@fralau
Copy link
Owner

fralau commented Aug 7, 2023

Pushed on pypi, v. 1.0.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed A fix has been submitted upgrade needed Evolution of libraries requires upgrade
Projects
None yet
Development

No branches or pull requests

2 participants