diff --git a/__init__.py b/__init__.py index 09d625d..1d7189b 100644 --- a/__init__.py +++ b/__init__.py @@ -1,4 +1,4 @@ -from src import config, context, auth, fields, schema, serializable, \ +from flask_boiler import config, context, auth, fields, schema, serializable, \ firestore_object, domain_model, view_model, view, factory __all__ = ["config", "context", "auth", "fields", "schema", "serializable", diff --git a/examples/binding_example.py b/examples/binding_example.py index af722ff..d2cc7f9 100644 --- a/examples/binding_example.py +++ b/examples/binding_example.py @@ -9,18 +9,18 @@ from flasgger import Swagger, SwaggerView from google.cloud.firestore import DocumentReference -from src.view import GenericView -from src import fields -from src.schema import Schema -from src.view_model import ViewModel -from src.domain_model import DomainModel +from flask_boiler.view import GenericView +from flask_boiler import fields +from flask_boiler.schema import Schema +from flask_boiler.view_model import ViewModel +from flask_boiler.domain_model import DomainModel from google.cloud import firestore from functools import partial from examples.luggage_models import LuggageItem, Luggages -from src.config import Config -from src.context import Context as CTX +from flask_boiler.config import Config +from flask_boiler.context import Context as CTX if __name__ == "__main__": config = Config( diff --git a/examples/luggage_models.py b/examples/luggage_models.py index 13f03b0..af22c05 100644 --- a/examples/luggage_models.py +++ b/examples/luggage_models.py @@ -1,5 +1,5 @@ -from src import serializable, schema, fields, domain_model, view_model -from src.firestore_object import FirestoreObjectClsFactory +from flask_boiler import serializable, schema, fields, domain_model, view_model +from flask_boiler.firestore_object import FirestoreObjectClsFactory Schema = schema.Schema diff --git a/examples/view_example.py b/examples/view_example.py index 8d635a3..8353a3b 100644 --- a/examples/view_example.py +++ b/examples/view_example.py @@ -6,16 +6,16 @@ from flask import Flask, jsonify from flasgger import Swagger, SwaggerView -from src.view import GenericView, document_as_view, default_mapper -from src import fields -from src.schema import Schema -from src.firestore_object import FirestoreObjectClsFactory -from src.view_model import ViewModel +from flask_boiler.view import GenericView, document_as_view, default_mapper +from flask_boiler import fields +from flask_boiler.schema import Schema +from flask_boiler.firestore_object import FirestoreObjectClsFactory +from flask_boiler.view_model import ViewModel from google.cloud import firestore from functools import partial -from src.config import Config -from src.context import Context as CTX +from flask_boiler.config import Config +from flask_boiler.context import Context as CTX if __name__ == "__main__": """ diff --git a/src/__init__.py b/flask_boiler/__init__.py similarity index 100% rename from src/__init__.py rename to flask_boiler/__init__.py diff --git a/src/auth.py b/flask_boiler/auth.py similarity index 100% rename from src/auth.py rename to flask_boiler/auth.py diff --git a/src/config.py b/flask_boiler/config.py similarity index 100% rename from src/config.py rename to flask_boiler/config.py diff --git a/src/context.py b/flask_boiler/context.py similarity index 100% rename from src/context.py rename to flask_boiler/context.py diff --git a/src/domain_model.py b/flask_boiler/domain_model.py similarity index 100% rename from src/domain_model.py rename to flask_boiler/domain_model.py diff --git a/src/factory.py b/flask_boiler/factory.py similarity index 100% rename from src/factory.py rename to flask_boiler/factory.py diff --git a/src/fields.py b/flask_boiler/fields.py similarity index 100% rename from src/fields.py rename to flask_boiler/fields.py diff --git a/src/firestore_object.py b/flask_boiler/firestore_object.py similarity index 100% rename from src/firestore_object.py rename to flask_boiler/firestore_object.py diff --git a/src/model_registry.py b/flask_boiler/model_registry.py similarity index 100% rename from src/model_registry.py rename to flask_boiler/model_registry.py diff --git a/src/schema.py b/flask_boiler/schema.py similarity index 100% rename from src/schema.py rename to flask_boiler/schema.py diff --git a/src/serializable.py b/flask_boiler/serializable.py similarity index 100% rename from src/serializable.py rename to flask_boiler/serializable.py diff --git a/src/utils.py b/flask_boiler/utils.py similarity index 100% rename from src/utils.py rename to flask_boiler/utils.py diff --git a/src/view.py b/flask_boiler/view.py similarity index 100% rename from src/view.py rename to flask_boiler/view.py diff --git a/src/view_model.py b/flask_boiler/view_model.py similarity index 100% rename from src/view_model.py rename to flask_boiler/view_model.py diff --git a/tests/fixtures.py b/tests/fixtures.py index 4744ea1..0af6757 100644 --- a/tests/fixtures.py +++ b/tests/fixtures.py @@ -9,8 +9,8 @@ def CTX(): :return: """ - from src.context import Context as TST_CTX - from src.config import Config + from flask_boiler.context import Context as TST_CTX + from flask_boiler.config import Config config = Config( app_name="gravitate-dive-testing", diff --git a/tests/test_context.py b/tests/test_context.py index db83409..ca8775d 100644 --- a/tests/test_context.py +++ b/tests/test_context.py @@ -1,5 +1,5 @@ -from src import config -from src import context +from flask_boiler import config +from flask_boiler import context Config = config.Config diff --git a/tests/test_domain_model.py b/tests/test_domain_model.py index 5226453..baf0a89 100644 --- a/tests/test_domain_model.py +++ b/tests/test_domain_model.py @@ -8,13 +8,13 @@ import pytest from google.cloud.firestore import Query -from src.config import Config -from src.context import Context as CTX +from flask_boiler.config import Config +from flask_boiler.context import Context as CTX -from src.firestore_object import FirestoreObjectClsFactory -from src.domain_model import DomainModel -from src.schema import Schema -from src import fields +from flask_boiler.firestore_object import FirestoreObjectClsFactory +from flask_boiler.domain_model import DomainModel +from flask_boiler.schema import Schema +from flask_boiler import fields config = Config( app_name="gravitate-dive-testing", diff --git a/tests/test_firestore_object.py b/tests/test_firestore_object.py index 1edab3f..5a222d8 100644 --- a/tests/test_firestore_object.py +++ b/tests/test_firestore_object.py @@ -1,10 +1,10 @@ import pytest from testfixtures import compare -from src import schema, fields -from src.context import Context as CTX -from src.config import Config -from src.firestore_object import FirestoreObject, PrimaryObject, \ +from flask_boiler import schema, fields +from flask_boiler.context import Context as CTX +from flask_boiler.config import Config +from flask_boiler.firestore_object import FirestoreObject, PrimaryObject, \ FirestoreObjectClsFactory config = Config( diff --git a/tests/test_integer.py b/tests/test_integer.py index 5c967cb..66b6ae6 100644 --- a/tests/test_integer.py +++ b/tests/test_integer.py @@ -1,6 +1,6 @@ import pytest from marshmallow import Schema -from src import fields +from flask_boiler import fields def test_basic_schema(): diff --git a/tests/test_schema.py b/tests/test_schema.py index 7e1c74f..ace7094 100644 --- a/tests/test_schema.py +++ b/tests/test_schema.py @@ -1,7 +1,7 @@ import pytest from testfixtures import compare -from src import schema, fields +from flask_boiler import schema, fields def test__get_instance_vars(): diff --git a/tests/test_serializable.py b/tests/test_serializable.py index 7b09a05..51b2437 100644 --- a/tests/test_serializable.py +++ b/tests/test_serializable.py @@ -4,8 +4,8 @@ """ -from src import serializable -from src import view_model, schema, fields +from flask_boiler import serializable +from flask_boiler import view_model, schema, fields def test_cls_factory(): diff --git a/tests/test_view_model.py b/tests/test_view_model.py index 06c416c..60434f3 100644 --- a/tests/test_view_model.py +++ b/tests/test_view_model.py @@ -1,8 +1,8 @@ -from src import fields -from src.schema import Schema -from src.domain_model import DomainModel -from src.view_model import ViewModel -from src.firestore_object import FirestoreObjectClsFactory +from flask_boiler import fields +from flask_boiler.schema import Schema +from flask_boiler.domain_model import DomainModel +from flask_boiler.view_model import ViewModel +from flask_boiler.firestore_object import FirestoreObjectClsFactory import pytest