File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
src/asyncapi_python_pants Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 2020from pants .backend .python .util_rules .interpreter_constraints import (
2121 InterpreterConstraints ,
2222)
23+ from pants .backend .python .util_rules .pex import EntryPoint
2324from pants .backend .python .util_rules .pex import (
2425 Pex ,
2526 PexProcess ,
@@ -38,11 +39,9 @@ async def generate_python_from_asyncapi(
3839 PexRequest (
3940 output_filename = "asyncapi-python-codegen.pex" ,
4041 internal_only = True ,
41- requirements = PexRequirements (
42- [f"asyncapi-python[codegen]=={ version ('asyncapi-python' )} " ]
43- ),
42+ requirements = PexRequirements ([]),
4443 interpreter_constraints = InterpreterConstraints ([">=3.9" ]),
45- main = ConsoleScript ( "asyncapi-python-codegen " ),
44+ main = EntryPoint ( "asyncapi_python_codegen " ),
4645 ),
4746 )
4847 transitive_targets = await Get (
You can’t perform that action at this time.
0 commit comments