From 806bd3173516631b4916c77b68111ebdb8edc63b Mon Sep 17 00:00:00 2001 From: Roman Mogylatov Date: Tue, 1 Sep 2020 21:58:13 -0400 Subject: [PATCH] Bump version to 3.35.1 --- docs/main/changelog.rst | 4 ++++ docs/providers/factory.rst | 2 +- docs/providers/selector.rst | 4 ++-- docs/providers/singleton.rst | 2 +- examples/providers/singleton_scoped.py | 3 ++- src/dependency_injector/__init__.py | 2 +- 6 files changed, 11 insertions(+), 6 deletions(-) diff --git a/docs/main/changelog.rst b/docs/main/changelog.rst index 942cf509..2d5c5780 100644 --- a/docs/main/changelog.rst +++ b/docs/main/changelog.rst @@ -7,6 +7,10 @@ that were made in every particular version. From version 0.7.6 *Dependency Injector* framework strictly follows `Semantic versioning`_ +3.35.1 +------ +- Fix minor issues in the providers documentation and examples. + 3.35.0 ------ - Update documentation and rework examples for: ``Singleton``, ``Callable``, ``Coroutine``, diff --git a/docs/providers/factory.rst b/docs/providers/factory.rst index 6050b530..23045591 100644 --- a/docs/providers/factory.rst +++ b/docs/providers/factory.rst @@ -78,7 +78,7 @@ all the classes and use special double-underscore ``__`` syntax for passing the When you use ``__`` separator in the name of the keyword argument the ``Factory`` looks for the dependency with the same name as the left part of the ``__`` expression. -.. code-block:: +.. code-block:: none __= diff --git a/docs/providers/selector.rst b/docs/providers/selector.rst index f7b0a9e7..b3f372e0 100644 --- a/docs/providers/selector.rst +++ b/docs/providers/selector.rst @@ -1,7 +1,7 @@ .. _selector-provider: -Selector providers ------------------- +Selector provider +----------------- .. meta:: :keywords: Python,DI,Dependency injection,IoC,Inversion of Control,Configuration,Injection, diff --git a/docs/providers/singleton.rst b/docs/providers/singleton.rst index e8fe4452..10131e03 100644 --- a/docs/providers/singleton.rst +++ b/docs/providers/singleton.rst @@ -78,7 +78,7 @@ needed. The output should look like this (each request a ``Service`` object has a different address): -.. code-block:: +.. code-block:: bash * Serving Flask app "singleton_scoped" (lazy loading) * Environment: production diff --git a/examples/providers/singleton_scoped.py b/examples/providers/singleton_scoped.py index 3ab27beb..e9bc2ea6 100644 --- a/examples/providers/singleton_scoped.py +++ b/examples/providers/singleton_scoped.py @@ -1,4 +1,4 @@ -"""`Singleton` - flask request scope example.""" +"""`Singleton` - Flask request scope example.""" from dependency_injector import providers from flask import Flask @@ -28,5 +28,6 @@ app = Flask(__name__) app.add_url_rule('/', 'index', view_func=index_view) app.after_request(teardown_context) + if __name__ == '__main__': app.run() diff --git a/src/dependency_injector/__init__.py b/src/dependency_injector/__init__.py index 1462af0f..724f9e1f 100644 --- a/src/dependency_injector/__init__.py +++ b/src/dependency_injector/__init__.py @@ -1,6 +1,6 @@ """Dependency injector top-level package.""" -__version__ = '3.35.0' +__version__ = '3.35.1' """Version number that follows semantic versioning. :type: str