Skip to content

[Improvement] Stop hardcoding the requirements in stub_generator.py #36

Description

@Saaketh0

The requirements to be installed in ventis build are currently being declared in the stub_generator.py file, which only works for the current workflows, and will fail any workflows that try to call a library not currently included.

Decoupling this would also open up the possibility of speeding up docker build as redundant installs won't have to happen, though a cache currently fixes that.

Example snippet of the code:
requirements = (
"grpcio\ngrpcio-tools\nredis\npyyaml\nflask\nboto3\nyfinance\npsutil\nipdb\nipython\n"
"sqlalchemy\npsycopg[binary]\n"
)

Possible Fixes:
Put the imports of each agent in the agents .yaml files.
Could also be in the global_controller.yaml, leaning towards this as to reduce dependecy on the agents.yaml to eventually phase them out.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions