Does anyone know if Kedro would work with Poetry?
# plugins-integrations
s
Does anyone know if Kedro would work with Poetry?
K 1
m
It works well
s
Do you know if there is an example somewhere? I have only seen pip being used the manage dependencies in the documentation...
m
It works like in any other poetry-managed project, nothing special needed
👍 1
Just
poetry add kedro
, Kedro is still a pure Python package
👍 1
All of getindata’s plugins are poetry-based too, e.g. https://github.com/getindata/kedro-azureml
👍 1
s
Thank you!
Kedro build-reqs seems to be expecting a requirements.txt file. If the project is managed with poetry and only has a project.toml file, how would this work?
m
kedro build-reqs
is being deprecated
👍 1
With poetry, you will only have pyproject.toml and poetry.lock
👍 1
No need for requirements.txt / setup.py / pip compile / others
s
"kedro build-reqs is being deprecated" - is there a replacement for this command?
m
I’m not sure, someone from the Kedro team should be able to provide the answer for that
s
Thank you !
d
No, there is no replacement.
kedro build-reqs
was a simple wrapper over `pip-compile`; people should just use
pip-compile
themselves if they want the functionality. For Poetry, you'd just use their lock file creation process anyway.
🙏 1
s
Thank you!
140 Views