Merge branch 'master' into release-2.1

This commit is contained in:
Stein Magnus Jodal 2018-03-29 16:25:41 +02:00
commit 7d02870f79
12 changed files with 12 additions and 12 deletions

1
.gitignore vendored
View File

@ -7,6 +7,7 @@
.coverage .coverage
.idea .idea
.noseids .noseids
.pytest_cache/
.tox .tox
MANIFEST MANIFEST
build/ build/

View File

@ -13,7 +13,7 @@ mock
responses responses
# Test runners # Test runners
pytest pytest<3.3.0
pytest-capturelog pytest-capturelog
pytest-cov pytest-cov
pytest-xdist pytest-xdist

View File

@ -4,7 +4,7 @@
Authors Authors
******* *******
Mopidy is copyright 2009-2017 Stein Magnus Jodal and contributors. Mopidy is Mopidy is copyright 2009-2018 Stein Magnus Jodal and contributors. Mopidy is
licensed under the `Apache License, Version 2.0 licensed under the `Apache License, Version 2.0
<http://www.apache.org/licenses/LICENSE-2.0>`_. <http://www.apache.org/licenses/LICENSE-2.0>`_.

View File

@ -73,14 +73,14 @@ source_suffix = '.rst'
master_doc = 'index' master_doc = 'index'
project = 'Mopidy' project = 'Mopidy'
copyright = '2009-2017, Stein Magnus Jodal and contributors' copyright = '2009-2018, Stein Magnus Jodal and contributors'
from mopidy.internal.versioning import get_version from mopidy.internal.versioning import get_version
release = get_version() release = get_version()
version = '.'.join(release.split('.')[:2]) version = '.'.join(release.split('.')[:2])
# To make the build reproducible, avoid using today's date in the manpages # To make the build reproducible, avoid using today's date in the manpages
today = '2017' today = '2018'
exclude_trees = ['_build'] exclude_trees = ['_build']

View File

@ -15,7 +15,7 @@ try:
except ImportError: except ImportError:
pass pass
import pykka.debug import pykka.debug # noqa: I100
from mopidy import commands, config as config_lib, ext from mopidy import commands, config as config_lib, ext
from mopidy.internal import encoding, log, path, process, versioning from mopidy.internal import encoding, log, path, process, versioning

View File

@ -8,7 +8,6 @@ import os
import pykka import pykka
import mopidy import mopidy
from mopidy import audio, backend, mixer from mopidy import audio, backend, mixer
from mopidy.audio import PlaybackState from mopidy.audio import PlaybackState
from mopidy.core.history import HistoryController from mopidy.core.history import HistoryController

View File

@ -7,7 +7,6 @@ import re
import sys import sys
import mopidy import mopidy
from mopidy import compat, local, models from mopidy import compat, local, models
from mopidy.internal import storage as internal_storage from mopidy.internal import storage as internal_storage
from mopidy.internal import timer from mopidy.internal import timer

View File

@ -34,7 +34,7 @@ def replace(path, mode='w+b', encoding=None, errors=None):
(fd, tempname) = tempfile.mkstemp(dir=os.path.dirname(path)) (fd, tempname) = tempfile.mkstemp(dir=os.path.dirname(path))
try: try:
fp = io.open(fd, mode, encoding=encoding, errors=errors) fp = io.open(fd, mode, encoding=encoding, errors=errors)
except: except Exception:
os.remove(tempname) os.remove(tempname)
os.close(fd) os.close(fd)
raise raise
@ -43,7 +43,7 @@ def replace(path, mode='w+b', encoding=None, errors=None):
fp.flush() fp.flush()
os.fsync(fd) os.fsync(fd)
os.rename(tempname, path) os.rename(tempname, path)
except: except Exception:
os.remove(tempname) os.remove(tempname)
raise raise
finally: finally:

View File

@ -27,7 +27,7 @@ setup(
'Pykka >= 1.1', 'Pykka >= 1.1',
'requests >= 2.0', 'requests >= 2.0',
'setuptools', 'setuptools',
'tornado >= 3.2', 'tornado >= 3.2, < 5', # Tornado 5 requires Python >= 2.7.9
], ],
extras_require={'http': []}, extras_require={'http': []},
entry_points={ entry_points={

View File

@ -10,10 +10,10 @@ import mock
import pykka import pykka
import mopidy import mopidy
from mopidy.core import Core from mopidy.core import Core
from mopidy.internal import models, storage, versioning from mopidy.internal import models, storage, versioning
from mopidy.models import Track from mopidy.models import Track
from tests import dummy_mixer from tests import dummy_mixer

View File

@ -8,6 +8,7 @@ import pykka
from mopidy import core, mixer from mopidy import core, mixer
from mopidy.internal.models import MixerState from mopidy.internal.models import MixerState
from tests import dummy_mixer from tests import dummy_mixer

View File

@ -11,7 +11,7 @@ commands =
{posargs} {posargs}
deps = deps =
mock mock
pytest pytest<3.3.0
pytest-capturelog pytest-capturelog
pytest-cov pytest-cov
pytest-xdist pytest-xdist