-
-
Notifications
You must be signed in to change notification settings - Fork 402
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
help: replace with dependency on sopel-help
#2332
Conversation
Are the internals that Otherwise, I'm 👎 on replacing an essential built-in plugin like this with a no-op. Moving to package it separately (so it can be updated independently of core) is fine, but core should require it. |
Not yet! This is in the work with Sopel 8, by replacing the hard-coded dict and stuffs like that by the Rule Managers, which could be the origin of a new chapter in "advanced tips & tricks" in the documentation.
Alright then! Waiting on #2328 first, then I'll add it to the list of install-requires. 😁 |
5501db0
to
9ad2400
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You know, the irony here is that I was ready to merge this despite the use of "module" because it's unlikely that most users would ever see it. But because you rebased it onto another PR that isn't merged yet, I have to wait, and so do you. 😝
(If you wait until #2342 goes in before amending this one, the UI will be less confusing. The extra commits will disappear after you force-push, but only if they've been merged.)
Oh, I just had another (possibly stupid) idea: Could Obviously I know it can, but is the idea good? 😛 |
Wait is over; #2342 has been merged. Amend away, and soon ye shall receive another merge. 😁 |
0b55148
to
f671428
Compare
The help built-in plugin is obsolete, and replaced by sopel-help which can be installed with pip install sopel-help (as a standalone install) or when installing Sopel through pip. A warning has been added to the sopel.modules.help.setup() in case someone install Sopel without its dependencies. All rules/commands have been removed. Thank you for your service, help, you will be remembered. Co-authored-by: dgw <dgw@technobabbl.es>
f671428
to
d979abf
Compare
Done. I had to fix the message, and decided to keep a single |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and decided to keep a single
\'
because I could have that or use double quotes and use two\"
for the last line.
Maybe you forgot that the below totally works 😁 but it's totally a choice between two almost equally annoying alternatives (mixed quotes vs. escapes). The third option would be using double quotes and wrapping the command in something else, maybe backticks.
Anyway, I'm already over it.
>>> print(
... "Sopel's built-in help plugin is obsolete. "
... 'Install sopel-help as the official help plugin for Sopel.\n'
... 'You can install sopel-help with "pip install sopel-help".')
Sopel's built-in help plugin is obsolete. Install sopel-help as the official help plugin for Sopel.
You can install sopel-help with "pip install sopel-help".
sopel-help
I did not. I remembered that you didn't like that syntax on my attempt at using flake8-quotes, mixing |
Well, I don't. But I also don't like escapes. But this is also almost never going to be seen by anyone, until its eventual deletion in 9.0 or whatever, so again: I'm over it. 😁 😹 |
Description
Fix #1212 by proxy.
Make the built-in
help
plugin obsolete with warning in itssetup()
hook and all rules have been removed (rules & commands), and installing Sopel now requiressopel-help
.Since it is possible to install a package without its dependencies, I kept
help.py
so users can have a warning. It isn't much, but it might help someone.This is based of #2342 for Python 3.10.
Thank you for your service, help, you will be remembered.
Checklist
make qa
(runsmake quality
andmake test
)