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
Built Distribution
File details
Details for the file poetry-pyinvoke-plugin-0.1.0.tar.gz
.
File metadata
- Download URL: poetry-pyinvoke-plugin-0.1.0.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e81fff705ab2819b1a002536241c8a84ab4f9d4710a2067ad46c27779cc258b |
|
MD5 | 703217b9fd822839187cd9ca4e1d92cd |
|
BLAKE2b-256 | ef218f3c1ddc3597e32ee9733de4b6f32a6739b7aba2215bf03663b626513bf9 |
File details
Details for the file poetry_pyinvoke_plugin-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: poetry_pyinvoke_plugin-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.0a2 CPython/3.10.2 Linux/5.11.0-1028-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e51b7d3d11469423b429448ccaba6dc7f10a03d47eccfa497b38398e991b2039 |
|
MD5 | 88621b1d8c81f15eb5175c3c0ff4a71c |
|
BLAKE2b-256 | 1bc208633a6cf0712b2a05084fe43d729d520660a981a187ed6c11ccc70583c2 |