Skip to content

Commit a9d4269

Browse files
committed
Merge branch 'feature/invoke-0.13' into develop
2 parents dc5f150 + bae8e27 commit a9d4269

File tree

6 files changed

+22
-20
lines changed

6 files changed

+22
-20
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ install:
1616
- travis_retry pip install --upgrade pip
1717
- travis_retry pip install setuptools==30.4.0
1818
- travis_retry pip install wheel==0.26.0
19-
- travis_retry pip install invoke==0.11.1
19+
- travis_retry pip install invoke==0.13.0
2020
- travis_retry invoke wheelhouse --develop
2121
- travis_retry invoke install --develop
2222

CONTRIBUTING.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Configure development environment and Install the development dependencies.
4545
$ pip install virtualenv
4646
$ pip install virtualenvwrapper
4747
$ mkvirtualenv --python=`which python3` mfr
48-
$ pip install invoke==0.11.1
48+
$ pip install invoke==0.13.0
4949
5050
5151
Lastly, install mfr in development mode. ::

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ pip install virtualenv
4141
pip install virtualenvwrapper
4242
mkvirtualenv --python=`which python3.5` mfr
4343
pip install setuptools==30.4.0
44-
pip install invoke==0.11.1
44+
pip install invoke==0.13.0
4545
invoke install
4646
invoke server
4747
```
@@ -90,6 +90,8 @@ invoke test
9090

9191
- The error `def create_default_context(purpose=ssl.Purpose.SERVER_AUTH, *, cafile=None, capath=None, cadata=None): SyntaxError: invalid syntax` can be fixed by restarting your virtual environment. The problem should not reoccur.
9292

93+
- `invoke $command` results in `'$command' did not receive all required positional arguments!`: this error message occurs when trying to run MFR v0.19.0+ with `invoke<0.13.0`. Run `pip install invoke==0.13.0`, then retry your command.
94+
9395
### Create your own module
9496

9597
Interested in adding support for a new provider or file format? Check out the CONTRIBUTING.rst docs.

docs/install.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ Or download one of the following:
1616

1717
Make sure that you have installed pspp, are using python3.5, and have installed invoke for your current python3 version.
1818

19-
Install the version of invoke found in the requirements.txt file. Currently 0.11.1
19+
Install the version of invoke found in the requirements.txt file. Currently 0.13.0
2020

2121
Install ``invoke``:
2222

2323
.. code-block:: bash
2424
25-
pip install invoke==0.11.1
25+
pip install invoke==0.13.0
2626
2727
Install requirements:
2828

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ aiohttp==0.18.4
22
chardet==2.3.0
33
furl==0.4.2
44
humanfriendly==2.1
5-
invoke==0.11.1
5+
invoke==0.13.0
66
mako==1.0.1
77
raven==5.27.0
88
setuptools==30.4.0

tasks.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import os
22

3-
from invoke import task, run
3+
from invoke import task
44

55
WHEELHOUSE_PATH = os.environ.get('WHEELHOUSE')
66

77

8-
def monkey_patch():
8+
def monkey_patch(ctx):
99
# Force an older cacert.pem from certifi v2015.4.28, prevents an ssl failure w/ identity.api.rackspacecloud.com.
1010
#
1111
# SubjectAltNameWarning: Certificate for identity.api.rackspacecloud.com has no `subjectAltName`, falling
@@ -25,40 +25,40 @@ def create_default_context(purpose=ssl.Purpose.SERVER_AUTH, *, cafile=None, capa
2525

2626

2727
@task
28-
def wheelhouse(develop=False):
28+
def wheelhouse(ctx, develop=False):
2929
req_file = 'dev-requirements.txt' if develop else 'requirements.txt'
3030
cmd = 'pip wheel --find-links={} -r {} --wheel-dir={}'.format(WHEELHOUSE_PATH, req_file, WHEELHOUSE_PATH)
31-
run(cmd, pty=True)
31+
ctx.run(cmd, pty=True)
3232

3333

3434
@task
35-
def install(develop=False):
36-
run('python setup.py develop')
35+
def install(ctx, develop=False):
36+
ctx.run('python setup.py develop')
3737
req_file = 'dev-requirements.txt' if develop else 'requirements.txt'
3838
cmd = 'pip install --upgrade -r {}'.format(req_file)
3939

4040
if WHEELHOUSE_PATH:
4141
cmd += ' --no-index --find-links={}'.format(WHEELHOUSE_PATH)
42-
run(cmd, pty=True)
42+
ctx.run(cmd, pty=True)
4343

4444

4545
@task
46-
def flake():
47-
run('flake8 .', pty=True)
46+
def flake(ctx):
47+
ctx.run('flake8 .', pty=True)
4848

4949

5050
@task
51-
def test(verbose=False):
52-
flake()
51+
def test(ctx, verbose=False):
52+
flake(ctx)
5353
cmd = 'py.test --cov-report term-missing --cov mfr tests'
5454
if verbose:
5555
cmd += ' -v'
56-
run(cmd, pty=True)
56+
ctx.run(cmd, pty=True)
5757

5858

5959
@task
60-
def server():
61-
monkey_patch()
60+
def server(ctx):
61+
monkey_patch(ctx)
6262

6363
if os.environ.get('REMOTE_DEBUG', None):
6464
import pydevd

0 commit comments

Comments
 (0)