add dependent rules to api_spec plugin
from dataclasses import dataclass
from pants.backend.python.target_types import EntryPoint
+from pants.backend.python.util_rules import pex, pex_from_targets
from pants.backend.python.util_rules.pex import (
VenvPex,
VenvPexProcess,
@@ -253,4 +254,6 @@ def rules():
*collect_rules(),
UnionRule(FmtTargetsRequest, GenerateAPISpecViaFmtTargetsRequest),
UnionRule(LintTargetsRequest, ValidateAPISpecRequest),
+ *pex.rules(),
+ *pex_from_targets.rules(),
]
