fastapi-cloud-cli 0.27.0__py3-none-any.whl → 0.27.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- fastapi_cloud_cli/__init__.py +1 -1
- fastapi_cloud_cli/commands/_flow.py +13 -0
- fastapi_cloud_cli/commands/ci/print_workflow.py +1 -1
- fastapi_cloud_cli/commands/setup_ci.py +4 -1
- {fastapi_cloud_cli-0.27.0.dist-info → fastapi_cloud_cli-0.27.1.dist-info}/METADATA +1 -1
- {fastapi_cloud_cli-0.27.0.dist-info → fastapi_cloud_cli-0.27.1.dist-info}/RECORD +9 -9
- {fastapi_cloud_cli-0.27.0.dist-info → fastapi_cloud_cli-0.27.1.dist-info}/WHEEL +0 -0
- {fastapi_cloud_cli-0.27.0.dist-info → fastapi_cloud_cli-0.27.1.dist-info}/entry_points.txt +0 -0
- {fastapi_cloud_cli-0.27.0.dist-info → fastapi_cloud_cli-0.27.1.dist-info}/licenses/LICENSE +0 -0
fastapi_cloud_cli/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.27.
|
|
1
|
+
__version__ = "0.27.1"
|
|
@@ -45,6 +45,10 @@ class LoginTimeoutError(Exception):
|
|
|
45
45
|
pass
|
|
46
46
|
|
|
47
47
|
|
|
48
|
+
class LoginDeniedError(Exception):
|
|
49
|
+
pass
|
|
50
|
+
|
|
51
|
+
|
|
48
52
|
def render_login_output(data: LoginOutput, toolkit: RichToolkit) -> None:
|
|
49
53
|
toolkit.print("Now you are logged in! 🚀")
|
|
50
54
|
|
|
@@ -105,6 +109,9 @@ def fetch_access_token(
|
|
|
105
109
|
error = data.get("error")
|
|
106
110
|
logger.debug(f"Token response error: {error}")
|
|
107
111
|
|
|
112
|
+
if error == "access_denied":
|
|
113
|
+
raise LoginDeniedError
|
|
114
|
+
|
|
108
115
|
if error != "authorization_pending":
|
|
109
116
|
response.raise_for_status()
|
|
110
117
|
|
|
@@ -139,6 +146,12 @@ def complete_device_login(
|
|
|
139
146
|
try:
|
|
140
147
|
with client.handle_http_errors(progress, toolkit=toolkit):
|
|
141
148
|
access_token = fetch_access_token(client, device_code, interval, timeout)
|
|
149
|
+
except LoginDeniedError:
|
|
150
|
+
toolkit.fail(
|
|
151
|
+
"permission_denied",
|
|
152
|
+
"Login authorization was declined.",
|
|
153
|
+
hint="Run `fastapi cloud login` again and approve the authorization request.",
|
|
154
|
+
)
|
|
142
155
|
except LoginTimeoutError:
|
|
143
156
|
message = "Login timed out before authorization completed."
|
|
144
157
|
toolkit.fail(
|
|
@@ -20,7 +20,7 @@ class CIWorkflowOutput(BaseModel):
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
def _render_workflow_output(data: CIWorkflowOutput, toolkit: RichToolkit) -> None:
|
|
23
|
-
toolkit.console.print(data.content, markup=False, end="")
|
|
23
|
+
toolkit.console.print(data.content, markup=False, end="", soft_wrap=True)
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
@ci_app.command("print-workflow")
|
|
@@ -171,7 +171,10 @@ jobs:
|
|
|
171
171
|
runs-on: ubuntu-latest
|
|
172
172
|
steps:
|
|
173
173
|
- uses: actions/checkout@v5
|
|
174
|
-
|
|
174
|
+
# setup-uv v10.3.2
|
|
175
|
+
- uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e
|
|
176
|
+
with:
|
|
177
|
+
version: "latest-known"
|
|
175
178
|
- run: uv run fastapi deploy
|
|
176
179
|
env:
|
|
177
180
|
FASTAPI_CLOUD_TOKEN: ${{{{ secrets.FASTAPI_CLOUD_TOKEN }}}}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
fastapi_cloud_cli-0.27.
|
|
2
|
-
fastapi_cloud_cli-0.27.
|
|
3
|
-
fastapi_cloud_cli-0.27.
|
|
4
|
-
fastapi_cloud_cli-0.27.
|
|
5
|
-
fastapi_cloud_cli/__init__.py,sha256=
|
|
1
|
+
fastapi_cloud_cli-0.27.1.dist-info/METADATA,sha256=G0ww4Bsk1g18qRpQRMDV2aIBihhW1GSR7VitjMQGNXU,3108
|
|
2
|
+
fastapi_cloud_cli-0.27.1.dist-info/WHEEL,sha256=IuIk3wbaEnFH1cx75iM2R1CmliRI3dFLXTbRakgvgFQ,90
|
|
3
|
+
fastapi_cloud_cli-0.27.1.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
|
|
4
|
+
fastapi_cloud_cli-0.27.1.dist-info/licenses/LICENSE,sha256=FqD5B4VbXJnefprQseE0U8llL6FxojC-i8muZy7YmSU,1086
|
|
5
|
+
fastapi_cloud_cli/__init__.py,sha256=lnka9HWRxSmlQAffgSpaSitns-Djhy2OArtj9IVwxrY,23
|
|
6
6
|
fastapi_cloud_cli/__main__.py,sha256=bYt9eEaoRQWdejEHFD8REx9jxVEdZptECFsV7F49Ink,30
|
|
7
7
|
fastapi_cloud_cli/_app.py,sha256=7RNSWWNLEoIN3WwvTBJ3MSKIPPfbbwoLHFJrSYdJjJc,735
|
|
8
8
|
fastapi_cloud_cli/api/__init__.py,sha256=ORZqOHW7yaKjq0jY7M5pK8J5oyFgMOrWNeBzXMC2fCA,1359
|
|
@@ -13,7 +13,7 @@ fastapi_cloud_cli/api/client.py,sha256=kzrU6nx-L2vWJZ99-KCzTpZIPfhVMwrcRcqaMx9TA
|
|
|
13
13
|
fastapi_cloud_cli/cli.py,sha256=u-ZYE-mN0Ml5XNy11iMR_W8WCqp8d2J6BZ7YH05-CkM,3989
|
|
14
14
|
fastapi_cloud_cli/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
15
15
|
fastapi_cloud_cli/commands/_auth.py,sha256=8LKkpQnEoBwJbU_LvIPsDrACuIfc1cyI7xXRpGEPLvw,1199
|
|
16
|
-
fastapi_cloud_cli/commands/_flow.py,sha256=
|
|
16
|
+
fastapi_cloud_cli/commands/_flow.py,sha256=J5Kf6d7CYSNdBUcB_V-JsZ-h4Rgjf-h-3oMtu9U5gik,4748
|
|
17
17
|
fastapi_cloud_cli/commands/apps/__init__.py,sha256=-oW9VE8MFLE0zy2QuipUL0oT7Jczs0GRiROeSnK8vFw,94
|
|
18
18
|
fastapi_cloud_cli/commands/apps/_app.py,sha256=ilokfEQAgehMjEn3XtxKqVDtFYBnZBgiDdf42s3oWsk,110
|
|
19
19
|
fastapi_cloud_cli/commands/apps/create.py,sha256=dPr9mMD2yG0cxsEzM5Xo5MeQPAFQlUXRCEplIYLtZG0,5507
|
|
@@ -27,7 +27,7 @@ fastapi_cloud_cli/commands/auth/_app.py,sha256=dXAqP9cANdbQu_rLcbWEJPiIysUOBL087
|
|
|
27
27
|
fastapi_cloud_cli/commands/auth/wait.py,sha256=aeD85hoL5wufLJ_uIQU2wu-r8PR_NjKfg0_mHGetrJ0,2059
|
|
28
28
|
fastapi_cloud_cli/commands/ci/__init__.py,sha256=q0BSY2Q7EDYMX4P8n95heArjQU1UTgYCxCAIP06I994,86
|
|
29
29
|
fastapi_cloud_cli/commands/ci/_app.py,sha256=JCwAXhlWmZPHwgllqK3Fxl5Y5RL1gsBuXEfE4QHDOA0,107
|
|
30
|
-
fastapi_cloud_cli/commands/ci/print_workflow.py,sha256=
|
|
30
|
+
fastapi_cloud_cli/commands/ci/print_workflow.py,sha256=aUitxz0UBqskQ46-w0GzXfAY_GnIBC844woj1FaHgZk,1400
|
|
31
31
|
fastapi_cloud_cli/commands/deploy/__init__.py,sha256=myre0p1V1l6ma3v06sUNccT3y2YL7l2nK0bcSIEqQ50,50
|
|
32
32
|
fastapi_cloud_cli/commands/deploy/archive.py,sha256=GjkzmeOKCJVCywVd10rMLFYpbpwvlTEIWcN5oNxVOng,3030
|
|
33
33
|
fastapi_cloud_cli/commands/deploy/cloud.py,sha256=hF1ZwHU5wbi0fl5kbQDctsQYDZGVM4BjDWdBz2UybMU,2451
|
|
@@ -67,7 +67,7 @@ fastapi_cloud_cli/commands/integrations/resources/providers.py,sha256=-9RnA7qW-r
|
|
|
67
67
|
fastapi_cloud_cli/commands/login.py,sha256=xGUnxXHUNxRw6G6_spageAQ8lj06ikBXsPhxrNztyt0,4048
|
|
68
68
|
fastapi_cloud_cli/commands/logout.py,sha256=WaczTDVtHex2S44tKSIZbMtHjcLm6om_ptF5uEvAhx0,923
|
|
69
69
|
fastapi_cloud_cli/commands/logs.py,sha256=poPw556Z4-te7OcwqxXsWzco-jjjpYllcGlLXsx-iew,8029
|
|
70
|
-
fastapi_cloud_cli/commands/setup_ci.py,sha256=
|
|
70
|
+
fastapi_cloud_cli/commands/setup_ci.py,sha256=o5jgFl6BCO1Z82jx4AVmtd2bUvlBVIKZk743fFxj8qo,17382
|
|
71
71
|
fastapi_cloud_cli/commands/teams/__init__.py,sha256=pZv99Ga3M41e0UeaFqNCpegJ290stP9aGSOJBJx8kdc,98
|
|
72
72
|
fastapi_cloud_cli/commands/teams/_app.py,sha256=8GPnjBPidOK6F9V0ReNvd7XMjJaKvnbek3-cWSgAGWo,112
|
|
73
73
|
fastapi_cloud_cli/commands/teams/get.py,sha256=yUjmbxUngu72mp3LQYEq5av-sPuIvFLnpimOY1akhXA,2304
|
|
@@ -95,4 +95,4 @@ fastapi_cloud_cli/utils/progress_file.py,sha256=GMK-OgS1pr2IgfBpJgwPqkb2k37W0b2C
|
|
|
95
95
|
fastapi_cloud_cli/utils/sentry.py,sha256=C_KlTV8JCtB3slrCJLNoTo6beM87rWjxAr92uwmWLR0,599
|
|
96
96
|
fastapi_cloud_cli/utils/teams.py,sha256=PSCL-hySKcUU_pz45xBEKeB8NCbWLBCGlgx_GFLZ-2w,2007
|
|
97
97
|
fastapi_cloud_cli/utils/version_check.py,sha256=-iOus8nWNsQn9FnC5tZD0iCftjUdeCj-RFskPLz1KZE,5209
|
|
98
|
-
fastapi_cloud_cli-0.27.
|
|
98
|
+
fastapi_cloud_cli-0.27.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|