Trying to create a Kedro starter integrated with P...
# advanced-need-help
b
Trying to create a Kedro starter integrated with Poetry. I'm following this issue (https://github.com/kedro-org/kedro/issues/1722) to get it done. Looking at the docs in this link (https://kedro.readthedocs.io/en/stable/extend_kedro/plugins.html#extend-starter-aliases) I should edit
setup.py
to get it done. Now... (1) I'm creating a starter, so there isn't any
setup.py
yet as I have not executed Kedro new. So how exactly am I supposed to edit it if it is not yet created? Second (2), I don't want to use
setup.py
, as Poetry does not need it. So how should I go about supporting new kedro starters?
Overall it's not very clear to me from the docs even in the vanilla case, where should I put all the documented commands - because a starter is something that I do independently from a kedro project, so it makes no sense to me to edit the not-yet existent
setup.py
file
d
We're going to remove setup.py in the next major release in favour of pyproject.toml
b
Good to hear
for the meantime, assuming I'm okay with
setup.py
the docs says for creating an alias, I need to edit it - but how am I supposed to edit it? I am only creating the starter, I don't have any files yet
I'm pre the
kedro new
command
d
So setup.py is used as the entry point for plugins
So I think you may need it to make Viz work
And others
b
Makes sense that
setup.py
will be the entrypoint of plugins However, starters are a different kind of plugin, it's a plugin you wish to reference to before the project is created, so I'm not sure how can I edit
setup.py
when I haven't created the project yet
d
The best way to do it is to do a kedro new and then edit
Rather than start from scratch
b
My ultimate goal is to use
kedro new --starter my_starter
- so should I
kedro new
edit the
setup.py
and only then re-run
kedro new
with the starter argument?
d
That or take an existing starter from the core ones and mutate that
b
🤔
I already have a starter implemented, I just wonder I to use it - maybe that wasn't clear
d
Oh
kedro new --starter path/to/starter
Does that not work?
b
Tryint to get it to work
I'll try some more hacking and report if I fail
d
Post the error message if you get stuck!
b
cracked it 💪 thx
d
Smashed it! Well done