Skip to content

Commit 8138770

Browse files
committed
🔄 Merge branch 'main' into pr/Riuzaky77/113
2 parents 52885aa + d7aa2a0 commit 8138770

33 files changed

Lines changed: 754 additions & 781 deletions

.github/workflows/latest-changes.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled == 'true' }}
3535
with:
3636
limit-access-to-actor: true
37-
- uses: tiangolo/latest-changes@0.3.1
37+
- uses: tiangolo/latest-changes@0.3.2
3838
with:
3939
token: ${{ secrets.GITHUB_TOKEN }}
4040
latest_changes_file: release-notes.md

.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.9.0
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@v3
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@v3
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@v3
93+
uses: astral-sh/setup-uv@v5
9494
with:
9595
version: "0.4.15"
9696
enable-cache: true

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ default_language_version:
44
python: python3.10
55
repos:
66
- repo: https://github.com/pre-commit/pre-commit-hooks
7-
rev: v4.6.0
7+
rev: v5.0.0
88
hooks:
99
- id: check-added-large-files
1010
- id: check-toml
@@ -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.5.5
17+
rev: v0.8.4
1818
hooks:
1919
- id: ruff
2020
args:

README.md

Lines changed: 27 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -32,46 +32,33 @@ To run your FastAPI app for development, you can use the `fastapi dev` command:
3232

3333
```console
3434
$ fastapi dev main.py
35-
INFO Using path main.py
36-
INFO Resolved absolute path /home/user/code/awesomeapp/main.py
37-
INFO Searching for package file structure from directories with __init__.py files
38-
INFO Importing from /home/user/code/awesomeapp
39-
40-
╭─ Python module file ─╮
41-
│ │
42-
│ 🐍 main.py │
43-
│ │
44-
╰──────────────────────╯
45-
46-
INFO Importing module main
47-
INFO Found importable FastAPI app
48-
49-
╭─ Importable FastAPI app ─╮
50-
│ │
51-
│ from main import app │
52-
│ │
53-
╰──────────────────────────╯
54-
55-
INFO Using import string main:app
56-
57-
╭────────── FastAPI CLI - Development mode ───────────╮
58-
│ │
59-
│ Serving at: http://127.0.0.1:8000 │
60-
│ │
61-
│ API docs: http://127.0.0.1:8000/docs │
62-
│ │
63-
│ Running in development mode, for production use: │
64-
│ │
65-
│ fastapi run │
66-
│ │
67-
╰─────────────────────────────────────────────────────╯
68-
69-
INFO: Will watch for changes in these directories: ['/home/user/code/awesomeapp']
70-
INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
71-
INFO: Started reloader process [56345] using WatchFiles
72-
INFO: Started server process [56352]
73-
INFO: Waiting for application startup.
74-
INFO: Application startup complete.
35+
36+
FastAPI Starting development server 🚀
37+
38+
Searching for package file structure from directories with __init__.py files
39+
Importing from /home/user/code/awesomeapp
40+
41+
module 🐍 main.py
42+
43+
code Importing the FastAPI app object from the module with the following code:
44+
45+
from main import app
46+
47+
app Using import string: main:app
48+
49+
server Server started at http://127.0.0.1:8000
50+
server Documentation at http://127.0.0.1:8000/docs
51+
52+
tip Running in development mode, for production use: fastapi run
53+
54+
Logs:
55+
56+
INFO Will watch for changes in these directories: ['/home/user/code/awesomeapp']
57+
INFO Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
58+
INFO Started reloader process [4106097] using WatchFiles
59+
INFO Started server process [4106120]
60+
INFO Waiting for application startup.
61+
INFO Application startup complete.
7562
```
7663

7764
</div>

pyproject.toml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +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.14.8",
3738
]
3839

3940
[project.optional-dependencies]
4041
standard = [
4142
"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",
4247
]
4348

4449
[project.urls]
@@ -48,9 +53,6 @@ Repository = "https://github.com/fastapi/fastapi-cli"
4853
Issues = "https://github.com/fastapi/fastapi-cli/issues"
4954
Changelog = "https://github.com/fastapi/fastapi-cli/blob/main/release-notes.md"
5055

51-
[project.scripts]
52-
fastapi = "fastapi_cli.cli:main"
53-
5456
[build-system]
5557
requires = ["pdm-backend"]
5658
build-backend = "pdm.backend"

release-notes.md

Lines changed: 61 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,70 @@
22

33
## Latest Changes
44

5-
* 👷 Update `labeler.yml`. PR [#101](https://github.com/fastapi/fastapi-cli/pull/101) by [@tiangolo](https://github.com/tiangolo).
6-
* 👷 Do not sync labels as it overrides manually added labels. PR [#71](https://github.com/fastapi/fastapi-cli/pull/71) by [@tiangolo](https://github.com/tiangolo).
5+
## 0.0.9
6+
7+
### Fixes
8+
9+
* 🔧 Remove command script `fastapi`, let it be provided by the `fastapi` package. PR [#197](https://github.com/fastapi/fastapi-cli/pull/197) by [@tiangolo](https://github.com/tiangolo).
10+
11+
## 0.0.8
12+
13+
### Features
14+
15+
* ➕ Add optional dependency on `fastapi-cloud-cli`. PR [#181](https://github.com/fastapi/fastapi-cli/pull/181) by [@tiangolo](https://github.com/tiangolo).
16+
17+
This will allow you to deploy to [FastAPI Cloud](https://fastapicloud.com) with the `fastapi deploy` command.
18+
19+
Installing `fastapi-cli[standard]` now includes `fastapi-cloud-cli`.
20+
21+
If you want to install `fastapi-cli` without `fastapi-cloud-cli`, you can install instead `fastapi-cli[standard-no-fastapi-cloud-cli]`.
22+
23+
You will normally not install `fastapi-cli` directly, but rather install FastAPI with `fastapi[standard]`, which will include `fastapi-cli[standard]`.
24+
25+
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]`.
726

827
### Internal
928

29+
* ⬆ 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).
30+
* ⬆ 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).
31+
*[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).
32+
* ⬆ 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).
33+
* ⬆ 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).
34+
* ⬆ 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).
35+
36+
## 0.0.7
37+
38+
### Fixes
39+
40+
* 🐛 Do not disable existing loggers. PR [#132](https://github.com/fastapi/fastapi-cli/pull/132) by [@kraftp](https://github.com/kraftp).
41+
42+
### Internal
43+
44+
* 🚨 Format new test. PR [#137](https://github.com/fastapi/fastapi-cli/pull/137) by [@tiangolo](https://github.com/tiangolo).
45+
* ⬆ Bump pypa/gh-action-pypi-publish from 1.12.2 to 1.12.3. PR [#134](https://github.com/fastapi/fastapi-cli/pull/134) by [@dependabot[bot]](https://github.com/apps/dependabot).
46+
*[pre-commit.ci] pre-commit autoupdate. PR [#62](https://github.com/fastapi/fastapi-cli/pull/62) by [@pre-commit-ci[bot]](https://github.com/apps/pre-commit-ci).
47+
* ⬆ Bump ruff from 0.5.5 to 0.8.1. PR [#128](https://github.com/fastapi/fastapi-cli/pull/128) by [@dependabot[bot]](https://github.com/apps/dependabot).
48+
49+
## 0.0.6
50+
51+
### Features
52+
53+
* ✨ Improve UI for `fastapi dev` and `fastapi run`. PR [#95](https://github.com/fastapi/fastapi-cli/pull/95) by [@patrick91](https://github.com/patrick91).
54+
55+
### Fixes
56+
57+
* 🐛 Use correct syntax for links. PR [#131](https://github.com/fastapi/fastapi-cli/pull/131) by [@patrick91](https://github.com/patrick91).
58+
59+
### Internal
60+
61+
* 👷 Update `labeler.yml`. PR [#101](https://github.com/fastapi/fastapi-cli/pull/101) by [@tiangolo](https://github.com/tiangolo).
62+
* 👷 Do not sync labels as it overrides manually added labels. PR [#71](https://github.com/fastapi/fastapi-cli/pull/71) by [@tiangolo](https://github.com/tiangolo).
63+
* 🔨 Use ruff check command in format script. PR [#121](https://github.com/fastapi/fastapi-cli/pull/121) by [@FlavienRx](https://github.com/FlavienRx).
64+
* ⬆ Update pre-commit requirement from <4.0.0,>=2.17.0 to >=2.17.0,<5.0.0. PR [#100](https://github.com/fastapi/fastapi-cli/pull/100) by [@dependabot[bot]](https://github.com/apps/dependabot).
65+
* ⬆ Bump pypa/gh-action-pypi-publish from 1.9.0 to 1.12.2. PR [#117](https://github.com/fastapi/fastapi-cli/pull/117) by [@dependabot[bot]](https://github.com/apps/dependabot).
66+
* ⬆ Bump tiangolo/latest-changes from 0.3.1 to 0.3.2. PR [#118](https://github.com/fastapi/fastapi-cli/pull/118) by [@dependabot[bot]](https://github.com/apps/dependabot).
67+
* ⬆ Bump astral-sh/setup-uv from 3 to 4. PR [#125](https://github.com/fastapi/fastapi-cli/pull/125) by [@dependabot[bot]](https://github.com/apps/dependabot).
68+
* ⬆ Bump mypy from 1.11.1 to 1.13.0. PR [#111](https://github.com/fastapi/fastapi-cli/pull/111) by [@dependabot[bot]](https://github.com/apps/dependabot).
1069
* 👷 Fix smokeshow, checkout files on CI. PR [#106](https://github.com/fastapi/fastapi-cli/pull/106) by [@tiangolo](https://github.com/tiangolo).
1170
* 👷 Use uv in CI. PR [#105](https://github.com/fastapi/fastapi-cli/pull/105) by [@tiangolo](https://github.com/tiangolo).
1271
* 👷 Update `labeler.yml`. PR [#102](https://github.com/fastapi/fastapi-cli/pull/102) by [@tiangolo](https://github.com/tiangolo).

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.11.1
6-
ruff ==0.5.5
5+
mypy ==1.14.0
6+
ruff ==0.11.2
77
# Needed explicitly by fastapi-cli-slim
88
fastapi-slim
99
uvicorn

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
-r requirements-tests.txt
44

5-
pre-commit >=2.17.0,<4.0.0
5+
pre-commit >=2.17.0,<5.0.0

0 commit comments

Comments
 (0)