Skip to content

Commit 6424064

Browse files
authored
Merge branch 'main' into main
2 parents 5ce900b + 77e6d1f commit 6424064

File tree

6 files changed

+38
-6
lines changed

6 files changed

+38
-6
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ jobs:
3535
TIANGOLO_BUILD_PACKAGE: ${{ matrix.package }}
3636
run: python -m build
3737
- name: Publish
38-
uses: pypa/[email protected].3
38+
uses: pypa/[email protected].4

pyproject.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,18 @@ classifiers = [
3232
"License :: OSI Approved :: MIT License",
3333
]
3434
dependencies = [
35-
"typer >= 0.12.3",
35+
"typer >= 0.15.1",
3636
"uvicorn[standard] >= 0.15.0",
37-
"rich-toolkit >= 0.11.1"
37+
"rich-toolkit >= 0.14.8",
3838
]
3939

4040
[project.optional-dependencies]
4141
standard = [
4242
"uvicorn[standard] >= 0.15.0",
43+
"fastapi-cloud-cli >= 0.1.1",
44+
]
45+
standard-no-fastapi-cloud-cli = [
46+
"uvicorn[standard] >= 0.15.0",
4347
]
4448

4549
[project.urls]

release-notes.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,26 @@
22

33
## Latest Changes
44

5+
## 0.0.8
6+
7+
### Features
8+
9+
* ➕ Add optional dependency on `fastapi-cloud-cli`. PR [#181](https://github.com/fastapi/fastapi-cli/pull/181) by [@tiangolo](https://github.com/tiangolo).
10+
11+
This will allow you to deploy to [FastAPI Cloud](https://fastapicloud.com) with the `fastapi deploy` command.
12+
13+
Installing `fastapi-cli[standard]` now includes `fastapi-cloud-cli`.
14+
15+
If you want to install `fastapi-cli` without `fastapi-cloud-cli`, you can install instead `fastapi-cli[standard-no-fastapi-cloud-cli]`.
16+
17+
You will normally not install `fastapi-cli` directly, but rather install FastAPI with `fastapi[standard]`, which will include `fastapi-cli[standard]`.
18+
19+
If you want to install `fastapi` with the standard dependencies except for `fastapi-cloud-cli`, you can install instead `fastapi[standard-no-fastapi-cloud-cli]`.
20+
521
### Internal
622

23+
* ⬆ Bump pypa/gh-action-pypi-publish from 1.12.3 to 1.12.4. PR [#152](https://github.com/fastapi/fastapi-cli/pull/152) by [@dependabot[bot]](https://github.com/apps/dependabot).
24+
* ⬆ Bump ruff from 0.8.4 to 0.11.2. PR [#168](https://github.com/fastapi/fastapi-cli/pull/168) by [@dependabot[bot]](https://github.com/apps/dependabot).
725
*[pre-commit.ci] pre-commit autoupdate. PR [#138](https://github.com/fastapi/fastapi-cli/pull/138) by [@pre-commit-ci[bot]](https://github.com/apps/pre-commit-ci).
826
* ⬆ Bump ruff from 0.8.2 to 0.8.4. PR [#139](https://github.com/fastapi/fastapi-cli/pull/139) by [@dependabot[bot]](https://github.com/apps/dependabot).
927
* ⬆ Bump astral-sh/setup-uv from 4 to 5. PR [#140](https://github.com/fastapi/fastapi-cli/pull/140) by [@dependabot[bot]](https://github.com/apps/dependabot).

requirements-tests.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
-e .
1+
-e .[standard]
22

33
pytest >=4.4.0,<9.0.0
44
coverage[toml] >=6.2,<8.0
55
mypy ==1.14.0
6-
ruff ==0.8.4
6+
ruff ==0.11.2
77
# Needed explicitly by fastapi-cli-slim
88
fastapi-slim
99
uvicorn

src/fastapi_cli/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.0.7"
1+
__version__ = "0.0.8"

src/fastapi_cli/cli.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,16 @@
2525
uvicorn = None # type: ignore[assignment]
2626

2727

28+
try:
29+
from fastapi_cloud_cli.cli import (
30+
app as fastapi_cloud_cli,
31+
)
32+
33+
app.add_typer(fastapi_cloud_cli)
34+
except ImportError: # pragma: no cover
35+
pass
36+
37+
2838
def version_callback(value: bool) -> None:
2939
if value:
3040
print(f"FastAPI CLI version: [green]{__version__}[/green]")

0 commit comments

Comments
 (0)