kedro-org / kedro-starters

Templates for your Kedro projects.
Apache License 2.0
63 stars 57 forks source link

Add post_gen_project to spaceflights-pyspark #157

Closed SajidAlamQB closed 8 months ago

SajidAlamQB commented 9 months ago

Motivation and Context

Related to: https://github.com/kedro-org/kedro/pull/3169

We are adding PySpark option to the add-ons flow for framework and it will utilise the spaceflights-pyspark starter as a template. Therefore, we need to add the post_gen_project.py script to the starter to help setup the PySpark template.

Development Notes

Adding the script breaks the CI because develop branch has all the add-ons flow changes not main. Resolved this in https://github.com/kedro-org/kedro-starters/pull/159 where we switched to using kedro develop branch in test_requirements.txt.

The post_gen_project.py here is slightly different to the core template. Here we need to check if PySpark, option 6, is selected before we run the post_gen_project script. This ensures that this script is only run using the add-ons flow and not with kedro new --starters.

Checklist