-
-
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
Move sopel.web utilities into sopel.tools #1318
Comments
Also |
|
@freeboson Honestly, I go back and forth on whether to actually remove But I'll admit I'm devoting thought to a reverse-course. What I personally don't like about the As far as moving things to |
I started working on this this weekend. Not quite ready to open a PR for it just yet, but I did write up a plan in sopel-irc/sopel.chat@56a665d, copied here in case that commit eventually disappears (it's on a WIP branch that will probably get rebased several times before going live). The WIP code changes are also pushed here, for those curious enough to scan the branch list. The tl;dr: Sopel 7 will have both While the whole For Sopel 8, we intend to move
In Sopel 8, we will remove the pointers from
We will also tweak the module constants:
New additions to Sopel's web tools (there may be a few) will be available only |
Should have been closed with merge of #1616, but someone (*cough* me) forgot to link things. |
Since
sopel.web
has been officially deprecated for over two years (and unofficially deprecated for even longer), I think it's time to consider what should actually be removed and what should be kept. The module as it currently exists insopel.web
should probably go away in Sopel 7, as we've had plenty of warning that it's deprecated. But some of its functions aren't marked@deprecated
and do not seem to have direct replacements inrequests
or Python's stdlib.Specifically, the
quote
,quote_query
,iri_to_uri
, anddecode
utility functions seem to have use cases still. I believe it would be best to put those where they seem like they belong:sopel.tools
. That would get rid ofsopel.web
entirely, but preserve the bits that are not replaced by droppingrequests
in instead. There would, of course, be a transitional period (between the 6.x series and Sopel 7) during which the existing functions would be available in both namespaces.The names of the new functions in
sopel.tools
are undecided, as I've just thought up this plan tonight. I'm not against having asopel.tools.web
subpackage, for example. I welcome input from module developers, who will be affected if staple functions for API interactions, likesopel.web.quote()
, disappear.Milestone target and details very much subject to change, as this is still in the conceptual/planning phase.
The text was updated successfully, but these errors were encountered: