Skip to content

Commit d129584

Browse files
authored
Merge pull request #48 from python-ellar/fix_ellar_upgrade
Ellar 0.5.3 Update: Fixed breaking changes for ellar 0.5.3
2 parents 062f0d5 + a4ef54d commit d129584

File tree

9 files changed

+12
-9
lines changed

9 files changed

+12
-9
lines changed

ellar_cli/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""Ellar CLI Tool for Scaffolding Ellar Projects, Modules and also running Ellar Commands"""
22

3-
__version__ = "0.2.3"
3+
__version__ = "0.2.4"

ellar_cli/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
import click
66
import ellar
77
import typer
8+
from ellar.app import AppFactory
89
from ellar.common.commands import EllarTyper
910
from ellar.common.constants import CALLABLE_COMMAND_INFO, MODULE_METADATA
10-
from ellar.core.factory import AppFactory
1111
from ellar.core.modules import ModuleSetup
1212
from ellar.core.services import Reflector
1313
from typer.models import CommandInfo

ellar_cli/scaffolding/project_template/project_name/server.ellar

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22

33
from ellar.common.constants import ELLAR_CONFIG_MODULE
4-
from ellar.core.factory import AppFactory
4+
from ellar.app import AppFactory
55
# from ellar.openapi import OpenAPIDocumentModule, OpenAPIDocumentBuilder, SwaggerUI
66
from .root_module import ApplicationModule
77

ellar_cli/service.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
import typing as t
33

44
from click import ClickException
5+
from ellar.app import App
56
from ellar.common.constants import ELLAR_CONFIG_MODULE
67
from ellar.common.helper.importer import import_from_string
7-
from ellar.core import App, Config, ModuleBase
8+
from ellar.core import Config, ModuleBase
89
from tomlkit import dumps as tomlkit_dumps
910
from tomlkit import parse as tomlkit_parse
1011
from tomlkit import table

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ dependencies = [
4343
# exclude 0.11.2 and 0.11.3 due to https://github.com/sdispater/tomlkit/issues/225
4444
"tomlkit >=0.11.1,<1.0.0,!=0.11.2,!=0.11.3",
4545
"uvicorn[standard] == 0.23.2",
46-
"ellar >= 0.4.4"
46+
"ellar >= 0.5.3"
4747
]
4848

4949
[project.scripts]

tests/sample_app/example_project/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22

3+
from ellar.app import AppFactory
34
from ellar.common.constants import ELLAR_CONFIG_MODULE
4-
from ellar.core.factory import AppFactory
55

66
# from ellar.openapi import OpenAPIDocumentModule, OpenAPIDocumentBuilder
77
from .root_module import ApplicationModule

tests/sample_app/example_project_2/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22

3+
from ellar.app import AppFactory
34
from ellar.common.constants import ELLAR_CONFIG_MODULE
4-
from ellar.core.factory import AppFactory
55

66
# from ellar.openapi import OpenAPIDocumentModule, OpenAPIDocumentBuilder
77
from .root_module import ApplicationModule

tests/test_ellar_cli_service.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import os
22

33
import pytest
4-
from ellar.core import App, ConfigDefaultTypesMixin, ModuleBase
4+
from ellar.app import App
5+
from ellar.core import ConfigDefaultTypesMixin, ModuleBase
56

67
from ellar_cli.service import (
78
PY_PROJECT_TOML,

tests/test_ellar_commands/test_create_project_command.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import os
22

3-
from ellar.core import App, Config
3+
from ellar.app import App
4+
from ellar.core import Config
45

56
from ellar_cli.service import EllarCLIService
67

0 commit comments

Comments
 (0)