locust-cloud 1.25.2.dev1__tar.gz → 1.25.2.dev5__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 (38) hide show
  1. {locust_cloud-1.25.2.dev1 → locust_cloud-1.25.2.dev5}/PKG-INFO +1 -1
  2. {locust_cloud-1.25.2.dev1 → locust_cloud-1.25.2.dev5}/locust_cloud/args.py +5 -2
  3. {locust_cloud-1.25.2.dev1 → locust_cloud-1.25.2.dev5}/locust_cloud/cloud.py +1 -2
  4. {locust_cloud-1.25.2.dev1 → locust_cloud-1.25.2.dev5}/.github/workflows/daily-alb-teardown.yml +0 -0
  5. {locust_cloud-1.25.2.dev1 → locust_cloud-1.25.2.dev5}/.github/workflows/daily-check.yml +0 -0
  6. {locust_cloud-1.25.2.dev1 → locust_cloud-1.25.2.dev5}/.github/workflows/tests.yml +0 -0
  7. {locust_cloud-1.25.2.dev1 → locust_cloud-1.25.2.dev5}/.gitignore +0 -0
  8. {locust_cloud-1.25.2.dev1 → locust_cloud-1.25.2.dev5}/.pre-commit-config.yaml +0 -0
  9. {locust_cloud-1.25.2.dev1 → locust_cloud-1.25.2.dev5}/.vscode/extensions.json +0 -0
  10. {locust_cloud-1.25.2.dev1 → locust_cloud-1.25.2.dev5}/.vscode/launch.json +0 -0
  11. {locust_cloud-1.25.2.dev1 → locust_cloud-1.25.2.dev5}/.vscode/settings.json +0 -0
  12. {locust_cloud-1.25.2.dev1 → locust_cloud-1.25.2.dev5}/LICENSE +0 -0
  13. {locust_cloud-1.25.2.dev1 → locust_cloud-1.25.2.dev5}/README.md +0 -0
  14. {locust_cloud-1.25.2.dev1 → locust_cloud-1.25.2.dev5}/alb-teardown.py +0 -0
  15. {locust_cloud-1.25.2.dev1 → locust_cloud-1.25.2.dev5}/locust_cloud/__init__.py +0 -0
  16. {locust_cloud-1.25.2.dev1 → locust_cloud-1.25.2.dev5}/locust_cloud/actions.py +0 -0
  17. {locust_cloud-1.25.2.dev1 → locust_cloud-1.25.2.dev5}/locust_cloud/apisession.py +0 -0
  18. {locust_cloud-1.25.2.dev1 → locust_cloud-1.25.2.dev5}/locust_cloud/common.py +0 -0
  19. {locust_cloud-1.25.2.dev1 → locust_cloud-1.25.2.dev5}/locust_cloud/docs/.gitignore +0 -0
  20. {locust_cloud-1.25.2.dev1 → locust_cloud-1.25.2.dev5}/locust_cloud/docs/1-first-run.rst +0 -0
  21. {locust_cloud-1.25.2.dev1 → locust_cloud-1.25.2.dev5}/locust_cloud/docs/2-examples.rst +0 -0
  22. {locust_cloud-1.25.2.dev1 → locust_cloud-1.25.2.dev5}/locust_cloud/docs/images/locust-cloud-screenshot.png +0 -0
  23. {locust_cloud-1.25.2.dev1 → locust_cloud-1.25.2.dev5}/locust_cloud/docs/locust-cloud.rst +0 -0
  24. {locust_cloud-1.25.2.dev1 → locust_cloud-1.25.2.dev5}/locust_cloud/input_events.py +0 -0
  25. {locust_cloud-1.25.2.dev1 → locust_cloud-1.25.2.dev5}/locust_cloud/web_login.py +0 -0
  26. {locust_cloud-1.25.2.dev1 → locust_cloud-1.25.2.dev5}/locust_cloud/websocket.py +0 -0
  27. {locust_cloud-1.25.2.dev1 → locust_cloud-1.25.2.dev5}/locustfile.py +0 -0
  28. {locust_cloud-1.25.2.dev1 → locust_cloud-1.25.2.dev5}/pyproject.toml +0 -0
  29. {locust_cloud-1.25.2.dev1 → locust_cloud-1.25.2.dev5}/testdata/extra-files/extra.txt +0 -0
  30. {locust_cloud-1.25.2.dev1 → locust_cloud-1.25.2.dev5}/testdata/extra-package/example/__init__.py +0 -0
  31. {locust_cloud-1.25.2.dev1 → locust_cloud-1.25.2.dev5}/testdata/extra-package/setup.py +0 -0
  32. {locust_cloud-1.25.2.dev1 → locust_cloud-1.25.2.dev5}/testdata/requirements.txt +0 -0
  33. {locust_cloud-1.25.2.dev1 → locust_cloud-1.25.2.dev5}/tests/args_test.py +0 -0
  34. {locust_cloud-1.25.2.dev1 → locust_cloud-1.25.2.dev5}/tests/browser_tests.py +0 -0
  35. {locust_cloud-1.25.2.dev1 → locust_cloud-1.25.2.dev5}/tests/cloud_test.py +0 -0
  36. {locust_cloud-1.25.2.dev1 → locust_cloud-1.25.2.dev5}/tests/web_login_test.py +0 -0
  37. {locust_cloud-1.25.2.dev1 → locust_cloud-1.25.2.dev5}/tests/websocket_test.py +0 -0
  38. {locust_cloud-1.25.2.dev1 → locust_cloud-1.25.2.dev5}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: locust-cloud
3
- Version: 1.25.2.dev1
3
+ Version: 1.25.2.dev5
4
4
  Summary: Locust Cloud
5
5
  Project-URL: homepage, https://locust.cloud
6
6
  Project-URL: repository, https://github.com/locustcloud/locust-cloud
@@ -102,12 +102,14 @@ def transfer_encoded_file(file_path: str) -> dict[str, str]:
102
102
  raise ArgumentTypeError(f"File not found: {file_path}")
103
103
 
104
104
 
105
- def expanded(paths: Iterable[pathlib.Path]) -> Generator[pathlib.Path, None, None]:
105
+ def expanded(paths: Iterable[pathlib.Path], skip_folders: list[str] = []) -> Generator[pathlib.Path, None, None]:
106
106
  for path in paths:
107
107
  path = pathlib.Path(path)
108
108
 
109
109
  if path.is_dir():
110
110
  for root, _, file_names in os.walk(path):
111
+ if root.split("/")[-1] in skip_folders:
112
+ continue
111
113
  for file_name in file_names:
112
114
  yield pathlib.Path(root) / file_name
113
115
  else:
@@ -116,9 +118,10 @@ def expanded(paths: Iterable[pathlib.Path]) -> Generator[pathlib.Path, None, Non
116
118
 
117
119
  def zip_project_paths(paths: Iterable[pathlib.Path], to_file: str = "project"):
118
120
  buffer = io.BytesIO()
121
+ skip_folders = ["__pycache__"]
119
122
 
120
123
  with ZipFile(buffer, "w") as zf:
121
- for path in set(expanded(paths)):
124
+ for path in set(expanded(paths, skip_folders=skip_folders)):
122
125
  zf.write(path)
123
126
 
124
127
  buffer.seek(0)
@@ -147,10 +147,9 @@ def main(locustfiles: list[str] | None = None):
147
147
 
148
148
  log_ws_url = js["log_ws_url"]
149
149
  session_id = js["session_id"]
150
- webui_url = log_ws_url.replace("/socket-logs", "")
151
150
 
152
151
  def open_ui():
153
- webbrowser.open_new_tab(webui_url)
152
+ webbrowser.open_new_tab("https://auth.locust.cloud/load-test")
154
153
 
155
154
  Thread(target=input_listener({"\r": open_ui, "\n": open_ui}), daemon=True).start()
156
155