pytestflow 0.2.0__tar.gz → 0.2.2__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 (70) hide show
  1. {pytestflow-0.2.0 → pytestflow-0.2.2}/PKG-INFO +3 -1
  2. {pytestflow-0.2.0 → pytestflow-0.2.2}/pyproject.toml +4 -2
  3. {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/cli.py +3 -28
  4. {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow.egg-info/PKG-INFO +3 -1
  5. {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow.egg-info/SOURCES.txt +0 -1
  6. {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow.egg-info/requires.txt +2 -0
  7. pytestflow-0.2.0/setup.py +0 -4
  8. {pytestflow-0.2.0 → pytestflow-0.2.2}/MANIFEST.in +0 -0
  9. {pytestflow-0.2.0 → pytestflow-0.2.2}/bootstrap_templates/__init__.py +0 -0
  10. {pytestflow-0.2.0 → pytestflow-0.2.2}/bootstrap_templates/config.yaml +0 -0
  11. {pytestflow-0.2.0 → pytestflow-0.2.2}/bootstrap_templates/custom_step_types/__init__.py +0 -0
  12. {pytestflow-0.2.0 → pytestflow-0.2.2}/bootstrap_templates/custom_step_types/custom_step_template.py +0 -0
  13. {pytestflow-0.2.0 → pytestflow-0.2.2}/bootstrap_templates/process_models/__init__.py +0 -0
  14. {pytestflow-0.2.0 → pytestflow-0.2.2}/bootstrap_templates/process_models/reporting/README.md +0 -0
  15. {pytestflow-0.2.0 → pytestflow-0.2.2}/bootstrap_templates/process_models/reporting/__init__.py +0 -0
  16. {pytestflow-0.2.0 → pytestflow-0.2.2}/bootstrap_templates/process_models/reporting/default_report.html.j2 +0 -0
  17. {pytestflow-0.2.0 → pytestflow-0.2.2}/bootstrap_templates/process_models/reporting/html_report.py +0 -0
  18. {pytestflow-0.2.0 → pytestflow-0.2.2}/bootstrap_templates/process_models/sequential_model.py +0 -0
  19. {pytestflow-0.2.0 → pytestflow-0.2.2}/bootstrap_templates/test_sequences/__init__.py +0 -0
  20. {pytestflow-0.2.0 → pytestflow-0.2.2}/bootstrap_templates/test_sequences/basic_sequence.py +0 -0
  21. {pytestflow-0.2.0 → pytestflow-0.2.2}/bootstrap_templates/test_sequences/message_box_and_flow_control.py +0 -0
  22. {pytestflow-0.2.0 → pytestflow-0.2.2}/bootstrap_templates/test_sequences/motherboard_test_sequence.py +0 -0
  23. {pytestflow-0.2.0 → pytestflow-0.2.2}/bootstrap_templates/test_sequences/step_types_quickstart.py +0 -0
  24. {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/README.md +0 -0
  25. {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/__init__.py +0 -0
  26. {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/backend/__init__.py +0 -0
  27. {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/backend/event_bus.py +0 -0
  28. {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/backend/frontend/assets/full_logo-D1DRTUt8.svg +0 -0
  29. {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/backend/frontend/assets/index-480TOyh4.js +0 -0
  30. {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/backend/frontend/assets/index-qEI3VAQU.css +0 -0
  31. {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/backend/frontend/index.html +0 -0
  32. {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/backend/frontend/logo.svg +0 -0
  33. {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/backend/handlers.py +0 -0
  34. {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/backend/report_manager.py +0 -0
  35. {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/backend/sequences_info.py +0 -0
  36. {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/backend/start_backend.py +0 -0
  37. {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/backend/uuids_handler.py +0 -0
  38. {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/backend/websocket_gateway.py +0 -0
  39. {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/config/__init__.py +0 -0
  40. {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/config/config_manager.py +0 -0
  41. {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/core/README.md +0 -0
  42. {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/core/__init__.py +0 -0
  43. {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/core/context.py +0 -0
  44. {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/core/core.py +0 -0
  45. {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/core/pytestflow_states.py +0 -0
  46. {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/core/runtime_control.py +0 -0
  47. {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/core/seq_file_runner.py +0 -0
  48. {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/core/sequence.py +0 -0
  49. {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/core/utils.py +0 -0
  50. {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/flow_utils/README.md +0 -0
  51. {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/flow_utils/__init__.py +0 -0
  52. {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/flow_utils/conditions.py +0 -0
  53. {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/flow_utils/transitions.py +0 -0
  54. {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/starter_here.md +0 -0
  55. {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/steps/README.md +0 -0
  56. {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/steps/__init__.py +0 -0
  57. {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/steps/action_step.py +0 -0
  58. {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/steps/common.py +0 -0
  59. {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/steps/df_numeric_limits.py +0 -0
  60. {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/steps/flow_control.py +0 -0
  61. {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/steps/message_pop_up.py +0 -0
  62. {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/steps/numeric_limit.py +0 -0
  63. {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/steps/pass_fail.py +0 -0
  64. {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/steps/string_check.py +0 -0
  65. {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow/steps/waveform_limit.py +0 -0
  66. {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow.egg-info/dependency_links.txt +0 -0
  67. {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow.egg-info/entry_points.txt +0 -0
  68. {pytestflow-0.2.0 → pytestflow-0.2.2}/pytestflow.egg-info/top_level.txt +0 -0
  69. {pytestflow-0.2.0 → pytestflow-0.2.2}/readme.md +0 -0
  70. {pytestflow-0.2.0 → pytestflow-0.2.2}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pytestflow
3
- Version: 0.2.0
3
+ Version: 0.2.2
4
4
  Summary: Test automation framework inspired by NI TestStand, built on Prefect
5
5
  Author-email: Alberto Manzoni <alb.manzoni@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/Alberto-Manzoni/PyTestFlow
@@ -18,6 +18,8 @@ Classifier: Topic :: Software Development :: Testing
18
18
  Requires-Python: >=3.10
19
19
  Description-Content-Type: text/markdown
20
20
  Requires-Dist: prefect==3.6.24
21
+ Requires-Dist: fastapi==0.136.0
22
+ Requires-Dist: starlette==1.0.0
21
23
  Requires-Dist: pandas
22
24
  Requires-Dist: numpy
23
25
  Requires-Dist: rich
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "pytestflow"
7
- version = "0.2.0"
7
+ version = "0.2.2"
8
8
  description = "Test automation framework inspired by NI TestStand, built on Prefect"
9
9
  readme = "readme.md"
10
10
  requires-python = ">=3.10"
@@ -12,7 +12,9 @@ authors = [
12
12
  { name = "Alberto Manzoni", email = "alb.manzoni@gmail.com" },
13
13
  ]
14
14
  dependencies = [
15
- "prefect==3.6.24",
15
+ "prefect==3.6.24",
16
+ "fastapi==0.136.0",
17
+ "starlette==1.0.0",
16
18
  "pandas",
17
19
  "numpy",
18
20
  "rich",
@@ -1,12 +1,9 @@
1
1
  import argparse
2
- import os
3
2
  import shutil
4
3
  import sys
5
4
  from pathlib import Path
6
5
  from importlib import resources
7
6
 
8
- APP_DIR_NAME = "pytestflow"
9
-
10
7
  # --------------------
11
8
  # Template map
12
9
  # --------------------
@@ -19,21 +16,6 @@ TEMPLATE_SOURCE_MAP = {
19
16
  # --------------------
20
17
  # Workspace helpers
21
18
  # --------------------
22
- def resolve_workspace_root(custom_path: str | None = None) -> Path:
23
- if custom_path:
24
- return Path(custom_path).expanduser().resolve()
25
-
26
- home = Path.home()
27
- if sys.platform.startswith("win"):
28
- base = Path(os.getenv("LOCALAPPDATA") or os.getenv("APPDATA") or (home / "AppData/Local"))
29
- elif sys.platform == "darwin":
30
- base = home / "Library/Application Support"
31
- else:
32
- base = Path(os.getenv("XDG_DATA_HOME") or (home / ".local/share"))
33
-
34
- return (base / APP_DIR_NAME).resolve()
35
-
36
-
37
19
  def workspace_paths(root: Path) -> dict[str, Path]:
38
20
  subdirs = ["process_models", "test_sequences", "test_reports", "custom_step_types"]
39
21
  paths = {"root": root}
@@ -74,16 +56,9 @@ def _copy_templates(paths: dict[str, Path]) -> list[tuple[str, Path]]:
74
56
  return copied
75
57
 
76
58
 
77
- def initialize_workspace_interactive() -> dict[str, Path]:
59
+ def initialize_workspace() -> dict[str, Path]:
78
60
  print("PyTestFlow workspace initialization:")
79
- choice = input(
80
- "Install templates in current folder (c) or default location (d)? [d/c]: "
81
- ).strip().lower()
82
-
83
- if choice == "c":
84
- root = Path.cwd()
85
- else:
86
- root = resolve_workspace_root()
61
+ root = Path.cwd().resolve()
87
62
 
88
63
  paths = workspace_paths(root)
89
64
  root.mkdir(parents=True, exist_ok=True)
@@ -167,7 +142,7 @@ def main(argv=None) -> int:
167
142
  command = args.command or "start"
168
143
 
169
144
  if command == "init":
170
- initialize_workspace_interactive()
145
+ initialize_workspace()
171
146
  return 0
172
147
 
173
148
  if command == "start":
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pytestflow
3
- Version: 0.2.0
3
+ Version: 0.2.2
4
4
  Summary: Test automation framework inspired by NI TestStand, built on Prefect
5
5
  Author-email: Alberto Manzoni <alb.manzoni@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/Alberto-Manzoni/PyTestFlow
@@ -18,6 +18,8 @@ Classifier: Topic :: Software Development :: Testing
18
18
  Requires-Python: >=3.10
19
19
  Description-Content-Type: text/markdown
20
20
  Requires-Dist: prefect==3.6.24
21
+ Requires-Dist: fastapi==0.136.0
22
+ Requires-Dist: starlette==1.0.0
21
23
  Requires-Dist: pandas
22
24
  Requires-Dist: numpy
23
25
  Requires-Dist: rich
@@ -1,7 +1,6 @@
1
1
  MANIFEST.in
2
2
  pyproject.toml
3
3
  readme.md
4
- setup.py
5
4
  bootstrap_templates/__init__.py
6
5
  bootstrap_templates/config.yaml
7
6
  bootstrap_templates/custom_step_types/__init__.py
@@ -1,4 +1,6 @@
1
1
  prefect==3.6.24
2
+ fastapi==0.136.0
3
+ starlette==1.0.0
2
4
  pandas
3
5
  numpy
4
6
  rich
pytestflow-0.2.0/setup.py DELETED
@@ -1,4 +0,0 @@
1
- from setuptools import setup
2
-
3
-
4
- setup()
File without changes
File without changes
File without changes