Skip to content

Fix deprecation messages for vendoring unused things #23711

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

Merged
merged 1 commit into from
Aug 24, 2022

Conversation

QuLogic
Copy link
Member

@QuLogic QuLogic commented Aug 23, 2022

PR Summary

Formerly, the deprecation message would say "Use Vendor the code instead"; now they say "Use a vendored copy of the code instead", etc.

This weird grammar can cause some confusion, cf #23244

PR Checklist

Tests and Styling

  • [n/a] Has pytest style unit tests (and pytest passes).
  • Is Flake 8 compliant (install flake8-docstrings and run flake8 --docstring-convention=all).

Documentation

  • [n/a] New features are documented, with examples if plot related.
  • [n/a] New features have an entry in doc/users/next_whats_new/ (follow instructions in README.rst there).
  • [n/a] API changes documented in doc/api/next_api_changes/ (follow instructions in README.rst there).
  • [n/a] Documentation is sphinx and numpydoc compliant (the docs should build without error).

@QuLogic QuLogic added this to the v3.6.0 milestone Aug 23, 2022
@@ -436,7 +436,7 @@ def impl(args, regex, min_ver=None, ignore_exit_code=False):
raise ValueError("Unknown executable: {!r}".format(name))


@_api.deprecated("3.6", alternative="Vendor the code")
@_api.deprecated("3.6", alternative="a vendored copy this function")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
@_api.deprecated("3.6", alternative="a vendored copy this function")
@_api.deprecated("3.6", alternative="a vendored copy of this function")

@@ -88,7 +88,7 @@ def wrapped_callable(*args, **kwargs):
return make_cleanup


@_api.deprecated("3.6", alternative="Vendor the existing code "
@_api.deprecated("3.6", alternative="a vendored copy of the existing code "
"of _check_freetype_version.")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"of _check_freetype_version.")
"of _check_freetype_version")

@@ -45,7 +45,7 @@ def tearDownClass(cls):
cls._cm.__exit__(None, None, None)


@_api.deprecated("3.6", alternative="Vendor the existing code, "
@_api.deprecated("3.6", alternative="a vendored copy of the existing code, "
"including the private function _cleanup_cm.")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"including the private function _cleanup_cm.")
"including the private function _cleanup_cm")

@@ -32,7 +32,7 @@ def _cleanup_cm():
plt.close("all")


@_api.deprecated("3.6", alternative="Vendor the existing code, "
@_api.deprecated("3.6", alternative="a vendored copy of the existing code, "
"including the private function _cleanup_cm.")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"including the private function _cleanup_cm.")
"including the private function _cleanup_cm")

Formerly, the deprecation message would say "Use Vendor the code
instead"; now they say "Use a vendored copy of the code instead", etc.
@QuLogic QuLogic force-pushed the fix-vendoring-deprecations branch from 624f588 to 65bbec0 Compare August 23, 2022 22:53
@oscargus oscargus merged commit 1d5221b into matplotlib:main Aug 24, 2022
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Aug 24, 2022
oscargus added a commit that referenced this pull request Aug 24, 2022
…711-on-v3.6.x

Backport PR #23711 on branch v3.6.x (Fix deprecation messages for vendoring unused things)
@QuLogic QuLogic deleted the fix-vendoring-deprecations branch August 24, 2022 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants