locust-cloud 1.27.2.dev6__tar.gz → 1.27.2.dev11__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.

Potentially problematic release.


This version of locust-cloud might be problematic. Click here for more details.

Files changed (37) hide show
  1. {locust_cloud-1.27.2.dev6 → locust_cloud-1.27.2.dev11}/PKG-INFO +1 -1
  2. {locust_cloud-1.27.2.dev6 → locust_cloud-1.27.2.dev11}/locust_cloud/__init__.py +6 -2
  3. {locust_cloud-1.27.2.dev6 → locust_cloud-1.27.2.dev11}/locust_cloud/args.py +5 -1
  4. {locust_cloud-1.27.2.dev6 → locust_cloud-1.27.2.dev11}/.github/workflows/daily-check.yml +0 -0
  5. {locust_cloud-1.27.2.dev6 → locust_cloud-1.27.2.dev11}/.github/workflows/tests.yml +0 -0
  6. {locust_cloud-1.27.2.dev6 → locust_cloud-1.27.2.dev11}/.gitignore +0 -0
  7. {locust_cloud-1.27.2.dev6 → locust_cloud-1.27.2.dev11}/.pre-commit-config.yaml +0 -0
  8. {locust_cloud-1.27.2.dev6 → locust_cloud-1.27.2.dev11}/.vscode/extensions.json +0 -0
  9. {locust_cloud-1.27.2.dev6 → locust_cloud-1.27.2.dev11}/.vscode/launch.json +0 -0
  10. {locust_cloud-1.27.2.dev6 → locust_cloud-1.27.2.dev11}/.vscode/settings.json +0 -0
  11. {locust_cloud-1.27.2.dev6 → locust_cloud-1.27.2.dev11}/LICENSE +0 -0
  12. {locust_cloud-1.27.2.dev6 → locust_cloud-1.27.2.dev11}/README.md +0 -0
  13. {locust_cloud-1.27.2.dev6 → locust_cloud-1.27.2.dev11}/locust_cloud/apisession.py +0 -0
  14. {locust_cloud-1.27.2.dev6 → locust_cloud-1.27.2.dev11}/locust_cloud/common.py +0 -0
  15. {locust_cloud-1.27.2.dev6 → locust_cloud-1.27.2.dev11}/locust_cloud/docs/.gitignore +0 -0
  16. {locust_cloud-1.27.2.dev6 → locust_cloud-1.27.2.dev11}/locust_cloud/docs/1-first-run.rst +0 -0
  17. {locust_cloud-1.27.2.dev6 → locust_cloud-1.27.2.dev11}/locust_cloud/docs/2-examples.rst +0 -0
  18. {locust_cloud-1.27.2.dev6 → locust_cloud-1.27.2.dev11}/locust_cloud/docs/images/locust-cloud-screenshot.png +0 -0
  19. {locust_cloud-1.27.2.dev6 → locust_cloud-1.27.2.dev11}/locust_cloud/docs/locust-cloud.rst +0 -0
  20. {locust_cloud-1.27.2.dev6 → locust_cloud-1.27.2.dev11}/locust_cloud/import_finder.py +0 -0
  21. {locust_cloud-1.27.2.dev6 → locust_cloud-1.27.2.dev11}/locust_cloud/input_events.py +0 -0
  22. {locust_cloud-1.27.2.dev6 → locust_cloud-1.27.2.dev11}/locust_cloud/web_login.py +0 -0
  23. {locust_cloud-1.27.2.dev6 → locust_cloud-1.27.2.dev11}/locust_cloud/websocket.py +0 -0
  24. {locust_cloud-1.27.2.dev6 → locust_cloud-1.27.2.dev11}/locustfile.py +0 -0
  25. {locust_cloud-1.27.2.dev6 → locust_cloud-1.27.2.dev11}/pyproject.toml +0 -0
  26. {locust_cloud-1.27.2.dev6 → locust_cloud-1.27.2.dev11}/testdata/autodetected.py +0 -0
  27. {locust_cloud-1.27.2.dev6 → locust_cloud-1.27.2.dev11}/testdata/extra-files/extra.txt +0 -0
  28. {locust_cloud-1.27.2.dev6 → locust_cloud-1.27.2.dev11}/testdata/extra-package/example/__init__.py +0 -0
  29. {locust_cloud-1.27.2.dev6 → locust_cloud-1.27.2.dev11}/testdata/extra-package/setup.py +0 -0
  30. {locust_cloud-1.27.2.dev6 → locust_cloud-1.27.2.dev11}/testdata/requirements.txt +0 -0
  31. {locust_cloud-1.27.2.dev6 → locust_cloud-1.27.2.dev11}/tests/args_test.py +0 -0
  32. {locust_cloud-1.27.2.dev6 → locust_cloud-1.27.2.dev11}/tests/browser_tests.py +0 -0
  33. {locust_cloud-1.27.2.dev6 → locust_cloud-1.27.2.dev11}/tests/cloud_test.py +0 -0
  34. {locust_cloud-1.27.2.dev6 → locust_cloud-1.27.2.dev11}/tests/import_finder_test.py +0 -0
  35. {locust_cloud-1.27.2.dev6 → locust_cloud-1.27.2.dev11}/tests/web_login_test.py +0 -0
  36. {locust_cloud-1.27.2.dev6 → locust_cloud-1.27.2.dev11}/tests/websocket_test.py +0 -0
  37. {locust_cloud-1.27.2.dev6 → locust_cloud-1.27.2.dev11}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: locust-cloud
3
- Version: 1.27.2.dev6
3
+ Version: 1.27.2.dev11
4
4
  Summary: Locust Cloud
5
5
  Project-URL: homepage, https://locust.cloud
6
6
  Project-URL: repository, https://github.com/locustcloud/locust-cloud
@@ -78,6 +78,7 @@ def main(locustfiles: list[str] | None = None):
78
78
  if env_variable.startswith("LOCUST_")
79
79
  and env_variable
80
80
  not in [
81
+ "LOCUST_LOCUSTFILE",
81
82
  "LOCUST_USERS",
82
83
  "LOCUST_WEB_HOST_DISPLAY_NAME",
83
84
  "LOCUST_SKIP_MONKEY_PATCH",
@@ -86,7 +87,7 @@ def main(locustfiles: list[str] | None = None):
86
87
  ]
87
88
 
88
89
  locust_args = [
89
- {"name": "LOCUST_USERS", "value": str(options.users)},
90
+ {"name": "LOCUST_LOCUSTFILE", "value": ",".join([str(file) for file in relative_locustfiles])},
90
91
  {"name": "LOCUST_FLAGS", "value": " ".join([option for option in locust_options if option != "--cloud"])},
91
92
  {"name": "LOCUSTCLOUD_DEPLOYER_URL", "value": session.api_url},
92
93
  *locust_env_variables,
@@ -98,7 +99,6 @@ def main(locustfiles: list[str] | None = None):
98
99
  payload = {
99
100
  "locust_args": locust_args,
100
101
  "project_data": project_data,
101
- "user_count": options.users,
102
102
  }
103
103
 
104
104
  if options.image_tag is not None:
@@ -111,6 +111,10 @@ def main(locustfiles: list[str] | None = None):
111
111
  if options.workers is not None:
112
112
  payload["worker_count"] = options.workers
113
113
 
114
+ if options.users:
115
+ payload["user_count"] = options.users
116
+ locust_args.append({"name": "LOCUST_USERS", "value": str(options.users)})
117
+
114
118
  if options.requirements:
115
119
  payload["requirements"] = options.requirements
116
120
 
@@ -269,11 +269,15 @@ Parameters specified on command line override env vars, which in turn override c
269
269
  add_config_file_help=False,
270
270
  add_env_var_help=False,
271
271
  )
272
+ # Consume locustfile flag to not be forwarded into load generators
273
+ combined_cloud_parser.add_argument(
274
+ "-f",
275
+ "--locustfile",
276
+ )
272
277
  combined_cloud_parser.add_argument(
273
278
  "-u",
274
279
  "--users",
275
280
  type=int,
276
- default=1,
277
281
  help="Number of users to launch. This is the same as the regular Locust argument, but also affects how many workers to launch.",
278
282
  env_var="LOCUST_USERS",
279
283
  )