diff --git a/README.rst b/README.rst index fc05bb3f..ae2e933c 100644 --- a/README.rst +++ b/README.rst @@ -68,7 +68,7 @@ Example from dependency_injector import providers from dependency_injector import injections - import services # Example business services module (Users, Photos, Auth) + from example import services class Platform(catalogs.DeclarativeCatalog): diff --git a/examples/miniapps/flask_services/app.py b/examples/miniapps/flask_services/app.py deleted file mode 100644 index 9737eadf..00000000 --- a/examples/miniapps/flask_services/app.py +++ /dev/null @@ -1,10 +0,0 @@ -"""Flask application.""" - -import flask - - -app = flask.Flask(__name__) - - -if __name__ == '__main__': - app.run() diff --git a/examples/miniapps/flask_services/services/__init__.py b/examples/miniapps/flask_services/services/__init__.py deleted file mode 100644 index 3d091cc8..00000000 --- a/examples/miniapps/flask_services/services/__init__.py +++ /dev/null @@ -1,8 +0,0 @@ -"""Services package.""" - -from dependency_injector import catalogs -from dependency_injector import providers - - -class ServicesModule(catalogs.DeclarativeCatalog): - """Service providers module.""" diff --git a/examples/miniapps/services/example/__init__.py b/examples/miniapps/services/example/__init__.py new file mode 100644 index 00000000..bfa99aa2 --- /dev/null +++ b/examples/miniapps/services/example/__init__.py @@ -0,0 +1 @@ +"""Example top-level package.""" diff --git a/examples/services.py b/examples/miniapps/services/example/services.py similarity index 95% rename from examples/services.py rename to examples/miniapps/services/example/services.py index d512e31b..615a80d5 100644 --- a/examples/services.py +++ b/examples/miniapps/services/example/services.py @@ -1,4 +1,4 @@ -"""Services module.""" +"""Example business services module.""" class Users(object): diff --git a/examples/example.py b/examples/miniapps/services/main.py similarity index 95% rename from examples/example.py rename to examples/miniapps/services/main.py index c107e676..30ebdb76 100644 --- a/examples/example.py +++ b/examples/miniapps/services/main.py @@ -9,7 +9,7 @@ from dependency_injector import catalogs from dependency_injector import providers from dependency_injector import injections -import services # Example business services module (Users, Photos, Auth) +from example import services class Platform(catalogs.DeclarativeCatalog):