carlosperate / awesome-pyproject

An Awesome List of projects using the pyproject.toml Python configuration file.
Creative Commons Zero v1.0 Universal
939 stars 35 forks source link

Add poe #33

Closed nat-n closed 4 years ago

nat-n commented 4 years ago

Further to discussion at #32

Resource description

Poe the Poet is a task runner that works well with poetry. You define tasks in the pyproject.toml like so:

[tool.poe.tasks]
test       = "pytest --cov=poethepoet"                                # simple command based task
mksandwich = { script = "my_package.sandwich:build" }                 # python script based task
tunnel     = { shell = "ssh -N -L 0.0.0.0:8080:$PROD:8080 $PROD &" }  # shell script based task

and then run them with the poe executable like so:

poe test

The task will be executed inside the poetry managed virtualenv, so no need to specify poetry run anywhere.

By submitting this pull request I confirm I've read and complied with the below requirements