Skip to content

Commit

Permalink
Fix all frameworks needing to be installed to use 1
Browse files Browse the repository at this point in the history
  • Loading branch information
amh4r committed Oct 25, 2023
1 parent 1a23c9f commit 5d9d164
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/flask/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from pythonjsonlogger import jsonlogger
from src.inngest import inngest_client

import inngest
import inngest.flask
from examples.functions import functions

app = Flask(__name__)
Expand Down
6 changes: 4 additions & 2 deletions examples/tornado/app.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import asyncio

import tornado
from tornado.web import Application
import tornado.autoreload
from src.inngest import inngest_client
from tornado.web import Application

import inngest.tornado
from examples.functions import functions
import inngest


async def main() -> None:
Expand Down
3 changes: 0 additions & 3 deletions inngest/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from ._internal.const import Duration
from ._internal.errors import NonRetriableError
from ._internal.event import Event
from ._internal.frameworks import flask, tornado
from ._internal.function import Function, FunctionOpts, Step, create_function
from ._internal.function_config import (
BatchConfig,
Expand All @@ -26,6 +25,4 @@
"TriggerCron",
"TriggerEvent",
"create_function",
"flask",
"tornado",
]
Empty file.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions tests/test_flask.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from flask.testing import FlaskClient

import inngest
import inngest.flask

from .base import register, set_up, tear_down
from .cases import create_cases
Expand Down
1 change: 1 addition & 0 deletions tests/test_tornado.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from tornado.web import Application

import inngest
import inngest.tornado

from .base import register, set_up, tear_down
from .cases import create_cases
Expand Down

0 comments on commit 5d9d164

Please sign in to comment.