Skip to content
Open
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ standard = [
standard-no-fastapi-cloud-cli = [
"uvicorn[standard] >= 0.15.0",
]
new = [
"fastapi-new >= 0.0.2 ; python_version >= '3.10'",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is required until we drop support for 3.8 and 3.9 💥

]

[project.urls]
Homepage = "https://github.com/fastapi/fastapi-cli"
Expand Down
12 changes: 11 additions & 1 deletion src/fastapi_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,17 @@
app as fastapi_cloud_cli,
)

app.add_typer(fastapi_cloud_cli)
app.add_typer(fastapi_cloud_cli)
except ImportError: # pragma: no cover
pass


try:
from fastapi_new.cli import ( # type: ignore[import-not-found]
app as fastapi_new_cli,
)

app.add_typer(fastapi_new_cli) # pragma: no cover
except ImportError: # pragma: no cover
pass

Expand Down
Loading