locust-cloud 1.21.7__tar.gz → 1.21.8__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 (35) hide show
  1. {locust_cloud-1.21.7 → locust_cloud-1.21.8}/.github/workflows/daily-check.yml +3 -1
  2. {locust_cloud-1.21.7 → locust_cloud-1.21.8}/PKG-INFO +1 -1
  3. {locust_cloud-1.21.7 → locust_cloud-1.21.8}/locust_cloud/apisession.py +1 -1
  4. {locust_cloud-1.21.7 → locust_cloud-1.21.8}/locust_cloud/cloud.py +1 -1
  5. {locust_cloud-1.21.7 → locust_cloud-1.21.8}/locust_cloud/docs/1-first-run.rst +1 -1
  6. {locust_cloud-1.21.7 → locust_cloud-1.21.8}/locust_cloud/web_login.py +1 -1
  7. {locust_cloud-1.21.7 → locust_cloud-1.21.8}/locustfile.py +11 -2
  8. locust_cloud-1.21.8/testdata/requirements.txt +1 -0
  9. {locust_cloud-1.21.7 → locust_cloud-1.21.8}/tests/web_login_test.py +1 -1
  10. {locust_cloud-1.21.7 → locust_cloud-1.21.8}/.github/workflows/tests.yml +0 -0
  11. {locust_cloud-1.21.7 → locust_cloud-1.21.8}/.gitignore +0 -0
  12. {locust_cloud-1.21.7 → locust_cloud-1.21.8}/.pre-commit-config.yaml +0 -0
  13. {locust_cloud-1.21.7 → locust_cloud-1.21.8}/.vscode/extensions.json +0 -0
  14. {locust_cloud-1.21.7 → locust_cloud-1.21.8}/.vscode/launch.json +0 -0
  15. {locust_cloud-1.21.7 → locust_cloud-1.21.8}/.vscode/settings.json +0 -0
  16. {locust_cloud-1.21.7 → locust_cloud-1.21.8}/LICENSE +0 -0
  17. {locust_cloud-1.21.7 → locust_cloud-1.21.8}/README.md +0 -0
  18. {locust_cloud-1.21.7 → locust_cloud-1.21.8}/locust_cloud/__init__.py +0 -0
  19. {locust_cloud-1.21.7 → locust_cloud-1.21.8}/locust_cloud/actions.py +0 -0
  20. {locust_cloud-1.21.7 → locust_cloud-1.21.8}/locust_cloud/args.py +0 -0
  21. {locust_cloud-1.21.7 → locust_cloud-1.21.8}/locust_cloud/common.py +0 -0
  22. {locust_cloud-1.21.7 → locust_cloud-1.21.8}/locust_cloud/docs/.gitignore +0 -0
  23. {locust_cloud-1.21.7 → locust_cloud-1.21.8}/locust_cloud/docs/2-examples.rst +0 -0
  24. {locust_cloud-1.21.7 → locust_cloud-1.21.8}/locust_cloud/docs/images/locust-cloud-screenshot.png +0 -0
  25. {locust_cloud-1.21.7 → locust_cloud-1.21.8}/locust_cloud/docs/locust-cloud.rst +0 -0
  26. {locust_cloud-1.21.7 → locust_cloud-1.21.8}/locust_cloud/input_events.py +0 -0
  27. {locust_cloud-1.21.7 → locust_cloud-1.21.8}/locust_cloud/websocket.py +0 -0
  28. {locust_cloud-1.21.7 → locust_cloud-1.21.8}/pyproject.toml +0 -0
  29. {locust_cloud-1.21.7 → locust_cloud-1.21.8}/testdata/extra-files/extra.txt +0 -0
  30. {locust_cloud-1.21.7 → locust_cloud-1.21.8}/testdata/extra-package/example/__init__.py +0 -0
  31. {locust_cloud-1.21.7 → locust_cloud-1.21.8}/testdata/extra-package/setup.py +0 -0
  32. {locust_cloud-1.21.7 → locust_cloud-1.21.8}/tests/args_test.py +0 -0
  33. {locust_cloud-1.21.7 → locust_cloud-1.21.8}/tests/cloud_test.py +0 -0
  34. {locust_cloud-1.21.7 → locust_cloud-1.21.8}/tests/websocket_test.py +0 -0
  35. {locust_cloud-1.21.7 → locust_cloud-1.21.8}/uv.lock +0 -0
@@ -35,13 +35,15 @@ jobs:
35
35
  # any local changes would make hatch-vcs set a "local version" (+dev0...), so we ignore any uv.lock updates:
36
36
  - run: git update-index --assume-unchanged uv.lock
37
37
  - run: uv run locust-cloud --help
38
- - run: uv run locust-cloud --image-tag master --profile status-checker --mock-server --autostart --autoquit 0 --run-time 1m --loglevel DEBUG --extra-files testdata/extra-files --extra-packages testdata/extra-package |& tee output.txt
38
+ - run: uv run locust-cloud --image-tag master --profile status-checker --mock-server --autostart --autoquit 0 --run-time 1m --loglevel DEBUG --extra-files testdata/extra-files --extra-packages testdata/extra-package --requirements testdata/requirements.txt |& tee output.txt
39
39
  # check ok exit
40
40
  - run: grep -m 1 '(exit code 0)' output.txt
41
41
  # check extra files specified were available
42
42
  - run: "grep -m 1 -- '--extra-files verification: pineapple' output.txt"
43
43
  # check extra package were successfully installed
44
44
  - run: "grep -m 1 -- 'Hello from the example package!' output.txt"
45
+ # check --requirements were successfully installed
46
+ - run: "grep -m 1 -- 'dotenv imported successfully' output.txt"
45
47
  # check for errors
46
48
  - run: bash -ec "! grep Traceback output.txt"
47
49
  - run: bash -ec "! grep ERROR output.txt"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: locust-cloud
3
- Version: 1.21.7
3
+ Version: 1.21.8
4
4
  Summary: Locust Cloud
5
5
  Project-URL: homepage, https://locust.cloud
6
6
  Project-URL: repository, https://github.com/locustcloud/locust-cloud
@@ -8,7 +8,7 @@ from locust_cloud.common import VALID_REGIONS, __version__, get_api_url, read_cl
8
8
 
9
9
  logger = logging.getLogger(__name__)
10
10
 
11
- unauthorized_message = "You need to log in again. Please run:\n locust --cloud --login"
11
+ unauthorized_message = "You need to log in again. Please run:\n locust --login"
12
12
 
13
13
 
14
14
  class ApiSession(requests.Session):
@@ -122,7 +122,7 @@ def main():
122
122
  logger.error(f"Failed to deploy the load generators: {e}")
123
123
  return 1
124
124
  else:
125
- logger.error("Your Locust instance is still running, run locust --cloud --delete")
125
+ logger.error("Your Locust instance is still running, run locust --delete")
126
126
  return 1
127
127
 
128
128
  if response.status_code != 200:
@@ -9,7 +9,7 @@ Once you have `signed up <https://locust.cloud/pricing>`_ for Locust Cloud and :
9
9
 
10
10
  .. code-block:: console
11
11
 
12
- $ locust --cloud --login
12
+ $ locust --login
13
13
  ...
14
14
 
15
15
  .. note::
@@ -62,7 +62,7 @@ If the browser does not open or you wish to use a different device to authorize
62
62
  print(f"\nFailed to authorize CLI: {data['reason']}")
63
63
  sys.exit(1)
64
64
  elif data["state"] == "authorized":
65
- print("\nAuthorization succeded. Now you can re-run locust --cloud without the --login flag.")
65
+ print("\nAuthorization succeded. Now you can start a cloud run using: locust --cloud ...")
66
66
  break
67
67
  else:
68
68
  print("\nGot unexpected response when authorizing CLI")
@@ -27,10 +27,19 @@ extra = pathlib.Path("testdata/extra-files/extra.txt")
27
27
  if extra.exists():
28
28
  print("--extra-files verification:", extra.read_text())
29
29
 
30
+ try:
31
+ import example # type: ignore
30
32
 
31
- import example # type: ignore
33
+ example.hello()
34
+ except ImportError:
35
+ pass # ignore this for local runs
32
36
 
33
- example.hello()
37
+ try:
38
+ import dotenv # type: ignore # noqa: F401
39
+
40
+ print("dotenv imported successfully, --requirements seems to be working")
41
+ except ImportError:
42
+ pass # ignore this for local runs
34
43
 
35
44
 
36
45
  if __name__ == "__main__":
@@ -0,0 +1 @@
1
+ python-dotenv==1.0.1
@@ -72,7 +72,7 @@ def test_browser_login_succeded(mocked_requests, select_region, monkeypatch, cap
72
72
  )
73
73
  locust_cloud.web_login.web_login()
74
74
 
75
- expected = "Authorization succeded. Now you can re-run locust --cloud without the --login flag."
75
+ expected = "Authorization succeded. Now you can start a cloud run using: locust --cloud ..."
76
76
  assert expected in capsys.readouterr().out
77
77
 
78
78
  expected_cloud_config = locust_cloud.common.CloudConfig(
File without changes
File without changes
File without changes
File without changes