https://kedro.org/ logo
#advanced-need-help
Title
# advanced-need-help
b

bluesummers

10/20/2022, 12:26 PM
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

datajoely

10/20/2022, 12:34 PM
We're going to remove setup.py in the next major release in favour of pyproject.toml
b

bluesummers

10/20/2022, 12:35 PM
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

datajoely

10/20/2022, 12:36 PM
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

bluesummers

10/20/2022, 12:37 PM
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

datajoely

10/20/2022, 12:38 PM
The best way to do it is to do a kedro new and then edit
Rather than start from scratch
b

bluesummers

10/20/2022, 12:43 PM
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

datajoely

10/20/2022, 12:43 PM
That or take an existing starter from the core ones and mutate that
b

bluesummers

10/20/2022, 12:44 PM
🤔
I already have a starter implemented, I just wonder I to use it - maybe that wasn't clear
d

datajoely

10/20/2022, 12:57 PM
Oh
kedro new --starter path/to/starter
Does that not work?
b

bluesummers

10/20/2022, 12:58 PM
Tryint to get it to work
I'll try some more hacking and report if I fail
d

datajoely

10/20/2022, 12:58 PM
Post the error message if you get stuck!
b

bluesummers

10/20/2022, 1:39 PM
cracked it 💪 thx
d

datajoely

10/20/2022, 2:05 PM
Smashed it! Well done