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

hawkmoth.ext.transformations and hawkmoth.util.doccompat deprecation #246

Merged
merged 3 commits into from
Sep 11, 2024

Conversation

jnikula
Copy link
Owner

@jnikula jnikula commented Aug 31, 2024

Time to start getting rid of cautodoc_transformations, hawkmoth.ext.transformations, and hawkmoth.util.doccompat. The better alternatives i.e. hawkmoth.ext.javadoc extension and hawkmoth-process-docstring event have been in place since v0.13.

@jnikula jnikula changed the title Transformations deprecation hawkmoth.ext.transformations and hawkmoth.util.doccompat deprecation Aug 31, 2024
@jnikula
Copy link
Owner Author

jnikula commented Sep 7, 2024

Also remove the deprecated cautodoc_root and cautodoc_clang config options.

Copy link
Collaborator

@BrunoMSantos BrunoMSantos left a comment

Choose a reason for hiding this comment

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

Good riddance!

Have you been keeping tabs on Mesa? I don't think they'll be impacted from what I've seen, but you've been more involved.

src/hawkmoth/__init__.py Show resolved Hide resolved
…doccompat

The introduction of the cautodoc_transformations config option was a
mistake to begin with. The right way forward is the
hawkmoth-process-docstring event. The hawkmoth.ext.transformations
extension was introduced as a temporary solution to not immediately pull
the plug on cautodoc_transformations.

It's time to deprecate the cautodoc_transformations config, the
hawkmoth.ext.transformations extension, and the hawkmoth.util.doccompat
module.

Everyone should move to either the hawkmoth.ext.javadoc or
hawkmoth.ext.napoleon extensions, or if they're not enough, implement
their own extensions through the hawkmoth-process-docstring event. The
javadoc/doxygen helpers in doccompat are inferior to the
hawkmoth.ext.javadoc extension, and the kernel-doc "support" is two
regexes in a row.

Functionally, the deprecation means 1) not loading
hawkmoth.ext.transformations automatically, i.e. you have to manually
add it to extensions in conf.py, and 2) deprecation messages on loading
the extension and the module.
…essing

The hawkmoth.util.doccompat module has been deprecated. Remove the
--compat option and the dependency on the module.

The alternative is to use the --process-docstring option. It does lack
the kernel-doc support, but it was simplistic to begin with.
The cautodoc_root and cautodoc_clang config options have been deprecated
in favour of hawkmoth_root and hawkmoth_clang since Hawkmoth
v0.13.0. Remove them.
@jnikula
Copy link
Owner Author

jnikula commented Sep 11, 2024

Have you been keeping tabs on Mesa? I don't think they'll be impacted from what I've seen, but you've been more involved.

Double-checked, should not have an impact.

@jnikula jnikula merged commit d85e0c5 into master Sep 11, 2024
6 checks passed
@jnikula jnikula deleted the transformations-deprecation branch September 11, 2024 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants