Skip to content

Conversation

@pjbull
Copy link
Member

@pjbull pjbull commented Jul 23, 2025

Adds support for poetry as an env/dependency manager.

  • Add poetry to dev requirements for testing
  • Add poetry option to dep manager
  • Use pyproject.toml project.dependencies section as dependency format (per poetry docs)
  • Add poetry test harness
  • Add poetry to CI
  • Update documentation

Also bumps version in preparation for release

Closes #375

Copy link
Member

@jayqi jayqi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

I didn't realize Poetry finally added support for PEP 621 [project] metadata late last year, finally.

One thing to note is that we might want to swap in poetry-core as the build backend, instead of flit-core. I don't think this is strictly necessary since we don't do anything Poetry-specific in our generated pyproject.toml. I've confirmed that it works as is with flit-core, since the package we generate follows the common part of the specification.

@pjbull pjbull temporarily deployed to add-poetry - Cookiecutter Data Science PR #460 July 23, 2025 23:48 — with Render Destroyed
@pjbull
Copy link
Member Author

pjbull commented Jul 23, 2025

One thing to note is that we might want to swap in poetry-core as the build backend, i

Makes sense. I updated that. If tests pass, I will merge and release.

@pjbull pjbull merged commit 0f6b163 into master Jul 24, 2025
32 of 48 checks passed
@pjbull pjbull deleted the add-poetry branch July 24, 2025 01:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants