From 4b6f173693dcdca472384b549f8d39e56860a7c7 Mon Sep 17 00:00:00 2001 From: Jim Rosser Date: Tue, 27 Oct 2015 12:08:23 -0500 Subject: [PATCH 1/2] Replaced Lambda with Pizza and wrapped Print Print was wrapped so Unicode characters don't get printed on Windows due to the lack of support. --- lambda_uploader/shell.py | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/lambda_uploader/shell.py b/lambda_uploader/shell.py index 0624ba7..80847f4 100644 --- a/lambda_uploader/shell.py +++ b/lambda_uploader/shell.py @@ -28,27 +28,36 @@ LOG = logging.getLogger(__name__) NAMESPACE = 'rax_jira' -EXCLAIM = '\xe2\x9d\x97\xef\xb8\x8f' CHECK = '\xe2\x9c\x85' -PIZZA = '\xf0\x9f\x8d\x95' INTERROBANG = '\xe2\x81\x89\xef\xb8\x8f' RED_X = '\xe2\x9d\x8c' +LAMBDA = '\xce\xbb' + + +# Used for stdout for shell +def _print(txt): + # Windows Powershell doesn't support Unicode + if sys.platform == 'win32' or sys.platform == 'cygwin': + print(txt) + else: + # Add the lambda symbol + print("%s %s" % (LAMBDA, txt)) def _execute(args): pth = path.abspath(args.function_dir) cfg = config.Config(pth) - print("%s Building Package %s" % (PIZZA, PIZZA)) + _print('Building Package') package.build_package(pth, cfg.requirements) if not args.no_upload: - print("%s Uploading Package %s" % (PIZZA, PIZZA)) + _print('Uploading Package') uploader.upload_package(pth, cfg) if not args.no_clean: package.cleanup(pth) - print("%s Fin %s" % (PIZZA, PIZZA)) + _print('Fin') def main(arv=None): From a8dffff12e3a844200b48573590b532dc940eb50 Mon Sep 17 00:00:00 2001 From: Jim Rosser Date: Tue, 27 Oct 2015 12:19:47 -0500 Subject: [PATCH 2/2] wipe out cache --- circle.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/circle.yml b/circle.yml index b144f95..dc45f35 100644 --- a/circle.yml +++ b/circle.yml @@ -2,6 +2,10 @@ machine: python: version: 2.7 +dependencies: + post: + - rm -r ~/virtualenvs + test: pre: - pip install -r test-requirements.txt