Replace confit with confuse - #2061
Conversation
|
Nice!! This is looking fantastic! Great work! There's one last unresolved question in my mind: should we somehow provide an alias so |
|
See I was thinking about that before but I'm not entirely sure, what do you think of making a |
|
Great idea! I'm not 100% sure how to accomplish such a warning, but I have every confidence that you do. 👍 |
|
Well when you import a file the file is only executed once, meaning we could just get the beets logger (using |
|
Well I've found a rather interesting trick. Here is the contents of for key, value in __import__('confuse').__dict__.items():
globals()[key] = value
del key, valueAnd the odd behaviour: from beets.util import confit
print(confit.__file__) # .../confuse-0.4.0-py2.7.egg/confuse.pyI understand why it happens but I don't know if it is good or not, maybe we should ignore all variables prefixed with |
|
If we're really about to do this, then I'd like to get my changes merged into confit first. Also, what do folks think about making six a confit dependency? |
|
What features of |
|
Confuse is already Python 2/3 hybrid, FWIW. |
|
depends on how you feel about the ergonomics of some things. There are places in beets where we have to work around set bytes, and then don't decode them on exit when it seems like they should |
|
@jackwilsdon : why until august? |
|
See the linked comment from @sampsyo in the OP 😄. |
|
i should learn to read. I didn't go that far up! |
|
@sampsyo : if that's the case, why did you tell me to announce six already, and that we could start using it once your bugfix release is over? |
|
six is an easier dependency to add, since it's already packaged for all distributions. The other ones will require downstream people to introduce new packages for the code we're splitting off. |
|
It looks like this branch has fallen behind. If I'm understanding correctly, the original hold up was about notifying distro packagers about the new dependency. From my experience with Debian packaging there's quite a bit of inertia to adding new packages in general given that they so often get neglected over time. "We need to package |
|
In my fairly narrow experience, Debian represents the "high water mark" for difficulty in getting new packages and updates approved. (This is not meant as a criticism; it's just that Debian has settled on a careful, methodical, "high-touch" process that's at the opposite end of the spectrum from most other distros.) You're right that jumping right in and making it a dependency might be just what's needed to spur packaging. |
Use sampsyo/confuse (previously named confit) throughout beets instead of having our own copy of it.
This is part of #1966 that has been separated at the request of @jrobeson. Go there if you would like to see our discussion so far.
Note: This PR should not be merged until we've notified packagers of the new dependency (i.e. the 1st of August and 1.4.0).