Hi Kedro team, Now that you've moved everything t...
# questions
Hi Kedro team, Now that you've moved everything to project.toml, what not propose using a tool like PDM to manage dependencies within the TOML file so we remove the requirements file as well? Just recently I was cleaning my project with PDM and it was a calm for the chaos.
K 1
Anything that supports PEP621 is good in my eyes! https://peps.python.org/pep-0621/
👍 1
👍🏼 1
so PDM , Poetry not yet…
overall we nominally recommend sticking to Python 1st party tools as much as possible so that would be anything maintained by the PyPA https://www.pypa.io/en/latest/
Can be anything that supports and respects TOML.
Poetry is also an option
Poetry still doesn’t support the Python standard https://github.com/python-poetry/roadmap/issues/3
and they’ve been working on it 3/4 years since it’s been signed off
I personally create most of my Kedro projects with PDM already 😄 and I wrote a small tool that can turn any PEP 621-compliant library structure to a Kedro project https://github.com/astrojuanlu/kedro-init @Siavash Sakhavi when you mean "propose using a tool like PDM", do you meen our
kedro new
+ starters?
@Juan Luis mainly as a best practice for dependency management. I was thinking in the docs.
👍🏼 1
My current project was in chaos because everyone was pip installing and suddenly somebody decided to do a pip freeze to the requirement file. I totally lost control of all the dependencies and the new libraries added were causing my pipeline to not even run.
😱 1
typical horror story from Python packaging... 😅 any opinions on Poetry vs PDM vs Hatch?
💯 1
I've seen the other two. Didn't use them extensively. I just have a bad memory of using poetry first time I used it. I eventually settled on PDM. Any tool that can help is welcome
I am also looking for a pre-commit hook that checks if the packages in your environment are different from the lock file.
I'm personally very happy with PDM 👍🏼
I will add a +1 for PDM, it fits all my needs perfectly, the developer is super responsive, and since it’s PEP621 compliant, switching to any other tool would be mostly a nonissue. @Juan Luis what does your kedro-init tool actually do? I can’t really get it from the readme.
@Iñigo Hidalgo it adds the appropriate
section to
, creates
, and
, and creates
🎉 1
I miss Pedram shitposts so much
you can follow him on Linkedin if you’d like
@Juan Luis I wonder if we could think about your
as either 1. A recipe workflow 2. A kedro-plugin
maybe 🙂 but it should follow as the conclusion of https://github.com/kedro-org/kedro/issues/2512 (still to be closed)
the more I think about it - it would be really cool to make it easy for people to define and share add-ons