Skip to content

Commit

Permalink
second step of packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtedn21 committed Oct 31, 2023
1 parent f3840b0 commit 4877e6f
Show file tree
Hide file tree
Showing 12 changed files with 33 additions and 16 deletions.
Empty file removed martin-eden/__init__.py
Empty file.
17 changes: 17 additions & 0 deletions martin_eden/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
from martin_eden import core
from martin_eden import database
from martin_eden import http_utils
from martin_eden import main
from martin_eden import openapi
from martin_eden import routing
from martin_eden import utils

__all__ = [
'core',
'database',
'http_utils',
'main',
'openapi',
'routing',
'utils',
]
File renamed without changes.
4 changes: 2 additions & 2 deletions martin-eden/database.py → martin_eden/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
)
from sqlalchemy.orm import DeclarativeBase

from core import CustomSchema
from utils import (
from martin_eden.core import CustomSchema
from martin_eden.utils import (
get_name_of_model,
get_python_field_type_from_alchemy_field,
is_enum_alchemy_field,
Expand Down
File renamed without changes.
File renamed without changes.
16 changes: 8 additions & 8 deletions martin-eden/main.py → martin_eden/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@

from dacite import from_dict as dataclass_from_dict

from chats import controllers as chat_controllers # noqa: F401
from core import Controller
from database import DataBase, query_params_to_alchemy_filters
from http_utils import HttpHeadersParser, HttpMethod, create_response_headers
from openapi import OpenApiBuilder
from routing import ControllerDefinitionError, get_controller, register_route
from users import controllers as user_controllers # noqa: F401
from utils import get_argument_names
#from chats import controllers as chat_controllers # noqa: F401
from martin_eden.core import Controller
from martin_eden.database import DataBase, query_params_to_alchemy_filters
from martin_eden.http_utils import HttpHeadersParser, HttpMethod, create_response_headers
from martin_eden.openapi import OpenApiBuilder
from martin_eden.routing import ControllerDefinitionError, get_controller, register_route
#from users import controllers as user_controllers # noqa: F401
from martin_eden.utils import get_argument_names

db = DataBase()

Expand Down
4 changes: 2 additions & 2 deletions martin-eden/openapi.py → martin_eden/openapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
from datetime import date, datetime
from typing import TYPE_CHECKING

from core import CustomJsonSchema, CustomSchema
from utils import (
from martin_eden.core import CustomJsonSchema, CustomSchema
from martin_eden.utils import (
dict_set,
get_name_of_model,
get_operation_id_for_openapi,
Expand Down
4 changes: 2 additions & 2 deletions martin-eden/routing.py → martin_eden/routing.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typing import Callable, ParamSpecArgs, ParamSpecKwargs

from core import Controller, CustomSchema
from openapi import OpenApiBuilder
from martin_eden.core import Controller, CustomSchema
from martin_eden.openapi import OpenApiBuilder

DictOfRoutes = dict[str, dict[str, Controller]]

Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[tool.poetry]
name = "martin-eden"
version = "0.8.0"
version = "0.3.1"
description = "async backend framework on sockets"
authors = ["mrtedn21 <[email protected]>"]
readme = "README.md"
repository = "https://github.com/mrtedn21/Eden"
packages = [
{ include = "martin-eden" },
{ include = "martin_eden" },
]

[tool.poetry.dependencies]
Expand Down

0 comments on commit 4877e6f

Please sign in to comment.