happyscript 0.0.53__tar.gz → 0.0.54__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 (57) hide show
  1. {happyscript-0.0.53 → happyscript-0.0.54}/PKG-INFO +1 -1
  2. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/__init__.py +1 -1
  3. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/scriptmanager.py +3 -3
  4. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/staticscriptmanager.py +6 -0
  5. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript.egg-info/PKG-INFO +1 -1
  6. {happyscript-0.0.53 → happyscript-0.0.54}/pyproject.toml +1 -1
  7. {happyscript-0.0.53 → happyscript-0.0.54}/README.md +0 -0
  8. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/charts/__init__.py +0 -0
  9. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/charts/chart.py +0 -0
  10. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/charts/histogram_chart.py +0 -0
  11. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/charts/histogram_series.py +0 -0
  12. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/charts/matplotlib_chart.py +0 -0
  13. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/charts/panel_charts.py +0 -0
  14. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/charts/scatter_chart.py +0 -0
  15. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/charts/scatter_series.py +0 -0
  16. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/charts/time_chart.py +0 -0
  17. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/charts/time_series.py +0 -0
  18. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/forms/form_askchoice.py +0 -0
  19. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/forms/form_askimage.py +0 -0
  20. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/forms/form_main.py +0 -0
  21. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/forms/form_ontestfailure.py +0 -0
  22. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/forms/form_serials.py +0 -0
  23. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/forms/form_settings.py +0 -0
  24. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/forms/form_stop.py +0 -0
  25. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/forms/formsbase.py +0 -0
  26. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/imglib.py +0 -0
  27. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/inifile.py +0 -0
  28. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/modulereader.py +0 -0
  29. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/panels/panel_log.py +0 -0
  30. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/panels/panel_messages.py +0 -0
  31. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/panels/panel_scripts2.py +0 -0
  32. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/panels/panel_tests.py +0 -0
  33. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/panels/panelsbase.py +0 -0
  34. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/scriptartwork.py +0 -0
  35. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/scriptcontrol.py +0 -0
  36. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/scriptexceptions.py +0 -0
  37. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/scriptgui.py +0 -0
  38. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/scriptinfo.py +0 -0
  39. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/scriptparams.py +0 -0
  40. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/scriptreader.py +0 -0
  41. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/scriptrunner.py +0 -0
  42. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/splashmenu/exit.png +0 -0
  43. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/splashmenu/forms.py +0 -0
  44. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/splashmenu/splashmenuform.py +0 -0
  45. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/splashmenu/splashmenumain.py +0 -0
  46. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/testlog/global_log_handler.py +0 -0
  47. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/testlog/log_to_text.py +0 -0
  48. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/testlog/logtoxml.py +0 -0
  49. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/testlog/printredirect.py +0 -0
  50. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/testloghandler.py +0 -0
  51. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/userpanel/userpanel.py +0 -0
  52. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/userpanel/userpanelvalue.py +0 -0
  53. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript.egg-info/SOURCES.txt +0 -0
  54. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript.egg-info/dependency_links.txt +0 -0
  55. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript.egg-info/requires.txt +0 -0
  56. {happyscript-0.0.53 → happyscript-0.0.54}/happyscript.egg-info/top_level.txt +0 -0
  57. {happyscript-0.0.53 → happyscript-0.0.54}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: happyscript
3
- Version: 0.0.53
3
+ Version: 0.0.54
4
4
  Summary: Framework for running scripts
5
5
  Requires-Python: >=3.5
6
6
  Description-Content-Type: text/markdown
@@ -1,6 +1,6 @@
1
1
  """HappyScript - handy script launcher"""
2
2
 
3
- __version__ = "0.0.53"
3
+ __version__ = "0.0.54"
4
4
 
5
5
  # With these statements, after doing 'import happyscript' you can do 'xxx = happyscript.ScriptManager()'
6
6
  #from .scriptmanager import ScriptManager
@@ -16,7 +16,7 @@ class ScriptManager(StaticScriptManager):
16
16
  classdocs
17
17
  '''
18
18
 
19
- def __init__(self, title=None, colors = None, use_yaml=False):
19
+ def __init__(self, title:str=None, colors = None, use_yaml:bool=False):
20
20
  '''
21
21
  Constructor
22
22
 
@@ -30,10 +30,10 @@ class ScriptManager(StaticScriptManager):
30
30
  # R E A D S C R I P T S
31
31
  #============================================================================================================
32
32
 
33
- def add_scripts(self, script_dir, group_name = None):
33
+ def add_scripts(self, script_dir:str, group_name:str = None):
34
34
  ''' Reads scripts from a directory.
35
35
  Then adds a script treeview window with the scripts from the specified directory.
36
- @param scriptDir Full path to the directory with scripts
36
+ @param script_dir Full path to the directory with scripts
37
37
  @param group_name Name for this set of scripts. Dirname will be used if not specified.
38
38
  '''
39
39
  full_path = os.path.normpath(os.path.abspath(script_dir))
@@ -241,6 +241,12 @@ class StaticScriptManager(object):
241
241
  def add_test(self, description, scriptname, **args):
242
242
  ''' Add a test to the test list.
243
243
  '''
244
+ if not isinstance(scriptname, str):
245
+ if callable(scriptname):
246
+ scriptname = f"{scriptname.__module__}.{scriptname.__name__}"
247
+ else:
248
+ logging.error(f"Invalid script given for test '{description}'.")
249
+
244
250
  # self.dialog.add_test(description, scriptname)
245
251
  self.dialog.pnlTests.add_test( description, scriptname, **args )
246
252
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: happyscript
3
- Version: 0.0.53
3
+ Version: 0.0.54
4
4
  Summary: Framework for running scripts
5
5
  Requires-Python: >=3.5
6
6
  Description-Content-Type: text/markdown
@@ -20,7 +20,7 @@ build-backend = "setuptools.build_meta"
20
20
  [project]
21
21
  name = "happyscript"
22
22
  description = "Framework for running scripts"
23
- version = "0.0.53"
23
+ version = "0.0.54"
24
24
  readme = "README.md"
25
25
  requires-python = ">=3.5"
26
26
  dependencies = [ "wxpython", "numpy" ]
File without changes
File without changes