Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Makefile with poe tasks in pyproject.yaml #118

Merged
merged 1 commit into from
Jul 25, 2020
Merged

Conversation

nat-n
Copy link
Collaborator

@nat-n nat-n commented Jul 12, 2020

poethepoet is a pyproject.toml based task runner that works well with poetry.

It's not as powerful as make, but it doesn't need to be. It is however python/poetry native, easy to configre, and has some nice features that are hard (or impossible?) to get with make such as native support for help messages, and automatic passing of extra command line arguments to the task, so for instance when running poe test which is based on pytest, you can pass any extra pytest arguments like poe test -vv tests/test_features.py

The one thing I couldn't cleanly replicate from the Makefile was the plugin task which kind of didn't work very well anyway. This will be fixed though when poe gets support for task arguments!

The tasks section of the pyproject.toml could theoretically be presented more nicely with tasks split over multiple lines, but the python 3.6 version of the toml package doesn't seem to support this :/ In fact it looks like not even the current version has related bugs.

Copy link
Collaborator

@boukeversteegh boukeversteegh left a comment

Choose a reason for hiding this comment

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

Long overdue review! Thank you @nat-n for contributing to the maturing of the Poetry and Python ecosystem with this slick library poe!

@boukeversteegh boukeversteegh merged commit c513853 into master Jul 25, 2020
@boukeversteegh boukeversteegh deleted the add_poe branch July 25, 2020 17:54
Gobot1234 added a commit to Gobot1234/python-betterproto that referenced this pull request Aug 6, 2020
@abn abn mentioned this pull request Nov 24, 2020
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.

2 participants