kedro-org / kedro-starters

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

Make all starters use pyproject.toml #144

Closed DimedS closed 10 months ago

DimedS commented 10 months ago

Motivation and Context

This PR builds upon the approach outlined in #2583. Initially, we transition from setup.py to pyproject.toml, keeping them at the same level within the '/src' folder. Concurrently, we shift from setup.cfg to the .flake8 configuration files. In the subsequent phase, with the release of Kedro 0.19, we plan to move pyproject.tomlup one directory level and merge it with the existing pyproject.toml file.

How has this been tested?

Tested manually: kedro new --starter git+https://github.com/kedro-org/kedro-starters.git --directory spaceflights --checkout 2280-make-all-starters-use-pyprojecttoml

Checklist

DimedS commented 10 months ago

Gave a quick first inspection, all pyproject.toml files are lacking a final newline

thanks, fixed it!

astrojuanlu commented 10 months ago

3.10 jobs failing because of using an old PyYAML, see https://github.com/yaml/pyyaml/issues/601#issuecomment-1639515421

we'd either have to bump the PyYAML dependency, or constrain Cython<3 in the build phase.

DimedS commented 10 months ago

3.10 jobs failing because of using an old PyYAML, see yaml/pyyaml#601 (comment)

we'd either have to bump the PyYAML dependency, or constrain Cython<3 in the build phase.

@astrojuanlu, thank you for pointing that out. It indeed seems to be an issue with Python 3.10. Can you clarify who and why installed Cython in that case? Regardless, it might be a good idea to update our PyYAML requirements to match Kedro's: "PyYAML>=4.2, <7.0". Do you foresee any issues with this adjustment?

astrojuanlu commented 10 months ago

I think it's good that we move to the new PyYAML, thanks @DimedS !