fastapi-cloud-cli 0.26.0__tar.gz → 0.27.0__tar.gz

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.
Files changed (147) hide show
  1. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/PKG-INFO +2 -2
  2. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/pyproject.toml +3 -3
  3. fastapi_cloud_cli-0.27.0/src/fastapi_cloud_cli/__init__.py +1 -0
  4. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/api/_models.py +16 -0
  5. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/deploy/archive.py +4 -2
  6. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/deploy/cloud.py +1 -0
  7. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/deploy/command.py +74 -6
  8. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/deploy/wait.py +15 -7
  9. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/integrations/resources/get.py +1 -5
  10. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/tests/domains/test_cli.py +7 -5
  11. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/tests/integrations/resources/test_disconnect.py +11 -6
  12. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/tests/integrations/resources/test_get.py +4 -2
  13. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/tests/test_api_client.py +17 -0
  14. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/tests/test_cli_deploy.py +222 -1
  15. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/tests/test_cli_setup_ci.py +6 -3
  16. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/tests/test_deploy_utils.py +18 -1
  17. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/tests/test_env_delete.py +7 -5
  18. fastapi_cloud_cli-0.26.0/src/fastapi_cloud_cli/__init__.py +0 -1
  19. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/LICENSE +0 -0
  20. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/README.md +0 -0
  21. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/scripts/add_latest_release_date.py +0 -0
  22. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/scripts/format.sh +0 -0
  23. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/scripts/lint.sh +0 -0
  24. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/scripts/prepare_release.py +0 -0
  25. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/scripts/test-cov-html.sh +0 -0
  26. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/scripts/test.sh +0 -0
  27. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/__main__.py +0 -0
  28. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/_app.py +0 -0
  29. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/api/__init__.py +0 -0
  30. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/api/_errors.py +0 -0
  31. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/api/_retry.py +0 -0
  32. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/api/client.py +0 -0
  33. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/cli.py +0 -0
  34. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/__init__.py +0 -0
  35. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/_auth.py +0 -0
  36. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/_flow.py +0 -0
  37. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/apps/__init__.py +0 -0
  38. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/apps/_app.py +0 -0
  39. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/apps/create.py +0 -0
  40. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/apps/get.py +0 -0
  41. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/apps/link.py +0 -0
  42. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/apps/list.py +0 -0
  43. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/apps/unlink.py +0 -0
  44. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/apps/update.py +0 -0
  45. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/auth/__init__.py +0 -0
  46. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/auth/_app.py +0 -0
  47. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/auth/wait.py +0 -0
  48. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/ci/__init__.py +0 -0
  49. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/ci/_app.py +0 -0
  50. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/ci/print_workflow.py +0 -0
  51. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/deploy/__init__.py +0 -0
  52. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/deploy/configure.py +0 -0
  53. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/deploy/upload.py +0 -0
  54. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/deployments.py +0 -0
  55. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/domains/__init__.py +0 -0
  56. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/domains/_app.py +0 -0
  57. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/domains/_setup.py +0 -0
  58. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/domains/_shared.py +0 -0
  59. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/domains/add.py +0 -0
  60. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/domains/get.py +0 -0
  61. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/domains/list.py +0 -0
  62. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/domains/remove.py +0 -0
  63. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/domains/rendering.py +0 -0
  64. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/domains/restart.py +0 -0
  65. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/env/__init__.py +0 -0
  66. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/env/_app.py +0 -0
  67. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/env/_shared.py +0 -0
  68. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/env/delete.py +0 -0
  69. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/env/get.py +0 -0
  70. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/env/list.py +0 -0
  71. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/env/set.py +0 -0
  72. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/integrations/__init__.py +0 -0
  73. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/integrations/providers/__init__.py +0 -0
  74. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/integrations/providers/_app.py +0 -0
  75. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/integrations/providers/list.py +0 -0
  76. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/integrations/resources/__init__.py +0 -0
  77. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/integrations/resources/_app.py +0 -0
  78. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/integrations/resources/connect.py +0 -0
  79. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/integrations/resources/disconnect.py +0 -0
  80. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/integrations/resources/list.py +0 -0
  81. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/integrations/resources/providers.py +0 -0
  82. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/login.py +0 -0
  83. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/logout.py +0 -0
  84. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/logs.py +0 -0
  85. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/setup_ci.py +0 -0
  86. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/teams/__init__.py +0 -0
  87. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/teams/_app.py +0 -0
  88. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/teams/get.py +0 -0
  89. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/teams/list.py +0 -0
  90. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/tokens/__init__.py +0 -0
  91. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/tokens/_app.py +0 -0
  92. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/tokens/create.py +0 -0
  93. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/tokens/delete.py +0 -0
  94. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/tokens/list.py +0 -0
  95. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/commands/whoami.py +0 -0
  96. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/config.py +0 -0
  97. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/logging.py +0 -0
  98. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/py.typed +0 -0
  99. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/utils/__init__.py +0 -0
  100. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/utils/apps.py +0 -0
  101. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/utils/auth.py +0 -0
  102. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/utils/build_logs.py +0 -0
  103. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/utils/cli.py +0 -0
  104. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/utils/config.py +0 -0
  105. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/utils/dates.py +0 -0
  106. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/utils/env.py +0 -0
  107. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/utils/errors.py +0 -0
  108. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/utils/execution.py +0 -0
  109. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/utils/progress_file.py +0 -0
  110. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/utils/sentry.py +0 -0
  111. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/utils/teams.py +0 -0
  112. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/src/fastapi_cloud_cli/utils/version_check.py +0 -0
  113. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/tests/__init__.py +0 -0
  114. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/tests/conftest.py +0 -0
  115. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/tests/domains/__init__.py +0 -0
  116. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/tests/domains/test_setup.py +0 -0
  117. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/tests/integrations/__init__.py +0 -0
  118. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/tests/integrations/providers/__init__.py +0 -0
  119. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/tests/integrations/providers/test_list.py +0 -0
  120. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/tests/integrations/resources/__init__.py +0 -0
  121. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/tests/integrations/resources/test_connect.py +0 -0
  122. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/tests/integrations/resources/test_list.py +0 -0
  123. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/tests/test_archive.py +0 -0
  124. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/tests/test_auth.py +0 -0
  125. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/tests/test_cli.py +0 -0
  126. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/tests/test_cli_apps.py +0 -0
  127. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/tests/test_cli_ci.py +0 -0
  128. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/tests/test_cli_deployments.py +0 -0
  129. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/tests/test_cli_link.py +0 -0
  130. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/tests/test_cli_login.py +0 -0
  131. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/tests/test_cli_logout.py +0 -0
  132. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/tests/test_cli_teams.py +0 -0
  133. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/tests/test_cli_tokens.py +0 -0
  134. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/tests/test_cli_unlink.py +0 -0
  135. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/tests/test_cli_whoami.py +0 -0
  136. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/tests/test_config.py +0 -0
  137. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/tests/test_dates.py +0 -0
  138. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/tests/test_env_get.py +0 -0
  139. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/tests/test_env_list.py +0 -0
  140. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/tests/test_env_set.py +0 -0
  141. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/tests/test_logs.py +0 -0
  142. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/tests/test_prepare_release.py +0 -0
  143. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/tests/test_progress_file.py +0 -0
  144. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/tests/test_sentry.py +0 -0
  145. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/tests/test_utils_apps.py +0 -0
  146. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/tests/test_version_check.py +0 -0
  147. {fastapi_cloud_cli-0.26.0 → fastapi_cloud_cli-0.27.0}/tests/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fastapi-cloud-cli
3
- Version: 0.26.0
3
+ Version: 0.27.0
4
4
  Summary: Deploy and manage FastAPI Cloud apps from the command line 🚀
5
5
  Author-Email: Patrick Arminio <patrick@fastapilabs.com>
6
6
  License: MIT
@@ -33,7 +33,7 @@ Requires-Dist: typer>=0.26.1
33
33
  Requires-Dist: uvicorn[standard]>=0.17.6
34
34
  Requires-Dist: rignore>=0.5.1
35
35
  Requires-Dist: httpx>=0.27.0
36
- Requires-Dist: rich-toolkit>=0.20.5
36
+ Requires-Dist: rich-toolkit>=0.20.6
37
37
  Requires-Dist: pydantic[email]>=2.7.4; python_version < "3.13"
38
38
  Requires-Dist: pydantic[email]>=2.8.0; python_version == "3.13"
39
39
  Requires-Dist: pydantic[email]>=2.12.0; python_version >= "3.14"
@@ -33,7 +33,7 @@ dependencies = [
33
33
  "uvicorn[standard] >= 0.17.6",
34
34
  "rignore >= 0.5.1",
35
35
  "httpx >= 0.27.0",
36
- "rich-toolkit>=0.20.5",
36
+ "rich-toolkit>=0.20.6",
37
37
  "pydantic[email] >= 2.7.4; python_version < '3.13'",
38
38
  "pydantic[email] >= 2.8.0; python_version == '3.13'",
39
39
  "pydantic[email] >= 2.12.0; python_version >= '3.14'",
@@ -42,7 +42,7 @@ dependencies = [
42
42
  "detect-installer>=0.1.0",
43
43
  "agent-detector>=1.1.0",
44
44
  ]
45
- version = "0.26.0"
45
+ version = "0.27.0"
46
46
 
47
47
  [project.license]
48
48
  text = "MIT"
@@ -64,7 +64,7 @@ dev = [
64
64
  "prek>=0.2.24,<1.0.0",
65
65
  "pytest>=7.0.0,<10.0.0",
66
66
  "coverage[toml]>=7.2,<8.0",
67
- "mypy==2.3.1",
67
+ "mypy==2.4.1",
68
68
  "ruff>=0.15.16",
69
69
  "respx==0.23.1",
70
70
  "time-machine>=2.19.0",
@@ -0,0 +1 @@
1
+ __version__ = "0.27.0"
@@ -100,6 +100,8 @@ class DeploymentStatus(str, Enum):
100
100
  waiting_upload = "waiting_upload"
101
101
  upload_cancelled = "upload_cancelled"
102
102
  ready_for_build = "ready_for_build"
103
+ build_skipped_filtered = "build_skipped_filtered"
104
+ build_skipped_superseded = "build_skipped_superseded"
103
105
  building = "building"
104
106
  extracting = "extracting"
105
107
  extracting_failed = "extracting_failed"
@@ -120,12 +122,20 @@ class DeploymentStatus(str, Enum):
120
122
  expired = "expired"
121
123
  failed = "failed"
122
124
 
125
+ unknown = "unknown"
126
+
127
+ @classmethod
128
+ def _missing_(cls, value: object) -> "DeploymentStatus":
129
+ return cls.unknown
130
+
123
131
  @classmethod
124
132
  def to_human_readable(cls, status: "DeploymentStatus") -> str:
125
133
  return {
126
134
  cls.waiting_upload: "Awaiting Upload",
127
135
  cls.upload_cancelled: "Upload Cancelled",
128
136
  cls.ready_for_build: "Build Queued",
137
+ cls.build_skipped_filtered: "Build Skipped (Filtered)",
138
+ cls.build_skipped_superseded: "Build Skipped (Superseded)",
129
139
  cls.building: "Building",
130
140
  cls.extracting: "Extracting Upload",
131
141
  cls.extracting_failed: "Extraction Failed",
@@ -145,6 +155,7 @@ class DeploymentStatus(str, Enum):
145
155
  cls.degraded: "Degraded",
146
156
  cls.expired: "Expired",
147
157
  cls.failed: "Failed",
158
+ cls.unknown: "Unknown",
148
159
  }[status]
149
160
 
150
161
 
@@ -167,10 +178,15 @@ BUILD_FAILED_STATUSES = {
167
178
  DeploymentStatus.extracting_failed_archive_too_large,
168
179
  }
169
180
  FAILED_STATUSES = BUILD_FAILED_STATUSES | {
181
+ DeploymentStatus.build_skipped_filtered,
182
+ DeploymentStatus.build_skipped_superseded,
170
183
  DeploymentStatus.failed,
171
184
  DeploymentStatus.verifying_failed,
172
185
  DeploymentStatus.verification_failed_oom,
173
186
  DeploymentStatus.deploying_failed,
174
187
  DeploymentStatus.deploying_skipped,
188
+ DeploymentStatus.degraded,
189
+ DeploymentStatus.degraded_oom,
190
+ DeploymentStatus.expired,
175
191
  }
176
192
  TERMINAL_STATUSES = SUCCESSFUL_STATUSES | FAILED_STATUSES
@@ -57,6 +57,7 @@ def _should_exclude_entry(path: Path) -> bool:
57
57
  ".git",
58
58
  ".gitignore",
59
59
  ".fastapicloudignore",
60
+ ".fastapicloud",
60
61
  ]
61
62
 
62
63
  if any(part in path.parts for part in parts_to_exclude):
@@ -80,7 +81,8 @@ def _rignore_walk(path: Path) -> rignore.Walker:
80
81
  )
81
82
 
82
83
 
83
- def archive(path: Path, tar_path: Path) -> Path:
84
+ def archive(path: Path, tar_path: Path) -> int:
85
+ """Write the files to upload into `tar_path` and return how many there were."""
84
86
  logger.debug("Starting archive creation for path: %s", path)
85
87
  files = _rignore_walk(path)
86
88
 
@@ -98,7 +100,7 @@ def archive(path: Path, tar_path: Path) -> Path:
98
100
  file_count += 1
99
101
 
100
102
  logger.debug("Archive created successfully with %s files", file_count)
101
- return tar_path
103
+ return file_count
102
104
 
103
105
 
104
106
  def _get_large_files(path: Path, threshold_mb: int) -> list[tuple[Path, int]]:
@@ -21,6 +21,7 @@ class AppResponse(BaseModel):
21
21
  id: str
22
22
  slug: str
23
23
  directory: str | None
24
+ github_repository: str | None = None
24
25
 
25
26
 
26
27
  class CreateDeploymentResponse(BaseModel):
@@ -99,16 +99,61 @@ def _render_linked_app_not_found(
99
99
  )
100
100
 
101
101
 
102
+ def _confirm_home_directory_deploy(
103
+ toolkit: FastAPIRichToolkit, *, json_output: bool
104
+ ) -> None:
105
+ if json_output or is_ci_enabled():
106
+ toolkit.fail(
107
+ "invalid_input",
108
+ "Refusing to deploy your home directory.",
109
+ hint="Pass the directory of your app, or use --force.",
110
+ )
111
+
112
+ if not toolkit.confirm(
113
+ "You are deploying your home directory. Do you want to continue?",
114
+ default=False,
115
+ emoji="🚨",
116
+ ):
117
+ toolkit.print_line()
118
+ toolkit.print("Deployment cancelled.")
119
+ raise typer.Exit(0)
120
+
121
+ toolkit.print_line()
122
+
123
+
124
+ def _check_app_directory(
125
+ toolkit: FastAPIRichToolkit, *, app: AppResponse, path_to_deploy: Path
126
+ ) -> None:
127
+ """Stop before uploading when the app's directory isn't in the upload."""
128
+ if app.directory is None or (path_to_deploy / app.directory).is_dir():
129
+ return
130
+
131
+ if app.github_repository:
132
+ hint = (
133
+ f"This app is connected to {app.github_repository} and builds from "
134
+ f"`{app.directory}` in that repository. Run "
135
+ f"`fastapi deploy --app-id {app.id}` from the repository root, or use --force."
136
+ )
137
+ else:
138
+ hint = (
139
+ "Deploy from the folder that contains it, update the app directory "
140
+ "with `fastapi cloud apps update --directory`, or use --force."
141
+ )
142
+
143
+ toolkit.fail(
144
+ "invalid_input",
145
+ f"The app directory `{app.directory}` doesn't exist in {path_to_deploy}.",
146
+ hint=hint,
147
+ )
148
+
149
+
102
150
  @app.command()
103
151
  @cloud_app.command()
104
152
  def deploy(
105
153
  path: Annotated[
106
154
  Path | None,
107
155
  typer.Argument(
108
- help=(
109
- "Path to the directory with your app's pyproject.toml "
110
- "(defaults to current directory)"
111
- )
156
+ help="Path to the directory to deploy (defaults to current directory)"
112
157
  ),
113
158
  ] = None,
114
159
  skip_wait: Annotated[
@@ -131,6 +176,13 @@ def deploy(
131
176
  ),
132
177
  ] = 10,
133
178
  json_output: JsonOutputOption = False,
179
+ force: Annotated[
180
+ bool,
181
+ typer.Option(
182
+ "--force",
183
+ help="Deploy even if the app directory is missing or the path is your home directory",
184
+ ),
185
+ ] = False,
134
186
  ) -> Any:
135
187
  """
136
188
  Deploy a [bold]FastAPI[/bold] app to FastAPI Cloud.
@@ -212,6 +264,9 @@ def deploy(
212
264
  path_to_deploy = path or Path.cwd()
213
265
  logger.debug("Deploying from path: %s", path_to_deploy)
214
266
 
267
+ if not force and path_to_deploy.resolve() == Path.home().resolve():
268
+ _confirm_home_directory_deploy(toolkit, json_output=json_output)
269
+
215
270
  app_config = get_app_config(path_to_deploy)
216
271
 
217
272
  if app_config and provided_app_id and app_config.app_id != provided_app_id:
@@ -230,7 +285,7 @@ def deploy(
230
285
  elif app_config:
231
286
  target_app_id = app_config.app_id
232
287
  else:
233
- if json_output:
288
+ if json_output or is_ci_enabled():
234
289
  toolkit.fail(
235
290
  "missing_required_input",
236
291
  "App ID is required.",
@@ -281,6 +336,9 @@ def deploy(
281
336
 
282
337
  app = cast(AppResponse, app)
283
338
 
339
+ if not force:
340
+ _check_app_directory(toolkit, app=app, path_to_deploy=path_to_deploy)
341
+
284
342
  large_files = _get_large_files(
285
343
  path_to_deploy, threshold_mb=large_file_threshold
286
344
  )
@@ -316,9 +374,19 @@ def deploy(
316
374
  with tempfile.TemporaryDirectory() as temp_dir:
317
375
  logger.debug("Creating archive for deployment")
318
376
  archive_path = Path(temp_dir) / "archive.tar"
319
- archive(path_to_deploy, archive_path)
377
+ file_count = archive(path_to_deploy, archive_path)
320
378
  archive_size = archive_path.stat().st_size
321
379
 
380
+ if file_count == 0:
381
+ toolkit.fail(
382
+ "invalid_input",
383
+ f"Nothing to deploy: no files to upload in {path_to_deploy}.",
384
+ hint=(
385
+ "Check the path, and that .gitignore or "
386
+ ".fastapicloudignore don't exclude your app's files."
387
+ ),
388
+ )
389
+
322
390
  with (
323
391
  toolkit.progress(
324
392
  title="Creating deployment",
@@ -21,6 +21,10 @@ from fastapi_cloud_cli.utils.build_logs import print_build_error
21
21
  from fastapi_cloud_cli.utils.cli import FastAPIRichToolkit
22
22
  from fastapi_cloud_cli.utils.execution import is_ci_enabled
23
23
 
24
+ # The build finished but we couldn't confirm the deployment came up. Distinct
25
+ # from 1 so scripts can tell "still verifying" from "failed".
26
+ UNCONFIRMED_EXIT_CODE = 3
27
+
24
28
  # (bullet emoji, message) — the emoji replaces the progress animation
25
29
  WAITING_MESSAGES = [
26
30
  ("🚀", "Preparing for liftoff! Almost there..."),
@@ -55,6 +59,7 @@ def _verify_deployment(
55
59
  deployment: CreateDeploymentResponse,
56
60
  ) -> None:
57
61
  failed_status: str | None = None
62
+ unconfirmed = False
58
63
 
59
64
  with toolkit.progress(
60
65
  title="Verifying deployment...",
@@ -69,15 +74,18 @@ def _verify_deployment(
69
74
  f"Could not confirm deployment status. "
70
75
  f"Check the dashboard: [link={deployment.dashboard_url}]{deployment.dashboard_url}[/link]"
71
76
  )
72
- return
73
-
74
- if final_status in SUCCESSFUL_STATUSES:
75
- progress.current_message = "Ready the chicken! 🐔"
77
+ unconfirmed = True
76
78
  else:
77
- progress.metadata["done_emoji"] = "❌"
78
- progress.current_message = "Deployment failed"
79
+ if final_status in SUCCESSFUL_STATUSES:
80
+ progress.current_message = "Ready the chicken! 🐔"
81
+ else:
82
+ progress.metadata["done_emoji"] = "❌"
83
+ progress.current_message = "Deployment failed"
84
+
85
+ failed_status = DeploymentStatus.to_human_readable(final_status)
79
86
 
80
- failed_status = DeploymentStatus.to_human_readable(final_status)
87
+ if unconfirmed:
88
+ raise typer.Exit(UNCONFIRMED_EXIT_CODE)
81
89
 
82
90
  if failed_status is not None:
83
91
  toolkit.print_line()
@@ -9,10 +9,7 @@ from rich_toolkit import RichToolkit
9
9
  from fastapi_cloud_cli.api import APIClient
10
10
  from fastapi_cloud_cli.commands._auth import UserCommand, get_user_command_context
11
11
  from fastapi_cloud_cli.commands.integrations.resources._app import resources_app
12
- from fastapi_cloud_cli.commands.integrations.resources.providers import (
13
- PROVIDER_NAMES,
14
- Provider,
15
- )
12
+ from fastapi_cloud_cli.commands.integrations.resources.providers import PROVIDER_NAMES
16
13
  from fastapi_cloud_cli.utils.apps import resolve_app_id_or_fail
17
14
  from fastapi_cloud_cli.utils.cli import get_details_table
18
15
  from fastapi_cloud_cli.utils.dates import format_last_updated
@@ -55,7 +52,6 @@ class ConnectedResourceAPIResponse(BaseModel):
55
52
  class ConnectedResourceBase(BaseModel):
56
53
  id: str
57
54
  name: str
58
- provider: Provider
59
55
  console_url: str
60
56
  environment_variables: list[str]
61
57
  created_at: str
@@ -954,7 +954,9 @@ def test_domains_remove_warns_and_confirms(
954
954
  return_value=Response(200, json={"message": "Custom domain deleted"})
955
955
  )
956
956
 
957
- with patch("rich_toolkit.container.getchar", side_effect=[Keys.ENTER]):
957
+ with patch(
958
+ "rich_toolkit.container.getchar", side_effect=[Keys.RIGHT_ARROW, Keys.ENTER]
959
+ ):
958
960
  result = runner.invoke(
959
961
  app,
960
962
  ["domains", "remove", domain["name"], "--app-id", APP_ID],
@@ -967,6 +969,9 @@ custom domains
967
969
  ⚠️ FastAPI Cloud resources for api.example.com will be removed. DNS records at
968
970
  your provider will not be changed.
969
971
 
972
+ Remove api.example.com?
973
+ ○ Yes ● No
974
+
970
975
  Remove api.example.com?
971
976
  ● Yes ○ No
972
977
 
@@ -1023,7 +1028,7 @@ def test_domains_remove_can_be_cancelled(
1023
1028
 
1024
1029
  with patch(
1025
1030
  "rich_toolkit.container.getchar",
1026
- side_effect=[Keys.RIGHT_ARROW, Keys.ENTER],
1031
+ side_effect=[Keys.ENTER],
1027
1032
  ):
1028
1033
  result = runner.invoke(
1029
1034
  app,
@@ -1037,9 +1042,6 @@ custom domains
1037
1042
  ⚠️ FastAPI Cloud resources for api.example.com will be removed. DNS records at
1038
1043
  your provider will not be changed.
1039
1044
 
1040
- Remove api.example.com?
1041
- ● Yes ○ No
1042
-
1043
1045
  Remove api.example.com?
1044
1046
  ○ Yes ● No
1045
1047
 
@@ -220,7 +220,7 @@ def test_disconnect_resource_allows_interactive_selection(
220
220
  changing_dir(tmp_path),
221
221
  patch(
222
222
  "rich_toolkit.container.getchar",
223
- side_effect=[Keys.ENTER, Keys.ENTER],
223
+ side_effect=[Keys.ENTER, Keys.RIGHT_ARROW, Keys.ENTER],
224
224
  ),
225
225
  ):
226
226
  result = runner.invoke(app, ["integrations", "resources", "disconnect"])
@@ -238,6 +238,9 @@ disconnect resource
238
238
  💡 The managed environment variables DATABASE_URL, DATABASE_PASSWORD will be
239
239
  removed from the app. The Neon resource itself will not be deleted.
240
240
 
241
+ Disconnect production?
242
+ ○ Yes ● No
243
+
241
244
  Disconnect production?
242
245
  ● Yes ○ No
243
246
 
@@ -264,7 +267,9 @@ def test_disconnect_resource_prompts_for_confirmation_when_id_is_provided(
264
267
  return_value=Response(204)
265
268
  )
266
269
 
267
- with patch("rich_toolkit.container.getchar", side_effect=[Keys.ENTER]):
270
+ with patch(
271
+ "rich_toolkit.container.getchar", side_effect=[Keys.RIGHT_ARROW, Keys.ENTER]
272
+ ):
268
273
  result = runner.invoke(
269
274
  app,
270
275
  [
@@ -284,6 +289,9 @@ disconnect resource
284
289
  💡 Managed environment variables will be removed from the app. The Neon
285
290
  resource itself will not be deleted.
286
291
 
292
+ Disconnect production?
293
+ ○ Yes ● No
294
+
287
295
  Disconnect production?
288
296
  ● Yes ○ No
289
297
 
@@ -304,7 +312,7 @@ def test_disconnect_resource_can_be_cancelled(
304
312
 
305
313
  with patch(
306
314
  "rich_toolkit.container.getchar",
307
- side_effect=[Keys.RIGHT_ARROW, Keys.ENTER],
315
+ side_effect=[Keys.ENTER],
308
316
  ):
309
317
  result = runner.invoke(
310
318
  app,
@@ -325,9 +333,6 @@ disconnect resource
325
333
  💡 The managed environment variables DATABASE_URL, DATABASE_PASSWORD will be
326
334
  removed from the app. The Neon resource itself will not be deleted.
327
335
 
328
- Disconnect production?
329
- ● Yes ○ No
330
-
331
336
  Disconnect production?
332
337
  ○ Yes ● No
333
338
 
@@ -107,17 +107,19 @@ def test_gets_resource_json_returns_not_logged_in_when_logged_out(
107
107
 
108
108
 
109
109
  @pytest.mark.respx
110
+ @pytest.mark.parametrize("provider", ["neon", "redis", "supabase"])
110
111
  def test_gets_database_resource_as_json_with_explicit_app_overriding_linked_app(
111
112
  logged_in_cli: None,
112
113
  respx_mock: respx.MockRouter,
113
114
  tmp_path: Path,
115
+ provider: DatabaseProvider,
114
116
  ) -> None:
115
117
  write_app_config(
116
118
  tmp_path,
117
119
  AppConfig(app_id=LINKED_APP_ID, team_id=TEAM_ID),
118
120
  )
119
121
  respx_mock.get(f"/apps/{APP_ID}/connected-resources/{RESOURCE_ID}").mock(
120
- return_value=Response(200, json=_database_resource())
122
+ return_value=Response(200, json=_database_resource(provider=provider))
121
123
  )
122
124
 
123
125
  with changing_dir(tmp_path):
@@ -141,7 +143,7 @@ def test_gets_database_resource_as_json_with_explicit_app_overriding_linked_app(
141
143
  "resource": {
142
144
  "id": RESOURCE_ID,
143
145
  "name": "production",
144
- "provider": "neon",
146
+ "provider": provider,
145
147
  "console_url": CONSOLE_URL,
146
148
  "environment_variables": ["DATABASE_URL", "DATABASE_PASSWORD"],
147
149
  "created_at": CREATED_AT,
@@ -440,6 +440,23 @@ def test_poll_deployment_status_recovers_from_transient_errors(
440
440
  assert call_count == 3
441
441
 
442
442
 
443
+ def test_poll_deployment_status_keeps_polling_on_unknown_status(
444
+ poll_route: respx.Route, client: APIClient, deployment_id: str
445
+ ) -> None:
446
+ poll_route.mock(
447
+ side_effect=[
448
+ Response(200, json={"status": "some_new_status"}),
449
+ Response(200, json={"status": "success"}),
450
+ ]
451
+ )
452
+
453
+ with patch("time.sleep"):
454
+ status = client.poll_deployment_status(deployment_id)
455
+
456
+ assert status == DeploymentStatus.success
457
+ assert poll_route.call_count == 2
458
+
459
+
443
460
  def test_poll_deployment_status_raises_after_max_consecutive_errors(
444
461
  poll_route: respx.Route, client: APIClient, deployment_id: str
445
462
  ) -> None: