Skip to main content

A task runner that works well with poetry.

Project description

A task runner that works well with poetry.

Features

  • Straight foward declaration of project tasks in your pyproject.toml (kind of like npm scripts)

  • Task are run in poetry’s virtualenv by default

  • Short and sweet commands poe [options] task [task_args]

Installation

pip install poethepoet

Usage

Define tasks in your pyproject.toml

See a real example

[tool.poe.tasks]
test = pytest --cov=poethepoet

Run tasks with the poe cli

poe test

Additional argument are passed to the task so

poe test -v tests/favorite_test.py

results in

pytest --cov=poethepoet -v tests/favorite_test.py

You can also run it like so if you fancy

python -m poethepoet

Contributing

Please do.

TODO

  • make the cli more friendly with colors and supportive helpful messages

  • support running tasks outside of poetry’s virtualenv (or in another?)

  • the abiltiy to declare specific arguments for a task

  • test better

  • task aliases

  • more nuanced awareness of virtualenv

Licence

MIT. Go nuts.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

poethepoet-0.0.2.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

poethepoet-0.0.2-py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page