mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-02-06 14:40:48 +03:00
Merge branch 'release/4.3.5' into master
This commit is contained in:
commit
02acaba034
|
@ -7,6 +7,13 @@ 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`_
|
||||||
|
|
||||||
|
4.3.5
|
||||||
|
-----
|
||||||
|
- Fix a bug in ``wiring`` module that caused multiple imports of the modules
|
||||||
|
when ``.wire(packages=[...])`` is used
|
||||||
|
(See issue `#320 <https://github.com/ets-labs/python-dependency-injector/issues/320>`_). Thanks
|
||||||
|
to `Federico iskorini <iskorini>`_ for reporting the issue.
|
||||||
|
|
||||||
4.3.4
|
4.3.4
|
||||||
-----
|
-----
|
||||||
- Fix a bug in ``Configuration`` provider that resulted in not working ``.reset_override()``
|
- Fix a bug in ``Configuration`` provider that resulted in not working ``.reset_override()``
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""Top-level package."""
|
"""Top-level package."""
|
||||||
|
|
||||||
__version__ = '4.3.4'
|
__version__ = '4.3.5'
|
||||||
"""Version number.
|
"""Version number.
|
||||||
|
|
||||||
:type: str
|
:type: str
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
import functools
|
import functools
|
||||||
import inspect
|
import inspect
|
||||||
|
import importlib
|
||||||
import pkgutil
|
import pkgutil
|
||||||
import sys
|
import sys
|
||||||
from types import ModuleType
|
from types import ModuleType
|
||||||
|
@ -289,11 +290,11 @@ def _resolve_injections(
|
||||||
|
|
||||||
def _fetch_modules(package):
|
def _fetch_modules(package):
|
||||||
modules = [package]
|
modules = [package]
|
||||||
for loader, module_name, is_pkg in pkgutil.walk_packages(
|
for module_info in pkgutil.walk_packages(
|
||||||
path=package.__path__,
|
path=package.__path__,
|
||||||
prefix=package.__name__ + '.',
|
prefix=package.__name__ + '.',
|
||||||
):
|
):
|
||||||
module = loader.find_module(module_name).load_module(module_name)
|
module = importlib.import_module(module_info.name)
|
||||||
modules.append(module)
|
modules.append(module)
|
||||||
return modules
|
return modules
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user