fastapi-cloud-cli 0.28.0__py3-none-any.whl → 0.28.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.
@@ -1 +1 @@
1
- __version__ = "0.28.0"
1
+ __version__ = "0.28.1"
@@ -1,4 +1,4 @@
1
- from enum import Enum
1
+ from enum import StrEnum
2
2
  from typing import Annotated, Literal
3
3
 
4
4
  from pydantic import BaseModel, Field, TypeAdapter
@@ -50,7 +50,7 @@ BuildLogAdapter: TypeAdapter[BuildLogLine] = TypeAdapter(
50
50
  )
51
51
 
52
52
 
53
- class CustomDomainStatus(str, Enum):
53
+ class CustomDomainStatus(StrEnum):
54
54
  internal_dcv_pending = "internal_dcv_pending"
55
55
  internal_dcv_missing = "internal_dcv_missing"
56
56
  internal_dcv_invalid = "internal_dcv_invalid"
@@ -96,7 +96,7 @@ class CustomDomainsAPIResponse(BaseModel):
96
96
  count: int
97
97
 
98
98
 
99
- class DeploymentStatus(str, Enum):
99
+ class DeploymentStatus(StrEnum):
100
100
  waiting_upload = "waiting_upload"
101
101
  upload_cancelled = "upload_cancelled"
102
102
  ready_for_build = "ready_for_build"
@@ -4,10 +4,9 @@ from collections.abc import Callable, Generator
4
4
  from contextlib import contextmanager
5
5
  from datetime import timedelta
6
6
  from functools import wraps
7
- from typing import TypeVar
7
+ from typing import ParamSpec, TypeVar
8
8
 
9
9
  import httpx
10
- from typing_extensions import ParamSpec
11
10
 
12
11
  from ._errors import StreamLogError, TooManyRetriesError
13
12
 
@@ -84,7 +84,7 @@ def _get_log_bullet(log: AppLogEntry) -> str:
84
84
  def _format_log_line(log: AppLogEntry) -> str:
85
85
  """Format a log entry for display"""
86
86
  # Parse the timestamp string to format it consistently
87
- timestamp = datetime.fromisoformat(log.timestamp.replace("Z", "+00:00"))
87
+ timestamp = datetime.fromisoformat(log.timestamp)
88
88
  timestamp_str = timestamp.strftime("%Y-%m-%dT%H:%M:%S.%f")[:-3] + "Z"
89
89
 
90
90
  return f"[dim]{timestamp_str}[/dim] {escape(log.message)}"
@@ -2,7 +2,7 @@ import logging
2
2
  import re
3
3
  import shutil
4
4
  import subprocess
5
- from datetime import datetime, timezone
5
+ from datetime import UTC, datetime
6
6
  from pathlib import Path, PurePath
7
7
  from typing import Annotated, Any
8
8
 
@@ -418,7 +418,7 @@ def setup_ci(
418
418
 
419
419
  if should_create_token:
420
420
  # Create unique token name with timestamp to avoid duplicates
421
- timestamp = datetime.now(timezone.utc).strftime("%Y-%m-%d %H:%M UTC")
421
+ timestamp = datetime.now(UTC).strftime("%Y-%m-%d %H:%M UTC")
422
422
  token_name = f"GitHub Actions — {repo_slug} ({timestamp})"
423
423
 
424
424
  with (
@@ -1,4 +1,4 @@
1
- from datetime import datetime, timezone
1
+ from datetime import UTC, datetime
2
2
 
3
3
 
4
4
  def format_last_updated(updated_at: str | None) -> str:
@@ -6,14 +6,14 @@ def format_last_updated(updated_at: str | None) -> str:
6
6
  return "-"
7
7
 
8
8
  try:
9
- updated = datetime.fromisoformat(updated_at.replace("Z", "+00:00"))
9
+ updated = datetime.fromisoformat(updated_at)
10
10
  except ValueError:
11
11
  return updated_at
12
12
 
13
13
  if updated.tzinfo is None:
14
- updated = updated.replace(tzinfo=timezone.utc)
14
+ updated = updated.replace(tzinfo=UTC)
15
15
 
16
- now = datetime.now(timezone.utc)
16
+ now = datetime.now(UTC)
17
17
  seconds = int((now - updated).total_seconds())
18
18
 
19
19
  if seconds < 60:
@@ -4,7 +4,7 @@ import re
4
4
  import threading
5
5
  from contextlib import suppress
6
6
  from dataclasses import dataclass
7
- from datetime import datetime, timedelta, timezone
7
+ from datetime import UTC, datetime, timedelta
8
8
  from pathlib import Path
9
9
 
10
10
  import httpx
@@ -68,7 +68,7 @@ def read_cached_latest_version(
68
68
  *,
69
69
  ttl: timedelta = VERSION_CHECK_CACHE_TTL,
70
70
  ) -> str | None:
71
- now = datetime.now(timezone.utc)
71
+ now = datetime.now(UTC)
72
72
 
73
73
  try:
74
74
  cache = VersionCheckCache.model_validate_json(
@@ -93,7 +93,7 @@ def write_latest_version_cache(
93
93
  latest_version: str,
94
94
  now: datetime | None = None,
95
95
  ) -> None:
96
- now = now or datetime.now(timezone.utc)
96
+ now = now or datetime.now(UTC)
97
97
  data = {
98
98
  "latest_version": latest_version,
99
99
  "checked_at": now.isoformat(),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fastapi-cloud-cli
3
- Version: 0.28.0
3
+ Version: 0.28.1
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
@@ -19,7 +19,6 @@ Classifier: Framework :: FastAPI
19
19
  Classifier: Intended Audience :: Developers
20
20
  Classifier: License :: OSI Approved :: MIT License
21
21
  Classifier: Programming Language :: Python :: 3 :: Only
22
- Classifier: Programming Language :: Python :: 3.10
23
22
  Classifier: Programming Language :: Python :: 3.11
24
23
  Classifier: Programming Language :: Python :: 3.12
25
24
  Classifier: Programming Language :: Python :: 3.13
@@ -30,7 +29,7 @@ Project-URL: Documentation, https://fastapi.tiangolo.com/fastapi-cloud-cli/
30
29
  Project-URL: Repository, https://github.com/fastapilabs/fastapi-cloud-cli
31
30
  Project-URL: Issues, https://github.com/fastapilabs/fastapi-cloud-cli/issues
32
31
  Project-URL: Changelog, https://github.com/fastapilabs/fastapi-cloud-cli/blob/main/release-notes.md
33
- Requires-Python: >=3.10
32
+ Requires-Python: >=3.11
34
33
  Requires-Dist: typer>=0.26.1
35
34
  Requires-Dist: uvicorn[standard]>=0.17.6
36
35
  Requires-Dist: rignore>=0.5.1
@@ -1,14 +1,14 @@
1
- fastapi_cloud_cli-0.28.0.dist-info/METADATA,sha256=FTbMEcYhgHNQx3Ylk_Y2XMayV2vunrc8aRlX8NTcm9E,3210
2
- fastapi_cloud_cli-0.28.0.dist-info/WHEEL,sha256=IuIk3wbaEnFH1cx75iM2R1CmliRI3dFLXTbRakgvgFQ,90
3
- fastapi_cloud_cli-0.28.0.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
4
- fastapi_cloud_cli-0.28.0.dist-info/licenses/LICENSE,sha256=FqD5B4VbXJnefprQseE0U8llL6FxojC-i8muZy7YmSU,1086
5
- fastapi_cloud_cli/__init__.py,sha256=MRQGtOXBhcDKeeNOL0LiB-cllo6kfd8_KGJOvaDp0XQ,23
1
+ fastapi_cloud_cli-0.28.1.dist-info/METADATA,sha256=-eHVHt9RrxB22c1wMgnkT1zx7lnAzm1lzn4mJcZCLqY,3159
2
+ fastapi_cloud_cli-0.28.1.dist-info/WHEEL,sha256=IuIk3wbaEnFH1cx75iM2R1CmliRI3dFLXTbRakgvgFQ,90
3
+ fastapi_cloud_cli-0.28.1.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
4
+ fastapi_cloud_cli-0.28.1.dist-info/licenses/LICENSE,sha256=FqD5B4VbXJnefprQseE0U8llL6FxojC-i8muZy7YmSU,1086
5
+ fastapi_cloud_cli/__init__.py,sha256=ZRQKbgDaGz_yuLk-cUKuk6ZBKCSRKZC8nQd041NRNXk,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
9
9
  fastapi_cloud_cli/api/_errors.py,sha256=YAoKrlK92zvFlzG1LJhin3qMLW8ODgeDTYD4ASBOh8U,3717
10
- fastapi_cloud_cli/api/_models.py,sha256=dfEklsl6TbPWHN9i1SNzz6lLgLXG6LPUglXklnTfUI0,6076
11
- fastapi_cloud_cli/api/_retry.py,sha256=SsSG2jid2RjwpHpKRU_YfzzjLKAnk17OjgkyQgPLzxo,2706
10
+ fastapi_cloud_cli/api/_models.py,sha256=nW0LoufFl6Ix9xexRhW_2sil6dvO_kPimf9cG6YN9w0,6075
11
+ fastapi_cloud_cli/api/_retry.py,sha256=FAVsRnd71jKBzIJ1sbe4pH193ciYOxigzJeM3RwkdqY,2677
12
12
  fastapi_cloud_cli/api/client.py,sha256=qYJjU-7eGdJshhTNqhXly7i84WJUCBXUPDz_KUqjuj8,11256
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
@@ -66,8 +66,8 @@ fastapi_cloud_cli/commands/integrations/resources/list.py,sha256=AKyBWgZxpssor3j
66
66
  fastapi_cloud_cli/commands/integrations/resources/providers.py,sha256=-9RnA7qW-rYaBm2q86bQlnqTvzorjjrbT0XBwwwY7uA,232
67
67
  fastapi_cloud_cli/commands/login.py,sha256=EayW1vrv0-_8q8jXEmRFuGu6iepz-5j9g4wUg2RI7Aw,3736
68
68
  fastapi_cloud_cli/commands/logout.py,sha256=Qtxf7yeAtw4ACKA71Irr0LNgvAk7vFNXOnHHC9_kiSM,2033
69
- fastapi_cloud_cli/commands/logs.py,sha256=poPw556Z4-te7OcwqxXsWzco-jjjpYllcGlLXsx-iew,8029
70
- fastapi_cloud_cli/commands/setup_ci.py,sha256=o5jgFl6BCO1Z82jx4AVmtd2bUvlBVIKZk743fFxj8qo,17382
69
+ fastapi_cloud_cli/commands/logs.py,sha256=MvZ49O7Kq_ALHaVGHVnU4MSinsN4aqMOfYKRe4cMqiQ,8006
70
+ fastapi_cloud_cli/commands/setup_ci.py,sha256=V2SG2uIzVEgSi-PQAMmNeJmx-qLDIKl7h55oP6WarIc,17368
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
@@ -87,12 +87,12 @@ fastapi_cloud_cli/utils/auth.py,sha256=JsYLurjPX4vRP_x_Aks8uHGEk3GTfH8hwtD0lmlUV
87
87
  fastapi_cloud_cli/utils/build_logs.py,sha256=rVFz1OyedADpuemBwL2mIVSrkjBPEwoD_nAarPkPluY,500
88
88
  fastapi_cloud_cli/utils/cli.py,sha256=q11avEJcjBlOpifeTnsDX--BxMGR2aXVbHKgxdPrFhY,14635
89
89
  fastapi_cloud_cli/utils/config.py,sha256=qxPHFmzfJWfm_sfc-DKFPoNTc5jFK7_Bnfy6DVhWigE,700
90
- fastapi_cloud_cli/utils/dates.py,sha256=cnBPp1f2cDj8_3vWt1RnOrbGVYh7Nr31n95gN5t2RSI,1081
90
+ fastapi_cloud_cli/utils/dates.py,sha256=O5_9cv9AOofZ9TnAZG_0PvBb6X-NOGh6KAr9U8T-fvI,1035
91
91
  fastapi_cloud_cli/utils/env.py,sha256=a9S6ehNGxhKbQHXxFVJtjqMEkodKwKa0wOvRVh9VBjw,125
92
92
  fastapi_cloud_cli/utils/errors.py,sha256=lZYNUNgZejV-ztlp-zMTwjIJ-Od_5XvfW3RkHKf-jLw,580
93
93
  fastapi_cloud_cli/utils/execution.py,sha256=oyxRLUlvdBIqZyiYkyP9OR7J7WBJuZL5Pp4NnX98o-E,398
94
94
  fastapi_cloud_cli/utils/progress_file.py,sha256=GMK-OgS1pr2IgfBpJgwPqkb2k37W0b2Crsu_r3WSEWo,988
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
- fastapi_cloud_cli/utils/version_check.py,sha256=-iOus8nWNsQn9FnC5tZD0iCftjUdeCj-RFskPLz1KZE,5209
98
- fastapi_cloud_cli-0.28.0.dist-info/RECORD,,
97
+ fastapi_cloud_cli/utils/version_check.py,sha256=JJIED6Cl_yXQADdX5xT-4j-zyKP6L17w9mkcGjKKYp4,5186
98
+ fastapi_cloud_cli-0.28.1.dist-info/RECORD,,