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.6.0+. To install this plugin run:
pip install poetry-pyinvoke-plugin
# OR
poetry self add 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 create a release from main
(after pull request).
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
Built Distribution
File details
Details for the file poetry_pyinvoke_plugin-0.2.2.tar.gz
.
File metadata
- Download URL: poetry_pyinvoke_plugin-0.2.2.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.5 Linux/5.15.0-1041-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5af3b2f08d8541e9b55fb1d89ae0a570ff95eea16d959361f7b4654e3fa774c3 |
|
MD5 | 3f97be0e20170656afb4f3eea9dc10a7 |
|
BLAKE2b-256 | 43bae5259843f5b41f726bdc77b800a614e9d807ab263d0567023b779900fbc4 |
File details
Details for the file poetry_pyinvoke_plugin-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: poetry_pyinvoke_plugin-0.2.2-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.5 Linux/5.15.0-1041-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f214899293166a325e9d75534f4e764252421a55d5d47487ba8dc57c80331471 |
|
MD5 | 1a280dc02997344a70b67170d1b38166 |
|
BLAKE2b-256 | 710bd5dc88066eca0722a60c7c831a202d07e3d356ac0509a6cc9e96c69cc00a |