Now that addons are not documented on the wiki anymore wiki_url does not make much sense.
- For 2.83 (LTS) a warning is hidden behind blender -d
- 2.90 always show the warning
- 2.93 (LTS) remove wiki_url
Differential D7015
Addons: Deprecate wiki_url Authored by Aaron Carlisle (Blendify) on Mar 4 2020, 12:01 AM.
Details Now that addons are not documented on the wiki anymore wiki_url does not make much sense.
Diff Detail Event Timeline
Comment Actions I'd prefer this be handled in addon_utils.module_bl_info, instead of the UI code, which gets a bit messy. Made some other minor changes too:
Comment Actions From Campbell's patch: print(
"Warning: add-on {:s}: 'wiki_url' is deprecated please use 'doc_url' instead!\n"
" {!r}".format(
addon_info["name"],
getattr(mod, "__file__", "<unknown>"),
))I wouldn't use .format() any more now that we have f-strings. Rather would do this: filename = getattr(mod, "__file__", "<unknown>")
print(
f"Warning: add-on {addon_info['name']}: 'wiki_url' is deprecated please use "
f"'doc_url' instead!\n {filename}"
)Note that I also removed the !r format string. !r would cause all backslashes in Windows paths to be escaped, which means you wouldn't be able to just copy-paste the path to an editor or file manager. @Aaron Carlisle (Blendify) Please provide more context in the patch description. We've just talked about these changes, so it's fresh in our minds, but when someone wants to know the reasoning behind this change months or years from now, it'll be hard to follow. | ||||||