From f4a84f90f95382929659c5502c4894df7413d457 Mon Sep 17 00:00:00 2001 From: Iskandar Setiadi Date: Tue, 23 Oct 2018 11:48:00 +0900 Subject: [PATCH 1/3] Update copyright year and use Python 3.7 --- LICENSE | 2 +- README.md | 2 +- README.rst | 2 +- lambda_local/__init__.py | 2 +- lambda_local/context.py | 2 +- lambda_local/event.py | 2 +- lambda_local/main.py | 2 +- lambda_local/timeout.py | 2 +- setup.py | 4 ++-- wercker.yml | 2 +- 10 files changed, 11 insertions(+), 11 deletions(-) diff --git a/LICENSE b/LICENSE index a3a3ed5..c4d8dfd 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2015-2017 HDE, Inc. +Copyright (c) 2015-2018 HDE, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index c314974..12ba9f9 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Run lambda function on local machine ## Prepare development environment -Please use a newly created virtualenv of Python 2.7 or Python 3.6 . +Please use a newly created virtualenv of Python 2.7 or Python 3.7. ## Installation diff --git a/README.rst b/README.rst index deb21a0..38756b1 100644 --- a/README.rst +++ b/README.rst @@ -9,7 +9,7 @@ Run lambda function on local machine Prepare development environment ------------------------------- -Please use a newly created virtualenv of Python 2.7 or Python 3.6 . +Please use a newly created virtualenv of Python 2.7 or Python 3.7. Installation ------------ diff --git a/lambda_local/__init__.py b/lambda_local/__init__.py index f56a061..eabee17 100644 --- a/lambda_local/__init__.py +++ b/lambda_local/__init__.py @@ -1,7 +1,7 @@ ''' python-lambda-local: Main module -Copyright 2015-2017 HDE, Inc. +Copyright 2015-2018 HDE, Inc. Licensed under MIT. ''' diff --git a/lambda_local/context.py b/lambda_local/context.py index 4be412e..d1288b4 100644 --- a/lambda_local/context.py +++ b/lambda_local/context.py @@ -1,5 +1,5 @@ ''' -Copyright 2015-2017 HDE, Inc. +Copyright 2015-2018 HDE, Inc. Licensed under MIT. ''' diff --git a/lambda_local/event.py b/lambda_local/event.py index 3030ff1..3d0f23f 100644 --- a/lambda_local/event.py +++ b/lambda_local/event.py @@ -1,5 +1,5 @@ ''' -Copyright 2015-2017 HDE, Inc. +Copyright 2015-2018 HDE, Inc. Licensed under MIT. ''' diff --git a/lambda_local/main.py b/lambda_local/main.py index c09146b..9d97e23 100644 --- a/lambda_local/main.py +++ b/lambda_local/main.py @@ -1,5 +1,5 @@ ''' -Copyright 2015-2017 HDE, Inc. +Copyright 2015-2018 HDE, Inc. Licensed under MIT. ''' diff --git a/lambda_local/timeout.py b/lambda_local/timeout.py index 17646c3..9d0354a 100644 --- a/lambda_local/timeout.py +++ b/lambda_local/timeout.py @@ -1,5 +1,5 @@ ''' -Copyright 2015-2017 HDE, Inc. +Copyright 2015-2018 HDE, Inc. Licensed under MIT. ''' diff --git a/setup.py b/setup.py index 57d0c90..6de3121 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ ''' python-lambda-local: Run lambda function in python on local machine. -Copyright 2015-2017 HDE, Inc. +Copyright 2015-2018 HDE, Inc. Licensed under MIT. ''' import io @@ -34,7 +34,7 @@ def run_tests(self): 'Operating System :: POSIX', 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', 'License :: OSI Approved :: MIT License' ], keywords="AWS Lambda", diff --git a/wercker.yml b/wercker.yml index 25613d5..fde1478 100644 --- a/wercker.yml +++ b/wercker.yml @@ -27,7 +27,7 @@ build-py2: python setup.py sdist bdist_wheel build-py3: - box: python:3.6-slim + box: python:3.7-slim steps: - script: name: virtualenv install From b92ba32370fe2d3afe57b3f6f821ac90f1af61b1 Mon Sep 17 00:00:00 2001 From: Iskandar Setiadi Date: Tue, 23 Oct 2018 11:53:41 +0900 Subject: [PATCH 2/3] Revert to 3.6 --- README.md | 2 +- README.rst | 2 +- wercker.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 12ba9f9..39b34b4 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Run lambda function on local machine ## Prepare development environment -Please use a newly created virtualenv of Python 2.7 or Python 3.7. +Please use a newly created virtualenv of Python 2.7 or Python 3.6. ## Installation diff --git a/README.rst b/README.rst index 38756b1..c85b854 100644 --- a/README.rst +++ b/README.rst @@ -9,7 +9,7 @@ Run lambda function on local machine Prepare development environment ------------------------------- -Please use a newly created virtualenv of Python 2.7 or Python 3.7. +Please use a newly created virtualenv of Python 2.7 or Python 3.6. Installation ------------ diff --git a/wercker.yml b/wercker.yml index fde1478..25613d5 100644 --- a/wercker.yml +++ b/wercker.yml @@ -27,7 +27,7 @@ build-py2: python setup.py sdist bdist_wheel build-py3: - box: python:3.7-slim + box: python:3.6-slim steps: - script: name: virtualenv install From abf7813742657a248822448cffb04fd7e6f4bb50 Mon Sep 17 00:00:00 2001 From: Iskandar Setiadi Date: Tue, 23 Oct 2018 12:04:26 +0900 Subject: [PATCH 3/3] Try running test --- setup.py | 2 +- wercker.yml | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 6de3121..9dee85f 100644 --- a/setup.py +++ b/setup.py @@ -34,7 +34,7 @@ def run_tests(self): 'Operating System :: POSIX', 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.6', 'License :: OSI Approved :: MIT License' ], keywords="AWS Lambda", diff --git a/wercker.yml b/wercker.yml index 25613d5..7d3c6bf 100644 --- a/wercker.yml +++ b/wercker.yml @@ -26,6 +26,11 @@ build-py2: code: | python setup.py sdist bdist_wheel + - script: + name: test + code: | + python setup.py test + build-py3: box: python:3.6-slim steps: @@ -49,6 +54,11 @@ build-py3: code: | python setup.py sdist bdist_wheel + - script: + name: test + code: | + python setup.py test + deploy: pypi: - script: