Skip to content

Commit 1ba4a4e

Browse files
committed
Update pex in rules
1 parent 6fab829 commit 1ba4a4e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/asyncapi_python_pants/rules.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
from pants.backend.python.util_rules.interpreter_constraints import (
2121
InterpreterConstraints,
2222
)
23+
from pants.backend.python.util_rules.pex import EntryPoint
2324
from 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(

0 commit comments

Comments
 (0)