omnata-plugin-runtime 0.12.1__tar.gz → 0.12.2a331__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: omnata-plugin-runtime
3
- Version: 0.12.1
3
+ Version: 0.12.2a331
4
4
  Summary: Classes and common runtime components for building and running Omnata Plugins
5
5
  License-File: LICENSE
6
6
  Author: James Weakley
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "omnata-plugin-runtime"
3
- version = "0.12.1"
3
+ version = "0.12.2-a331"
4
4
  description = "Classes and common runtime components for building and running Omnata Plugins"
5
5
  authors = ["James Weakley <james.weakley@omnata.com>"]
6
6
  readme = "README.md"
@@ -2762,7 +2762,7 @@ def omnata_udf(
2762
2762
 
2763
2763
  return decorator
2764
2764
 
2765
- def find_udf_functions(path:str = '.',top_level_modules:Optional[List[str]] = None) -> List[UDFDefinition]:
2765
+ def find_udf_functions(path:str = '.',top_level_modules:Optional[List[str]] = None, exclude_top_level_modules:Optional[List[str]] = None) -> List[UDFDefinition]:
2766
2766
  """
2767
2767
  Finds all functions in the specified directory which have the 'omnata_udf' decorator applied
2768
2768
  """
@@ -2778,6 +2778,9 @@ def find_udf_functions(path:str = '.',top_level_modules:Optional[List[str]] = No
2778
2778
  if top_level_modules is not None:
2779
2779
  if len([x for x in top_level_modules if module_name.startswith(x)]) == 0:
2780
2780
  continue
2781
+ if exclude_top_level_modules is not None:
2782
+ if any(module_name.startswith(y) for y in exclude_top_level_modules):
2783
+ continue
2781
2784
  module = importlib.import_module(module_name)
2782
2785
 
2783
2786
  # Iterate over all members of the module