[pm] Moving project artifact management to next edgy.project version.

This commit is contained in:
Romain Dorgueil
2017-05-27 16:08:10 +02:00
parent 93cc1648a4
commit 1afd8746eb
14 changed files with 92 additions and 114 deletions

View File

@ -9,7 +9,9 @@ def execute(name):
'You must install "cookiecutter" to use this command.\n\n $ pip install edgy.project\n'
) from exc
return cookiecutter('https://github.com/python-bonobo/cookiecutter-bonobo.git', extra_context={'name': name}, no_input=True)
return cookiecutter(
'https://github.com/python-bonobo/cookiecutter-bonobo.git', extra_context={'name': name}, no_input=True
)
def register(parser):

View File

@ -4,9 +4,7 @@ from bonobo.util.pkgs import bonobo_packages
def format_version(mod, *, name=None, quiet=False):
return ('{name} {version}' if quiet else '{name} v.{version} (in {location})').format(
name=name or mod.__name__,
version=mod.__version__,
location=bonobo_packages[name or mod.__name__].location
name=name or mod.__name__, version=mod.__version__, location=bonobo_packages[name or mod.__name__].location
)