Questions tagged [pyinvoke]

Python Invoke is a Python tool and library for task execution, similar to Make or Rake.

Invoke existed originally in Fabric 1.x, and it was extracted out after realizing that it made sense as dedicated tool dedicated to task execution that can also be used as a library.

http://www.pyinvoke.org

37 questions
0
votes
1 answer

Serve web request in python that spawns a new long running subprocess

I currently have a python command line application that uses python invoke package to organise, list and execute tasks. There are many task files (controlled & created by users, not me). Execution time for some task files can be more than an hour.…
yogmk
  • 161
  • 10
0
votes
0 answers

How can I override a pyinvoke previously defined rule, but "super()" call the older implementation?

I have a standard_tasks.py module that provides a task for build @task def build(ctx): do_this() from my tasks.py I am currently doing from standard_tasks import * _super_build = build.body @task def _build(ctx): # Here I want to call the…
Stefano Borini
  • 138,652
  • 96
  • 297
  • 431
0
votes
1 answer

Passing string to Invoke

I am trying to use invoke to set up a basic git routine. The problem I am running into is that I cannot seem to get invoke to take a string as an argument parameter. I get an error everytime I run the code. I am sure I am missing something simple. I…
BigHandsome
  • 4,843
  • 5
  • 23
  • 30
0
votes
1 answer

Python `invoke` not printing with multiline commands on Windows

When using the invoke library from Windows, it seems like no output is printed to the terminal if the command spans multiple lines. Here's an example to reproduce; put this in tasks.py. import invoke @invoke.task def test_oneline(ctx): …
Nathan
  • 9,651
  • 4
  • 45
  • 65
0
votes
1 answer

PEP8 style for decorators exceeding recommended line length

I have been tinkering with Invoke, but I came across something that is quite an odd case that there seems to be no real PEP guideline for it. Invoke lets you define your own CLI arguments for whatever tasks you define, and you can optionally provide…
Wannabe Coder
  • 1,457
  • 12
  • 21
0
votes
1 answer

Python Invoke tasks on a pip package

I'm working on a pip package for our company that we can hopefully install on your applications and have a set of invoke task that we run use locally on our machines. So far, creating a task is really simple but I want to know if it's possible to…
firebait
  • 473
  • 1
  • 4
  • 7
0
votes
1 answer

Python code running python invoke not executing tasks

Given the following tasks.py from invoke import run, task @task def gems(): print 'Installing Gems' run('echo $PWD') #run('export GEM_HOME=$PWD && GEM_PATH=$PWD && gem install sass') @task('gems') def setup(): pass My automation…
James Lin
  • 25,028
  • 36
  • 133
  • 233
1 2
3