Skip to main content

A plugin for poetry that allows you to execute scripts defined in your tasks.py using pyinvoke. Inspired by poetry-exec-plugin.

Project description

poetry-pyinvoke-plugin

A plugin for poetry that allows you to invoke commands in your tasks.py file delegating to pyinvoke.

Heavily inspired by the work from keattang on the poetry-exec-plugin project.

Installation

Installation requires poetry 1.2.0+. To install this plugin run:

pip install poetry-pyinvoke-plugin
# OR
poetry add -D poetry-pyinvoke-plugin

For other methods of installing plugins see the poetry documentation.

Usage

tasks.py

from invoke import task

@task
def lint(c):
  c.run("flake8")
  c.run("black --check .")

Then:

poetry invoke lint
# OR
poetry inv lint

Publishing

To publish a new version,first bump the package version in pyproject.toml and commit your changes to the main branch (via pull request). Then in GitHub create a new release with the new version as the tag and name. You can use the handy auto release notes feature to populate the release description.

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

poetry-pyinvoke-plugin-0.1.2.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

poetry_pyinvoke_plugin-0.1.2-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file poetry-pyinvoke-plugin-0.1.2.tar.gz.

File metadata

  • Download URL: poetry-pyinvoke-plugin-0.1.2.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0b1 CPython/3.10.2 Linux/5.11.0-1028-azure

File hashes

Hashes for poetry-pyinvoke-plugin-0.1.2.tar.gz
Algorithm Hash digest
SHA256 ee4085977c52bd3a79813a7ff0c84a68d168d47d91dd16bb6f8717b00fb01b17
MD5 aafd808a4834de104f552b385ee8fca4
BLAKE2b-256 ceb0e7248b78e2d23fb92f7d30bc7991f51d3f1d89dfb429f8c1c9e6912c5a30

See more details on using hashes here.

File details

Details for the file poetry_pyinvoke_plugin-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for poetry_pyinvoke_plugin-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 05ac3d8c021da96c1ff3667f85c14c24420aa60ea068ce9a9bb3f92a05131184
MD5 8f55d88a2eb3af4d58688180dd24a94d
BLAKE2b-256 f1439aefb769a087dd2c6bccd7307d30214bd28f5e5799af0770fad23035cc0c

See more details on using hashes here.

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