Generated setup.py is broken #100
Labels
area/codegen
Affects quality or correctness of generated code
kind/bug
Some behavior is incorrect or out of spec
language/python
resolution/fixed
This issue was fixed
What happened?
I was trying to generate traefik CRD resources:
this produces the following
setup.py
There's several things apparently broken:
0.0.0
, irrespective of the version supplied on the command-linetraefik
plugin resource provider. That seems wrong? Shouldn't this rather include an install command for the kubernetes plugin?install_requires
containsrequests
(with a very narrow version constraint) and pyaml. Both don't seem to be used by the generated codeI would have liked to build a pip-installable package for traefik crds on our internal pip repo.
This seems possible only by handcrafting the
setup.py
after generation.Is this an expected use-case or is the generated code expected to be used as "source" part of an existing project (effectively ignoring the
setup.py
) ?Steps to reproduce
See above
Expected Behavior
A well-formed setup.py should be generated that can be used to build and install the package.
Actual Behavior
Packages build from
setup.py
will most probably fail during installation.Output of
pulumi about
No
pulum
involvedAdditional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: