Skip to content

Commit

Permalink
fix: build packages
Browse files Browse the repository at this point in the history
  • Loading branch information
NightMarcher committed Nov 10, 2022
1 parent 02952ff commit 51ba671
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 12 deletions.
2 changes: 1 addition & 1 deletion examples/service/routers/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from faker import Faker
from fastapi import APIRouter, Body, Query
from fastapi_esql.utils.sqlizer import RawSQL
from fastapi_esql import RawSQL
from pydantic import BaseModel, Field
from tortoise.queryset import Q

Expand Down
28 changes: 18 additions & 10 deletions fastapi_esql/__init__.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,32 @@
from logging.config import dictConfig

from .const.error import QsParsingError, WrongParamsError
from .orm.base_app import AppMetaclass
from .orm.base_manager import BaseManager
from .orm.base_model import BaseModel
from .utils.cursor_handler import CursorHandler
from .utils.decorator import timing
from .utils.sqlizer import RawSQL, SQLizer
from .const import (
QsParsingError,
WrongParamsError,
)
from .orm import (
AppMetaclass,
BaseManager,
BaseModel,
)
from .utils import (
CursorHandler,
RawSQL,
SQLizer,
timing,
)

__version__ = "0.0.1"
__version__ = "0.0.2"

__all__ = [
"QsParsingError",
"WrongParamsError",
"AppMetaclass",
"BaseManager",
"BaseModel",
"CursorHandler",
"RawSQL",
"SQLizer",
"QsParsingError",
"WrongParamsError",
"timing",
]

Expand Down
1 change: 1 addition & 0 deletions fastapi_esql/const/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .error import QsParsingError, WrongParamsError
3 changes: 3 additions & 0 deletions fastapi_esql/orm/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from .base_app import AppMetaclass
from .base_manager import BaseManager
from .base_model import BaseModel
3 changes: 3 additions & 0 deletions fastapi_esql/utils/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from .cursor_handler import CursorHandler
from .decorator import timing
from .sqlizer import RawSQL, SQLizer
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@ def read_requirements(filename):
version=fastapi_esql.__version__,
author="BryanLee",
author_email="[email protected]",
description="Generate bulk DML SQL and execute them based on `tortoise-orm` and mysql8.0+, and integrated with `fastapi`.",
description="Generate bulk DML SQL and execute them based on tortoise-orm and mysql8.0+, and integrated with fastapi.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/NightMarcher/fastapi-efficient-sql",
packages=setuptools.find_packages(),
license="MIT",
keywords=["sql", "fastapi", "tortoise-orm", "mysql8", "bulk-operation"],
install_requires=read_requirements("requirements.txt"),
classifiers=[
Expand Down

0 comments on commit 51ba671

Please sign in to comment.