Use latest invoke version

This commit is contained in:
Sergio Morillo 2019-04-22 15:26:44 +02:00
parent 7634b615a3
commit 18c2126f30
2 changed files with 4 additions and 4 deletions

View File

@ -48,7 +48,7 @@ def _get_apk_name(apk_name, config):
'clean_dists': "Clean all distribution",
'clean_builds': "Clean all builds",
'install': "Install apk file in current active device"})
def apk(project, apk_name=None, api=None, arch='armeabi-v7a',
def apk(ctx, project, apk_name=None, api=None, arch='armeabi-v7a',
distribution=None, clean_dists=False, clean_builds=False,
install=False):
"""Build project apk file"""
@ -123,7 +123,7 @@ def apk(project, apk_name=None, api=None, arch='armeabi-v7a',
'apk_name': "Name of the apk name build",
'api': "Android API",
'arch': "Architecture for which apk is built"})
def install(project, apk_name=None, api='21', arch='armeabi-v7a'):
def install(ctx, project, apk_name=None, api='21', arch='armeabi-v7a'):
"""Install project apk file"""
logger.info('APK Install ...')
@ -157,7 +157,7 @@ def _get_modules_path():
@task()
def create_links():
def create_links(ctx):
IGNORE_REPOS = ['trytond', 'tryton', 'sao', 'proteus',
'dvconfig', 'config', 'nereid']
res = True

View File

@ -35,7 +35,7 @@ setup(name='p4atasks',
],
license='GPL-3',
install_requires=[
'invoke==0.12.2',
'invoke',
],
extras_require={},
zip_safe=False,