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


Release history Release notifications | RSS feed

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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file poethepoet-0.0.2.tar.gz.

File metadata

  • Download URL: poethepoet-0.0.2.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.6.5 Darwin/18.7.0

File hashes

Hashes for poethepoet-0.0.2.tar.gz
Algorithm Hash digest
SHA256 b2c5c08b9c8968b90dfc6a2bd548fe8712a4c9def7926dccb5455edcf4103e76
MD5 6e8903d51210b13135093a602d83fb8c
BLAKE2b-256 4c524f60b22c3daa11466e7a393c74e90a010da088fcfa135d7d866f4159abbe

See more details on using hashes here.

File details

Details for the file poethepoet-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: poethepoet-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.6.5 Darwin/18.7.0

File hashes

Hashes for poethepoet-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3ff5e08fc43c6d4ab817d0a74a489cecb6835443deb091ebf0070b9503037a91
MD5 9873e2a3cc5f45050b087b7b452dc7a7
BLAKE2b-256 3c423094d996c8e4b98ef68d1c8816b6b4c546f34c0f0aad9bbe430e4bdb8be8

See more details on using hashes here.

Supported by

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