mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-25 19:14:00 +03:00
Merge branch 'release/3.14.1' into master
This commit is contained in:
commit
15a3031da6
|
@ -7,6 +7,14 @@ that were made in every particular version.
|
||||||
From version 0.7.6 *Dependency Injector* framework strictly
|
From version 0.7.6 *Dependency Injector* framework strictly
|
||||||
follows `Semantic versioning`_
|
follows `Semantic versioning`_
|
||||||
|
|
||||||
|
3.14.1
|
||||||
|
------
|
||||||
|
- Fix bug `#208 <https://github.com/ets-labs/python-dependency-injector/issues/208>`_:
|
||||||
|
version ``3.14.0`` hasn't worked on Python 3.5.2 (thanks to
|
||||||
|
`Jeroen Entjes <https://github.com/JeroenEntjes>`_).
|
||||||
|
- Remove deprecated ``assertEquals`` from tests.
|
||||||
|
- Regenerate C sources using Cython 0.29.
|
||||||
|
|
||||||
3.14.0
|
3.14.0
|
||||||
------
|
------
|
||||||
- Add ``Coroutine`` provider.
|
- Add ``Coroutine`` provider.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
cython==0.28.5
|
cython==0.29
|
||||||
tox
|
tox
|
||||||
unittest2
|
unittest2
|
||||||
coverage
|
coverage
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""Dependency injector top-level package."""
|
"""Dependency injector top-level package."""
|
||||||
|
|
||||||
__version__ = '3.14.0'
|
__version__ = '3.14.1'
|
||||||
"""Version number that follows semantic versioning.
|
"""Version number that follows semantic versioning.
|
||||||
|
|
||||||
:type: str
|
:type: str
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -15,11 +15,11 @@ except ImportError:
|
||||||
asyncio = None
|
asyncio = None
|
||||||
_is_coroutine_marker = None
|
_is_coroutine_marker = None
|
||||||
else:
|
else:
|
||||||
if sys.version_info[0:2] == (3, 4):
|
if sys.version_info >= (3, 5, 3):
|
||||||
_is_coroutine_marker = True
|
|
||||||
else:
|
|
||||||
import asyncio.coroutines
|
import asyncio.coroutines
|
||||||
_is_coroutine_marker = asyncio.coroutines._is_coroutine
|
_is_coroutine_marker = asyncio.coroutines._is_coroutine
|
||||||
|
else:
|
||||||
|
_is_coroutine_marker = True
|
||||||
|
|
||||||
|
|
||||||
from .errors import (
|
from .errors import (
|
||||||
|
|
|
@ -13,7 +13,7 @@ class PositionalInjectionTests(unittest.TestCase):
|
||||||
|
|
||||||
def test_get_value_with_not_provider(self):
|
def test_get_value_with_not_provider(self):
|
||||||
injection = providers.PositionalInjection(123)
|
injection = providers.PositionalInjection(123)
|
||||||
self.assertEquals(injection.get_value(), 123)
|
self.assertEqual(injection.get_value(), 123)
|
||||||
|
|
||||||
def test_get_value_with_factory(self):
|
def test_get_value_with_factory(self):
|
||||||
injection = providers.PositionalInjection(providers.Factory(object))
|
injection = providers.PositionalInjection(providers.Factory(object))
|
||||||
|
@ -61,11 +61,11 @@ class NamedInjectionTests(unittest.TestCase):
|
||||||
|
|
||||||
def test_get_name(self):
|
def test_get_name(self):
|
||||||
injection = providers.NamedInjection('name', 123)
|
injection = providers.NamedInjection('name', 123)
|
||||||
self.assertEquals(injection.get_name(), 'name')
|
self.assertEqual(injection.get_name(), 'name')
|
||||||
|
|
||||||
def test_get_value_with_not_provider(self):
|
def test_get_value_with_not_provider(self):
|
||||||
injection = providers.NamedInjection('name', 123)
|
injection = providers.NamedInjection('name', 123)
|
||||||
self.assertEquals(injection.get_value(), 123)
|
self.assertEqual(injection.get_value(), 123)
|
||||||
|
|
||||||
def test_get_value_with_factory(self):
|
def test_get_value_with_factory(self):
|
||||||
injection = providers.NamedInjection('name',
|
injection = providers.NamedInjection('name',
|
||||||
|
|
|
@ -8,4 +8,4 @@ from dependency_injector import __version__
|
||||||
class VersionTest(unittest.TestCase):
|
class VersionTest(unittest.TestCase):
|
||||||
|
|
||||||
def test_version_follows_semantic_versioning(self):
|
def test_version_follows_semantic_versioning(self):
|
||||||
self.assertEquals(len(__version__.split('.')), 3)
|
self.assertEqual(len(__version__.split('.')), 3)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user