confit: replace with a wrapper around confuse

This re-exports all of the confuse module under `beets.util.confit` and
patches in the minimum subset of commits to confit that have not yet
been ported to confuse such that the test suite passes. A warning is
issued when importing from the deprecated namespace.
This commit is contained in:
Carl Suster 2019-04-19 19:03:35 +10:00
parent 4fc9e2686b
commit e2d7780f97
3 changed files with 56 additions and 1465 deletions

File diff suppressed because it is too large Load diff

View file

@ -91,6 +91,7 @@ setup(
'musicbrainzngs>=0.4', 'musicbrainzngs>=0.4',
'pyyaml', 'pyyaml',
'mediafile>=0.1.0', 'mediafile>=0.1.0',
'confuse>=0.5.0',
] + [ ] + [
# Avoid a version of munkres incompatible with Python 3. # Avoid a version of munkres incompatible with Python 3.
'munkres~=1.0.0' if sys.version_info < (3, 5, 0) else 'munkres~=1.0.0' if sys.version_info < (3, 5, 0) else

View file

@ -25,6 +25,10 @@ deps =
coverage coverage
discogs-client discogs-client
[flake8]
per-file-ignores =
beets/util/confit.py:F821
[_flake8] [_flake8]
deps = deps =
flake8 flake8