From 870809c83644db17fe163479335bde28db09bd20 Mon Sep 17 00:00:00 2001 From: Roman Mogilatov Date: Fri, 7 Apr 2017 09:19:48 +0300 Subject: [PATCH] Increase version to 3.4.1 --- docs/main/changelog.rst | 4 ++++ examples/miniapps/movie_lister/movies/__init__.py | 4 ++-- src/dependency_injector/__init__.py | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/main/changelog.rst b/docs/main/changelog.rst index 224c7b4c..97f21200 100644 --- a/docs/main/changelog.rst +++ b/docs/main/changelog.rst @@ -11,6 +11,10 @@ Development version ------------------- - No features. +3.4.1 +----- +- Update movie lister example miniapp with ``AbstractFactory`` provider. + 3.4.0 ----- - Add ``AbstractCallable`` provider. diff --git a/examples/miniapps/movie_lister/movies/__init__.py b/examples/miniapps/movie_lister/movies/__init__.py index 45930056..71fa6672 100644 --- a/examples/miniapps/movie_lister/movies/__init__.py +++ b/examples/miniapps/movie_lister/movies/__init__.py @@ -25,8 +25,8 @@ class MoviesModule(containers.DeclarativeContainer): movie_model = providers.DelegatedFactory(movies.models.Movie) - movie_finder = providers.Factory(movies.finders.MovieFinder, - movie_model=movie_model) + movie_finder = providers.AbstractFactory(movies.finders.MovieFinder, + movie_model=movie_model) movie_lister = providers.Factory(movies.listers.MovieLister, movie_finder=movie_finder) diff --git a/src/dependency_injector/__init__.py b/src/dependency_injector/__init__.py index 78af2185..22ddb759 100644 --- a/src/dependency_injector/__init__.py +++ b/src/dependency_injector/__init__.py @@ -1,6 +1,6 @@ """Dependency injector top-level package.""" -__version__ = '3.4.0' +__version__ = '3.4.1' """Version number that follows semantic versioning. :type: str