fix: install sdist works and cli too

This commit is contained in:
ogabrielluiz 2023-03-08 10:35:37 -03:00
commit 8fdc4e9c78
3 changed files with 1424 additions and 6 deletions

View file

@ -11,6 +11,7 @@ def serve(
workers: int = None,
timeout: int = None,
):
app = create_app()
# get the directory of the current file
path = Path(__file__).parent
static_files_dir = path / "frontend/build"
@ -39,5 +40,4 @@ def main():
if __name__ == "__main__":
app = create_app()
main()

1423
poetry.lock generated

File diff suppressed because it is too large Load diff

View file

@ -5,11 +5,13 @@ description = "A Python package with a built-in web application"
authors = ["Ibis Prevedello <ibiscp@gmail.com>", "Gabriel Almeida <gabrielf.almeida90@gmail.com>","Otávio Anovazzi <otavio2204@gmail.com>"]
packages = [
{ include = "langflow"},
{ include = "langflow_backend", from = "langflow/backend"},
]
include = ["langflow/frontend/build/*", "langflow/frontend/build/**/*"]
exclude = ["langflow/frontend/node_modules/*", "langflow/frontend/src/*"]
[tool.poetry.scripts]
langflow = "langflow.__main__:main"
[tool.poetry.group.dev.dependencies]
ruff = "^0.0.254"
@ -24,3 +26,4 @@ build-backend = "poetry.core.masonry.api"
python = "^3.9"
typer = "^0.7.0"
gunicorn = "^20.1.0"
langflow_backend = {path = "langflow/backend"}