Skip to content

Commit

Permalink
Added pypi_package configuration field to convert strategy.
Browse files Browse the repository at this point in the history
  • Loading branch information
jesper-friis committed Sep 3, 2023
1 parent 62939d7 commit 58bfc73
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions oteapi_dlite/strategies/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,21 +54,27 @@ class DLiteConvertOutputConfig(AttrDict):
class DLiteConvertStrategyConfig(AttrDict):
"""Configuration for generic DLite converter."""

package: Optional[str] = Field(
function_name: str = Field(
None,
description="Used when performing a relative import of the converter "
"function. It specifies the package to use as the anchor point from "
"which to resolve the relative import to an absolute import.",
description="Name of convert function. It will be pased the input "
"instances as arguments and should return a sequence of output "
"instances.",
)
module_name: str = Field(
None,
description="Name of Python module containing the convertion function.",
)
function_name: str = Field(
package: Optional[str] = Field(
None,
description="Name of convert function. It will be pased the input "
"instances as arguments and should return a sequence of output "
"instances.",
description="Used when performing a relative import of the converter "
"function. It specifies the package to use as the anchor point from "
"which to resolve the relative import to an absolute import.",
)
pypi_package: Optional[str] = Field(
None,
description="Package name on PyPI. This field is currently only "
"informative, but might be used in the future for automatic package "
"installation.",
)
inputs: Sequence[DLiteConvertInputConfig] = Field(
None,
Expand Down

0 comments on commit 58bfc73

Please sign in to comment.