locust-cloud 1.25.3.dev5__tar.gz → 1.25.3.dev9__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 (41) hide show
  1. {locust_cloud-1.25.3.dev5 → locust_cloud-1.25.3.dev9}/.github/workflows/daily-check.yml +2 -0
  2. {locust_cloud-1.25.3.dev5 → locust_cloud-1.25.3.dev9}/PKG-INFO +1 -1
  3. {locust_cloud-1.25.3.dev5 → locust_cloud-1.25.3.dev9}/locust_cloud/import_finder.py +2 -2
  4. {locust_cloud-1.25.3.dev5 → locust_cloud-1.25.3.dev9}/locustfile.py +5 -0
  5. locust_cloud-1.25.3.dev9/testdata/autodetected.py +3 -0
  6. {locust_cloud-1.25.3.dev5 → locust_cloud-1.25.3.dev9}/tests/import_finder_test.py +3 -3
  7. {locust_cloud-1.25.3.dev5 → locust_cloud-1.25.3.dev9}/.github/workflows/daily-alb-teardown.yml +0 -0
  8. {locust_cloud-1.25.3.dev5 → locust_cloud-1.25.3.dev9}/.github/workflows/tests.yml +0 -0
  9. {locust_cloud-1.25.3.dev5 → locust_cloud-1.25.3.dev9}/.gitignore +0 -0
  10. {locust_cloud-1.25.3.dev5 → locust_cloud-1.25.3.dev9}/.pre-commit-config.yaml +0 -0
  11. {locust_cloud-1.25.3.dev5 → locust_cloud-1.25.3.dev9}/.vscode/extensions.json +0 -0
  12. {locust_cloud-1.25.3.dev5 → locust_cloud-1.25.3.dev9}/.vscode/launch.json +0 -0
  13. {locust_cloud-1.25.3.dev5 → locust_cloud-1.25.3.dev9}/.vscode/settings.json +0 -0
  14. {locust_cloud-1.25.3.dev5 → locust_cloud-1.25.3.dev9}/LICENSE +0 -0
  15. {locust_cloud-1.25.3.dev5 → locust_cloud-1.25.3.dev9}/README.md +0 -0
  16. {locust_cloud-1.25.3.dev5 → locust_cloud-1.25.3.dev9}/alb-teardown.py +0 -0
  17. {locust_cloud-1.25.3.dev5 → locust_cloud-1.25.3.dev9}/locust_cloud/__init__.py +0 -0
  18. {locust_cloud-1.25.3.dev5 → locust_cloud-1.25.3.dev9}/locust_cloud/actions.py +0 -0
  19. {locust_cloud-1.25.3.dev5 → locust_cloud-1.25.3.dev9}/locust_cloud/apisession.py +0 -0
  20. {locust_cloud-1.25.3.dev5 → locust_cloud-1.25.3.dev9}/locust_cloud/args.py +0 -0
  21. {locust_cloud-1.25.3.dev5 → locust_cloud-1.25.3.dev9}/locust_cloud/cloud.py +0 -0
  22. {locust_cloud-1.25.3.dev5 → locust_cloud-1.25.3.dev9}/locust_cloud/common.py +0 -0
  23. {locust_cloud-1.25.3.dev5 → locust_cloud-1.25.3.dev9}/locust_cloud/docs/.gitignore +0 -0
  24. {locust_cloud-1.25.3.dev5 → locust_cloud-1.25.3.dev9}/locust_cloud/docs/1-first-run.rst +0 -0
  25. {locust_cloud-1.25.3.dev5 → locust_cloud-1.25.3.dev9}/locust_cloud/docs/2-examples.rst +0 -0
  26. {locust_cloud-1.25.3.dev5 → locust_cloud-1.25.3.dev9}/locust_cloud/docs/images/locust-cloud-screenshot.png +0 -0
  27. {locust_cloud-1.25.3.dev5 → locust_cloud-1.25.3.dev9}/locust_cloud/docs/locust-cloud.rst +0 -0
  28. {locust_cloud-1.25.3.dev5 → locust_cloud-1.25.3.dev9}/locust_cloud/input_events.py +0 -0
  29. {locust_cloud-1.25.3.dev5 → locust_cloud-1.25.3.dev9}/locust_cloud/web_login.py +0 -0
  30. {locust_cloud-1.25.3.dev5 → locust_cloud-1.25.3.dev9}/locust_cloud/websocket.py +0 -0
  31. {locust_cloud-1.25.3.dev5 → locust_cloud-1.25.3.dev9}/pyproject.toml +0 -0
  32. {locust_cloud-1.25.3.dev5 → locust_cloud-1.25.3.dev9}/testdata/extra-files/extra.txt +0 -0
  33. {locust_cloud-1.25.3.dev5 → locust_cloud-1.25.3.dev9}/testdata/extra-package/example/__init__.py +0 -0
  34. {locust_cloud-1.25.3.dev5 → locust_cloud-1.25.3.dev9}/testdata/extra-package/setup.py +0 -0
  35. {locust_cloud-1.25.3.dev5 → locust_cloud-1.25.3.dev9}/testdata/requirements.txt +0 -0
  36. {locust_cloud-1.25.3.dev5 → locust_cloud-1.25.3.dev9}/tests/args_test.py +0 -0
  37. {locust_cloud-1.25.3.dev5 → locust_cloud-1.25.3.dev9}/tests/browser_tests.py +0 -0
  38. {locust_cloud-1.25.3.dev5 → locust_cloud-1.25.3.dev9}/tests/cloud_test.py +0 -0
  39. {locust_cloud-1.25.3.dev5 → locust_cloud-1.25.3.dev9}/tests/web_login_test.py +0 -0
  40. {locust_cloud-1.25.3.dev5 → locust_cloud-1.25.3.dev9}/tests/websocket_test.py +0 -0
  41. {locust_cloud-1.25.3.dev5 → locust_cloud-1.25.3.dev9}/uv.lock +0 -0
@@ -40,6 +40,8 @@ jobs:
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
+ # check autodetected extra files were available
44
+ - run: "grep -m 1 -- 'import finder works' output.txt"
43
45
  # check extra package were successfully installed
44
46
  - run: "grep -m 1 -- 'Hello from the example package!' output.txt"
45
47
  # check --requirements were successfully installed
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: locust-cloud
3
- Version: 1.25.3.dev5
3
+ Version: 1.25.3.dev9
4
4
  Summary: Locust Cloud
5
5
  Project-URL: homepage, https://locust.cloud
6
6
  Project-URL: repository, https://github.com/locustcloud/locust-cloud
@@ -15,12 +15,12 @@ def imported_modules(tree):
15
15
  for node in ast.walk(tree):
16
16
  if isinstance(node, ast.Import):
17
17
  for alias in node.names:
18
- yield alias.name.split(".")[0]
18
+ yield alias.name
19
19
  if isinstance(node, ast.ImportFrom):
20
20
  if node.level: # relative import
21
21
  continue
22
22
  if node.module:
23
- yield node.module.split(".")[0]
23
+ yield node.module
24
24
 
25
25
 
26
26
  def get_imported_files(file_path: Path) -> set[Path]:
@@ -4,9 +4,14 @@ import random
4
4
 
5
5
  from locust import FastHttpUser, run_single_user, task # pyright: ignore [reportMissingImports]
6
6
 
7
+ from testdata.autodetected import stuff
8
+
7
9
  product_ids = [1, 2, 42, 4711]
8
10
 
9
11
 
12
+ stuff()
13
+
14
+
10
15
  class MyUser(FastHttpUser):
11
16
  @task
12
17
  def t(self) -> None:
@@ -0,0 +1,3 @@
1
+ # this file is not explicitly specified in --extra-files but should be added automatically
2
+ def stuff():
3
+ print("import finder works")
@@ -115,7 +115,7 @@ def test_package_imports():
115
115
  (test_package / "__init__.py").write_text(
116
116
  textwrap.dedent(
117
117
  """
118
- from test import bar
118
+ from .test import bar
119
119
  def foo():
120
120
  return "bar"
121
121
  """
@@ -134,12 +134,12 @@ def test_package_imports():
134
134
  assert get_imported_files(Path(f)) == {test_package.relative_to(CWD)}
135
135
 
136
136
  with temporary_file("import test_package.test") as f:
137
- assert get_imported_files(Path(f)) == {test_package.relative_to(CWD)}
137
+ assert get_imported_files(Path(f)) == {(test_package / "test.py").relative_to(CWD)}
138
138
 
139
139
  with temporary_file("from test_package import bar") as f:
140
140
  assert get_imported_files(Path(f)) == {test_package.relative_to(CWD)}
141
141
 
142
142
  with temporary_file("from test_package.test import bar") as f:
143
- assert get_imported_files(Path(f)) == {test_package.relative_to(CWD)}
143
+ assert get_imported_files(Path(f)) == {(test_package / "test.py").relative_to(CWD)}
144
144
  finally:
145
145
  shutil.rmtree(test_package, ignore_errors=True)