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.1.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for poetry-pyinvoke-plugin-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6cad5aff83b9c4e80047753b1dad25b9e522686b6894b661c7e05835e4e246d3
MD5 f7316341c139cc0ebd9157d55dcea978
BLAKE2b-256 90905081cfaf4407dce6e9570bb532fa26fbcb3c4311320ba5c1919770dc874f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for poetry_pyinvoke_plugin-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5cb63283f45a0fce16d0c99f28f1712d8796b136cc2a895ff0a9d6fc00591891
MD5 c196d2f55a82b96902bff52ea1896e6e
BLAKE2b-256 076bfe94347dcf381de23a4b2a167866d18b8b555ac1d2b93ce867c7d64c6937

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