reflex-hosting-cli 0.1.47__tar.gz → 0.1.49__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 (27) hide show
  1. {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/PKG-INFO +1 -1
  2. {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/pyproject.toml +1 -1
  3. {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/reflex_cli/utils/hosting.py +3 -0
  4. {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/reflex_cli/v2/cli.py +4 -0
  5. {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/.gitignore +0 -0
  6. {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/LICENSE +0 -0
  7. {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/README.md +0 -0
  8. {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/reflex_cli/__init__.py +0 -0
  9. {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/reflex_cli/cli.py +0 -0
  10. {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/reflex_cli/constants/__init__.py +0 -0
  11. {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/reflex_cli/constants/base.py +0 -0
  12. {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/reflex_cli/constants/compiler.py +0 -0
  13. {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/reflex_cli/constants/hosting.py +0 -0
  14. {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/reflex_cli/core/__init__.py +0 -0
  15. {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/reflex_cli/core/config.py +0 -0
  16. {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/reflex_cli/deployments.py +0 -0
  17. {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/reflex_cli/utils/__init__.py +0 -0
  18. {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/reflex_cli/utils/console.py +0 -0
  19. {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/reflex_cli/utils/dependency.py +0 -0
  20. {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/reflex_cli/utils/exceptions.py +0 -0
  21. {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/reflex_cli/v2/__init__.py +0 -0
  22. {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/reflex_cli/v2/apps.py +0 -0
  23. {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/reflex_cli/v2/deployments.py +0 -0
  24. {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/reflex_cli/v2/project.py +0 -0
  25. {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/reflex_cli/v2/secrets.py +0 -0
  26. {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/reflex_cli/v2/utils.py +0 -0
  27. {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/reflex_cli/v2/vmtypes_regions.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: reflex-hosting-cli
3
- Version: 0.1.47
3
+ Version: 0.1.49
4
4
  Summary: Reflex Hosting CLI
5
5
  Project-URL: homepage, https://reflex.dev
6
6
  Project-URL: repository, https://github.com/reflex-dev/reflex
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "reflex-hosting-cli"
3
- version = "0.1.47"
3
+ version = "0.1.49"
4
4
  description = "Reflex Hosting CLI"
5
5
  license = "Apache-2.0"
6
6
  authors = [
@@ -1228,6 +1228,7 @@ def create_deployment(
1228
1228
  secrets: dict | None,
1229
1229
  client: AuthenticatedClient,
1230
1230
  packages: list | None,
1231
+ strategy: str | None,
1231
1232
  ) -> str:
1232
1233
  """Create a new deployment for an application.
1233
1234
 
@@ -1287,6 +1288,8 @@ def create_deployment(
1287
1288
  payload["secrets"] = json.dumps(secrets)
1288
1289
  if packages:
1289
1290
  payload["packages"] = json.dumps(packages)
1291
+ if strategy:
1292
+ payload["deployment_strategy"] = strategy
1290
1293
 
1291
1294
  response = httpx.post(
1292
1295
  urljoin(constants.Hosting.HOSTING_SERVICE, "/v1/deployments"),
@@ -131,6 +131,7 @@ def deploy(
131
131
  config = hosting.read_config(config_path)
132
132
 
133
133
  packages = None
134
+ strategy = None
134
135
  include_db = False
135
136
  # If a cloud.yml file is provided, use values from the file that are not provided as arguments.
136
137
  if config:
@@ -157,6 +158,8 @@ def deploy(
157
158
  packages = config.get("packages", None)
158
159
  if not include_db:
159
160
  include_db = config.get("include_db", False)
161
+ if not strategy:
162
+ strategy = config.get("strategy", None)
160
163
  app_name = config.get("name", app_name)
161
164
  if not isinstance(app_name, (str, type(None))):
162
165
  console.error(
@@ -363,6 +366,7 @@ def deploy(
363
366
  secrets=processed_envs,
364
367
  client=authenticated_client,
365
368
  packages=packages,
369
+ strategy=strategy,
366
370
  )
367
371
  if "failed" in result:
368
372
  console.error(result)