Skip to content

Commit f377897

Browse files
authored
Merge branch 'main' into docs-conditional-panel
2 parents 1322b6b + 77e6d1f commit f377897

File tree

9 files changed

+50
-11
lines changed

9 files changed

+50
-11
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/gh-action-pypi-publish@v1.12.3
38+
uses: pypa/gh-action-pypi-publish@v1.12.4

.github/workflows/smokeshow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
with:
2626
python-version: '3.9'
2727
- name: Setup uv
28-
uses: astral-sh/setup-uv@v4
28+
uses: astral-sh/setup-uv@v5
2929
with:
3030
version: "0.4.15"
3131
enable-cache: true

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
with:
4848
python-version: ${{ matrix.python-version }}
4949
- name: Setup uv
50-
uses: astral-sh/setup-uv@v4
50+
uses: astral-sh/setup-uv@v5
5151
with:
5252
version: "0.4.15"
5353
enable-cache: true
@@ -90,7 +90,7 @@ jobs:
9090
with:
9191
python-version: '3.8'
9292
- name: Setup uv
93-
uses: astral-sh/setup-uv@v4
93+
uses: astral-sh/setup-uv@v5
9494
with:
9595
version: "0.4.15"
9696
enable-cache: true

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ repos:
1414
- id: end-of-file-fixer
1515
- id: trailing-whitespace
1616
- repo: https://github.com/astral-sh/ruff-pre-commit
17-
rev: v0.8.2
17+
rev: v0.8.4
1818
hooks:
1919
- id: ruff
2020
args:

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: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,31 @@
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+
21+
### Internal
22+
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).
25+
*[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).
26+
* ⬆ 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).
27+
* ⬆ 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).
28+
* ⬆ Bump mypy from 1.13.0 to 1.14.0. PR [#141](https://github.com/fastapi/fastapi-cli/pull/141) by [@dependabot[bot]](https://github.com/apps/dependabot).
29+
530
## 0.0.7
631

732
### Fixes

requirements-tests.txt

Lines changed: 3 additions & 3 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
5-
mypy ==1.13.0
6-
ruff ==0.8.2
5+
mypy ==1.14.0
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)