From 93b7f692032b5feeb36940555c17ca4495136871 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Susannah=20Klane=C4=8Dek?= Date: Sun, 22 Nov 2020 11:03:20 -0600 Subject: [PATCH 01/10] Drop support of Python 2.7 Closes #65 --- .gitignore | 4 ++++ README.md | 2 +- README.rst | 2 +- lambda_local/timeout.py | 2 +- setup.py | 1 - wercker.yml | 28 ---------------------------- 6 files changed, 7 insertions(+), 32 deletions(-) diff --git a/.gitignore b/.gitignore index 4f5a7f6..6a5671f 100644 --- a/.gitignore +++ b/.gitignore @@ -61,3 +61,7 @@ target/ # Vitual Environments venv/ +.env/ + +# direnv +.envrc diff --git a/README.md b/README.md index 39d8b79..fb59490 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 3.7+. ## Installation diff --git a/README.rst b/README.rst index 2710d84..9c5bd6a 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 3.7+. Installation ------------ diff --git a/lambda_local/timeout.py b/lambda_local/timeout.py index 5dcbd58..d13c619 100644 --- a/lambda_local/timeout.py +++ b/lambda_local/timeout.py @@ -6,7 +6,7 @@ import signal import threading from contextlib import contextmanager -from six.moves import _thread +import _thread class TimeoutException(Exception): diff --git a/setup.py b/setup.py index fc9290c..9c2aa1a 100644 --- a/setup.py +++ b/setup.py @@ -37,7 +37,6 @@ def run_tests(self): 'Development Status :: 3 - Alpha', 'Operating System :: POSIX', 'Programming Language :: Python', - 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'License :: OSI Approved :: MIT License' diff --git a/wercker.yml b/wercker.yml index 0e4c8f4..9ef8edf 100644 --- a/wercker.yml +++ b/wercker.yml @@ -3,34 +3,6 @@ box: python:3-slim build: steps: -build-py2: - box: python:2.7-slim - steps: - - script: - name: virtualenv install - code: | - pip install virtualenv - - - virtualenv: - name: setup virtual environment - install_wheel: true - - - script: - name: echo python information - code: | - echo "python version $(python --version) running" - echo "pip version $(pip --version) running" - - - script: - name: build - code: | - python setup.py sdist bdist_wheel - - - script: - name: test - code: | - python setup.py test - build-py37: box: python:3.7-slim steps: From c8daf4b11e8706556b840db6f79946c3beb031c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Susannah=20Klane=C4=8Dek?= Date: Sun, 22 Nov 2020 11:05:54 -0600 Subject: [PATCH 02/10] Fix it --- deploy.sh | 1 - wercker.yml | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/deploy.sh b/deploy.sh index 7bc15d2..b5ba2bd 100644 --- a/deploy.sh +++ b/deploy.sh @@ -14,7 +14,6 @@ EOF pip install twine mkdir dist -cp build-py2/dist/* dist/ cp build-py37/dist/* dist/ cp build-py38/dist/* dist/ diff --git a/wercker.yml b/wercker.yml index 9ef8edf..8e4f3f4 100644 --- a/wercker.yml +++ b/wercker.yml @@ -64,5 +64,5 @@ deploy: - script: name: deploy to pypi code: | - cp build-py2/deploy.sh . + cp build-py37/deploy.sh . sh deploy.sh From ca783c1ff3242f0b5a326f7b3d87c1bd065940a7 Mon Sep 17 00:00:00 2001 From: Iskandar Setiadi Date: Wed, 25 Nov 2020 11:05:04 +0900 Subject: [PATCH 03/10] Various update and cleanup --- LICENSE | 2 +- README.md | 4 ++-- README.rst | 4 ++-- 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 | 5 ++--- tests/__init__.py | 2 +- tests/basic_test.py | 2 +- tests/test_direct_invocations.py | 2 +- wercker.yml | 28 ++++++++++++++++++++++++++++ 13 files changed, 43 insertions(+), 16 deletions(-) diff --git a/LICENSE b/LICENSE index 282b0e8..44eb621 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2015-2019 HENNGE K.K. (formerly known as HDE, Inc.) +Copyright (c) 2015-2020 HENNGE K.K. (formerly known as 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 fb59490..4dc9dd7 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ Suppose your project directory is like this: │   │   ├── ... (package content of rx) ... │   │   └── testscheduler.py -│   └── Rx-1.2.3.dist-info +│   └── Rx-1.6.1.dist-info │   ├── DESCRIPTION.rst │   ├── METADATA │   ├── metadata.json @@ -147,7 +147,7 @@ Call a handler function `func` with given `event`, `context` and custom `environ 1. Make sure the 3rd party libraries used in the AWS Lambda function can be imported. ``` bash -pip install rx +pip install rx==1.6.1 ``` 2. To call the lambda function above with your python code: diff --git a/README.rst b/README.rst index 9c5bd6a..8fb606d 100644 --- a/README.rst +++ b/README.rst @@ -75,7 +75,7 @@ Suppose your project directory is like this: │   │   ├── ... (package content of rx) ... │   │   └── testscheduler.py - │   └── Rx-1.2.3.dist-info + │   └── Rx-1.6.1.dist-info │   ├── DESCRIPTION.rst │   ├── METADATA │   ├── metadata.json @@ -164,7 +164,7 @@ Sample .. code:: bash - pip install rx + pip install rx==1.6.1 2. To call the lambda function above with your python code: diff --git a/lambda_local/__init__.py b/lambda_local/__init__.py index 2a21140..2112c24 100644 --- a/lambda_local/__init__.py +++ b/lambda_local/__init__.py @@ -1,7 +1,7 @@ ''' python-lambda-local: Main module -Copyright 2015-2019 HENNGE K.K. (formerly known as HDE, Inc.) +Copyright 2015-2020 HENNGE K.K. (formerly known as HDE, Inc.) Licensed under MIT. ''' diff --git a/lambda_local/context.py b/lambda_local/context.py index dbc287e..c183a3d 100644 --- a/lambda_local/context.py +++ b/lambda_local/context.py @@ -1,5 +1,5 @@ ''' -Copyright 2015-2019 HENNGE K.K. (formerly known as HDE, Inc.) +Copyright 2015-2020 HENNGE K.K. (formerly known as HDE, Inc.) Licensed under MIT. ''' from __future__ import print_function diff --git a/lambda_local/event.py b/lambda_local/event.py index a9d3c98..f76b3ec 100644 --- a/lambda_local/event.py +++ b/lambda_local/event.py @@ -1,5 +1,5 @@ ''' -Copyright 2015-2019 HENNGE K.K. (formerly known as HDE, Inc.) +Copyright 2015-2020 HENNGE K.K. (formerly known as HDE, Inc.) Licensed under MIT. ''' diff --git a/lambda_local/main.py b/lambda_local/main.py index b3645d2..738079f 100644 --- a/lambda_local/main.py +++ b/lambda_local/main.py @@ -1,5 +1,5 @@ ''' -Copyright 2015-2019 HENNGE K.K. (formerly known as HDE, Inc.) +Copyright 2015-2020 HENNGE K.K. (formerly known as HDE, Inc.) Licensed under MIT. ''' diff --git a/lambda_local/timeout.py b/lambda_local/timeout.py index d13c619..a699bc0 100644 --- a/lambda_local/timeout.py +++ b/lambda_local/timeout.py @@ -1,5 +1,5 @@ ''' -Copyright 2015-2019 HENNGE K.K. (formerly known as HDE, Inc.) +Copyright 2015-2020 HENNGE K.K. (formerly known as HDE, Inc.) Licensed under MIT. ''' diff --git a/setup.py b/setup.py index 9c2aa1a..1196146 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ ''' python-lambda-local: Run lambda function in python on local machine. -Copyright 2015-2019 HENNGE K.K. (formerly known as HDE, Inc.) +Copyright 2015-2020 HENNGE K.K. (formerly known as HDE, Inc.) Licensed under MIT. ''' import io @@ -26,8 +26,6 @@ def run_tests(self): version = "0.1.12" TEST_REQUIRE = ['pytest'] -if sys.version_info[0] == 2: - TEST_REQUIRE = ['pytest==4.6.3'] setup(name="python-lambda-local", version=version, @@ -39,6 +37,7 @@ def run_tests(self): 'Programming Language :: Python', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', 'License :: OSI Approved :: MIT License' ], keywords="AWS Lambda", diff --git a/tests/__init__.py b/tests/__init__.py index 9e074ad..b3ed574 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -5,6 +5,6 @@ Organize tests into files, each named xxx_test.py Read more here: http://pytest.org/ -Copyright 2015-2019 HENNGE K.K. (formerly known as HDE, Inc.) +Copyright 2015-2020 HENNGE K.K. (formerly known as HDE, Inc.) Licensed under MIT ''' diff --git a/tests/basic_test.py b/tests/basic_test.py index 46e81d2..5a79481 100644 --- a/tests/basic_test.py +++ b/tests/basic_test.py @@ -5,7 +5,7 @@ Write each test as a function named test_. Read more here: http://pytest.org/ -Copyright 2015-2019 HENNGE K.K. (formerly known as HDE, Inc.) +Copyright 2015-2020 HENNGE K.K. (formerly known as HDE, Inc.) Licensed under MIT ''' diff --git a/tests/test_direct_invocations.py b/tests/test_direct_invocations.py index b49eaf7..1a418fd 100644 --- a/tests/test_direct_invocations.py +++ b/tests/test_direct_invocations.py @@ -4,7 +4,7 @@ Meant for use with py.test. -Copyright 2015-2019 HENNGE K.K. (formerly known as HDE, Inc.) +Copyright 2015-2020 HENNGE K.K. (formerly known as HDE, Inc.) Licensed under MIT ''' import json diff --git a/wercker.yml b/wercker.yml index 8e4f3f4..1362f1e 100644 --- a/wercker.yml +++ b/wercker.yml @@ -59,6 +59,34 @@ build-py38: code: | python setup.py test +build-py39: + box: python:3.9-slim + steps: + - script: + name: virtualenv install + code: | + pip install virtualenv + + - virtualenv: + name: setup virtual environment + install_wheel: true + + - script: + name: echo python information + code: | + echo "python version $(python --version) running" + echo "pip version $(pip --version) running" + + - script: + name: build + code: | + python setup.py sdist bdist_wheel + + - script: + name: test + code: | + python setup.py test + deploy: steps: - script: From 0a5dfa8b3d667bb6a67725530894b97a80e331a7 Mon Sep 17 00:00:00 2001 From: Kyle Moore Date: Mon, 21 Dec 2020 21:51:09 -0500 Subject: [PATCH 04/10] Add __main__ file for using the package as a module --- lambda_local/__main__.py | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 lambda_local/__main__.py diff --git a/lambda_local/__main__.py b/lambda_local/__main__.py new file mode 100644 index 0000000..868d99e --- /dev/null +++ b/lambda_local/__main__.py @@ -0,0 +1,4 @@ +from . import main + +if __name__ == "__main__": + main() From 00f78945a13e8e363af5ce8f653d732fb3eacf17 Mon Sep 17 00:00:00 2001 From: freedomofkeima Date: Thu, 2 Jun 2022 18:22:20 +0900 Subject: [PATCH 05/10] Add Github Actions workflow file --- .github/workflows/execute_tests.yml | 31 +++++++++++++++++++++++++++++ README.md | 2 +- README.rst | 7 +++---- 3 files changed, 35 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/execute_tests.yml diff --git a/.github/workflows/execute_tests.yml b/.github/workflows/execute_tests.yml new file mode 100644 index 0000000..5d04158 --- /dev/null +++ b/.github/workflows/execute_tests.yml @@ -0,0 +1,31 @@ +name: Execute tests + +on: push + +jobs: + execute_tests: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ['3.7', '3.8', '3.9'] + name: Python ${{ matrix.python-version }} tests + steps: + - uses: actions/checkout@v3 + + - name: Setup python + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + + - name: Print information + run: | + echo "python version $(python --version) running" + echo "pip version $(pip --version) running" + + - name: Build + run: | + python setup.py sdist bdist_wheel + + - name: Test + run: | + python setup.py test diff --git a/README.md b/README.md index 4dc9dd7..6cd0b85 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # python-lambda-local [![Join the chat at https://gitter.im/HDE/python-lambda-local](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/HDE/python-lambda-local?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) -[![wercker status](https://app.wercker.com/status/04f5bc5b7de3d5c6f13eb5b871035226/s "wercker status")](https://app.wercker.com/project/bykey/04f5bc5b7de3d5c6f13eb5b871035226) +[![Github Actions status](https://github.com/HDE/python-lambda-local/actions/workflows/execute_tests.yml/badge.svg)](https://github.com/HDE/python-lambda-local/actions/) [![PyPI version](https://badge.fury.io/py/python-lambda-local.svg)](https://badge.fury.io/py/python-lambda-local) Run lambda function on local machine diff --git a/README.rst b/README.rst index 8fb606d..493b1f7 100644 --- a/README.rst +++ b/README.rst @@ -1,8 +1,7 @@ python-lambda-local =================== -|Join the chat at https://gitter.im/HDE/python-lambda-local| |wercker -status| |PyPI version| +|Join the chat at https://gitter.im/HDE/python-lambda-local| |Github Actions status| |PyPI version| Run lambda function on local machine @@ -184,7 +183,7 @@ Sample .. |Join the chat at https://gitter.im/HDE/python-lambda-local| image:: https://badges.gitter.im/Join%20Chat.svg :target: https://gitter.im/HDE/python-lambda-local?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge -.. |wercker status| image:: https://app.wercker.com/status/04f5bc5b7de3d5c6f13eb5b871035226/s - :target: https://app.wercker.com/project/bykey/04f5bc5b7de3d5c6f13eb5b871035226 +.. |Github Actions status| image:: https://github.com/github/docs/actions/workflows/main.yml/badge.svg + :target: https://github.com/HDE/python-lambda-local/actions/ .. |PyPI version| image:: https://badge.fury.io/py/python-lambda-local.svg :target: https://badge.fury.io/py/python-lambda-local From 51349d07fcf291ab750e2d2bf551ae8b1d67eb51 Mon Sep 17 00:00:00 2001 From: freedomofkeima Date: Thu, 2 Jun 2022 18:25:49 +0900 Subject: [PATCH 06/10] Add wheel installation --- .github/workflows/execute_tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/execute_tests.yml b/.github/workflows/execute_tests.yml index 5d04158..57a6fdf 100644 --- a/.github/workflows/execute_tests.yml +++ b/.github/workflows/execute_tests.yml @@ -24,6 +24,7 @@ jobs: - name: Build run: | + pip install wheel python setup.py sdist bdist_wheel - name: Test From ee56caa5f2a8145ff55d9b7374894dd90da36ba3 Mon Sep 17 00:00:00 2001 From: freedomofkeima Date: Thu, 2 Jun 2022 18:49:27 +0900 Subject: [PATCH 07/10] Update README file --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 493b1f7..84e9653 100644 --- a/README.rst +++ b/README.rst @@ -183,7 +183,7 @@ Sample .. |Join the chat at https://gitter.im/HDE/python-lambda-local| image:: https://badges.gitter.im/Join%20Chat.svg :target: https://gitter.im/HDE/python-lambda-local?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge -.. |Github Actions status| image:: https://github.com/github/docs/actions/workflows/main.yml/badge.svg +.. |Github Actions status| image:: https://github.com/HDE/python-lambda-local/actions/workflows/execute_tests.yml/badge.svg :target: https://github.com/HDE/python-lambda-local/actions/ .. |PyPI version| image:: https://badge.fury.io/py/python-lambda-local.svg :target: https://badge.fury.io/py/python-lambda-local From b34e3d7f1ee77b923769aa79312e3f7bc026d9fb Mon Sep 17 00:00:00 2001 From: freedomofkeima Date: Thu, 2 Jun 2022 18:55:17 +0900 Subject: [PATCH 08/10] Remove wercker --- deploy.sh | 5 --- wercker.yml | 96 ----------------------------------------------------- 2 files changed, 101 deletions(-) delete mode 100644 wercker.yml diff --git a/deploy.sh b/deploy.sh index b5ba2bd..2661370 100644 --- a/deploy.sh +++ b/deploy.sh @@ -12,9 +12,4 @@ password: ${PYPI_PASSWORD} EOF pip install twine - -mkdir dist -cp build-py37/dist/* dist/ -cp build-py38/dist/* dist/ - twine upload -r pypi dist/* diff --git a/wercker.yml b/wercker.yml deleted file mode 100644 index 1362f1e..0000000 --- a/wercker.yml +++ /dev/null @@ -1,96 +0,0 @@ -box: python:3-slim - -build: - steps: - -build-py37: - box: python:3.7-slim - steps: - - script: - name: virtualenv install - code: | - pip install virtualenv - - - virtualenv: - name: setup virtual environment - install_wheel: true - - - script: - name: echo python information - code: | - echo "python version $(python --version) running" - echo "pip version $(pip --version) running" - - - script: - name: build - code: | - python setup.py sdist bdist_wheel - - - script: - name: test - code: | - python setup.py test - -build-py38: - box: python:3.8-slim - steps: - - script: - name: virtualenv install - code: | - pip install virtualenv - - - virtualenv: - name: setup virtual environment - install_wheel: true - - - script: - name: echo python information - code: | - echo "python version $(python --version) running" - echo "pip version $(pip --version) running" - - - script: - name: build - code: | - python setup.py sdist bdist_wheel - - - script: - name: test - code: | - python setup.py test - -build-py39: - box: python:3.9-slim - steps: - - script: - name: virtualenv install - code: | - pip install virtualenv - - - virtualenv: - name: setup virtual environment - install_wheel: true - - - script: - name: echo python information - code: | - echo "python version $(python --version) running" - echo "pip version $(pip --version) running" - - - script: - name: build - code: | - python setup.py sdist bdist_wheel - - - script: - name: test - code: | - python setup.py test - -deploy: - steps: - - script: - name: deploy to pypi - code: | - cp build-py37/deploy.sh . - sh deploy.sh From 84f573861a3d4e15ef6d6da61c1a4f7ddae0f948 Mon Sep 17 00:00:00 2001 From: freedomofkeima Date: Thu, 2 Jun 2022 19:09:13 +0900 Subject: [PATCH 09/10] Add deployment workflow --- .github/workflows/push_to_pypi.yml | 40 ++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/push_to_pypi.yml diff --git a/.github/workflows/push_to_pypi.yml b/.github/workflows/push_to_pypi.yml new file mode 100644 index 0000000..a5b1afd --- /dev/null +++ b/.github/workflows/push_to_pypi.yml @@ -0,0 +1,40 @@ +name: Push package to pypi + +on: + pull_request: + types: + - closed + branches: + - release + +env: + PYTHON_VERSION: "3.9" + +jobs: + push_to_pypi: + if: github.event.pull_request.merged + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Setup python + uses: actions/setup-python@v3 + with: + python-version: ${{ env.PYTHON_VERSION }} + + - name: Print information + run: | + echo "python version $(python --version) running" + echo "pip version $(pip --version) running" + + - name: Build + run: | + pip install wheel + python setup.py sdist bdist_wheel + + - name: Deploy + env: + PYPI_USERNAME: "${{ secrets.PYPI_USERNAME }}" + PYPI_PASSWORD: "${{ secrets.PYPI_PASSWORD }}" + run: | + sh deploy.sh From 602e1272acde2e632790462002c69ff923f187a5 Mon Sep 17 00:00:00 2001 From: freedomofkeima Date: Thu, 2 Jun 2022 19:25:15 +0900 Subject: [PATCH 10/10] Bump version, add update several other information --- CHANGELOG.txt | 18 ++++++++++++++++++ LICENSE | 2 +- lambda_local/__init__.py | 2 +- lambda_local/context.py | 2 +- lambda_local/environment_variables.py | 4 ++++ lambda_local/event.py | 2 +- lambda_local/main.py | 2 +- lambda_local/timeout.py | 2 +- setup.py | 8 ++++---- tests/__init__.py | 2 +- tests/basic_test.py | 2 +- tests/test_direct_invocations.py | 2 +- tests/test_environment_variables.py | 4 ++++ 13 files changed, 39 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 9c747d2..d732b63 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -52,3 +52,21 @@ Version 0.1.10 -------------- - Fix traceback output when exception happens. + +Version 0.1.11 +-------------- + + - Test on python 3.8. + +Version 0.1.12 +-------------- + + - Fix error when running on Windows with Python 3. + +Version 0.1.13 +-------------- + + - Drop support of Python 2.7. + - Various update and cleanup, add Python 3.9 support. + - Add __main__ file for using the package as a module. + - Implement tests via Github Actions. diff --git a/LICENSE b/LICENSE index 44eb621..9416dcb 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2015-2020 HENNGE K.K. (formerly known as HDE, Inc.) +Copyright (c) 2015-2022 HENNGE K.K. (formerly known as 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/lambda_local/__init__.py b/lambda_local/__init__.py index 2112c24..e5899ab 100644 --- a/lambda_local/__init__.py +++ b/lambda_local/__init__.py @@ -1,7 +1,7 @@ ''' python-lambda-local: Main module -Copyright 2015-2020 HENNGE K.K. (formerly known as HDE, Inc.) +Copyright 2015-2022 HENNGE K.K. (formerly known as HDE, Inc.) Licensed under MIT. ''' diff --git a/lambda_local/context.py b/lambda_local/context.py index c183a3d..1c84b72 100644 --- a/lambda_local/context.py +++ b/lambda_local/context.py @@ -1,5 +1,5 @@ ''' -Copyright 2015-2020 HENNGE K.K. (formerly known as HDE, Inc.) +Copyright 2015-2022 HENNGE K.K. (formerly known as HDE, Inc.) Licensed under MIT. ''' from __future__ import print_function diff --git a/lambda_local/environment_variables.py b/lambda_local/environment_variables.py index ea102bd..484dde7 100644 --- a/lambda_local/environment_variables.py +++ b/lambda_local/environment_variables.py @@ -1,3 +1,7 @@ +''' +Copyright 2015-2022 HENNGE K.K. (formerly known as HDE, Inc.) +Licensed under MIT. +''' import json import os diff --git a/lambda_local/event.py b/lambda_local/event.py index f76b3ec..a831caf 100644 --- a/lambda_local/event.py +++ b/lambda_local/event.py @@ -1,5 +1,5 @@ ''' -Copyright 2015-2020 HENNGE K.K. (formerly known as HDE, Inc.) +Copyright 2015-2022 HENNGE K.K. (formerly known as HDE, Inc.) Licensed under MIT. ''' diff --git a/lambda_local/main.py b/lambda_local/main.py index 738079f..55b22c9 100644 --- a/lambda_local/main.py +++ b/lambda_local/main.py @@ -1,5 +1,5 @@ ''' -Copyright 2015-2020 HENNGE K.K. (formerly known as HDE, Inc.) +Copyright 2015-2022 HENNGE K.K. (formerly known as HDE, Inc.) Licensed under MIT. ''' diff --git a/lambda_local/timeout.py b/lambda_local/timeout.py index a699bc0..9492844 100644 --- a/lambda_local/timeout.py +++ b/lambda_local/timeout.py @@ -1,5 +1,5 @@ ''' -Copyright 2015-2020 HENNGE K.K. (formerly known as HDE, Inc.) +Copyright 2015-2022 HENNGE K.K. (formerly known as HDE, Inc.) Licensed under MIT. ''' diff --git a/setup.py b/setup.py index 1196146..7bcbf9c 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ ''' python-lambda-local: Run lambda function in python on local machine. -Copyright 2015-2020 HENNGE K.K. (formerly known as HDE, Inc.) +Copyright 2015-2022 HENNGE K.K. (formerly known as HDE, Inc.) Licensed under MIT. ''' import io @@ -23,7 +23,7 @@ def run_tests(self): sys.exit(pytest.main(self.test_args)) -version = "0.1.12" +version = "0.1.13" TEST_REQUIRE = ['pytest'] @@ -41,8 +41,8 @@ def run_tests(self): 'License :: OSI Approved :: MIT License' ], keywords="AWS Lambda", - author="YANG Xudong", - author_email="xudong.yang@hennge.com", + author="YANG Xudong, Iskandar Setiadi", + author_email="iskandar.setiadi@hennge.com", url="https://github.com/HDE/python-lambda-local", license="MIT", packages=find_packages(exclude=['examples', 'tests']), diff --git a/tests/__init__.py b/tests/__init__.py index b3ed574..9052941 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -5,6 +5,6 @@ Organize tests into files, each named xxx_test.py Read more here: http://pytest.org/ -Copyright 2015-2020 HENNGE K.K. (formerly known as HDE, Inc.) +Copyright 2015-2022 HENNGE K.K. (formerly known as HDE, Inc.) Licensed under MIT ''' diff --git a/tests/basic_test.py b/tests/basic_test.py index 5a79481..0dddec8 100644 --- a/tests/basic_test.py +++ b/tests/basic_test.py @@ -5,7 +5,7 @@ Write each test as a function named test_. Read more here: http://pytest.org/ -Copyright 2015-2020 HENNGE K.K. (formerly known as HDE, Inc.) +Copyright 2015-2022 HENNGE K.K. (formerly known as HDE, Inc.) Licensed under MIT ''' diff --git a/tests/test_direct_invocations.py b/tests/test_direct_invocations.py index 1a418fd..6b4857f 100644 --- a/tests/test_direct_invocations.py +++ b/tests/test_direct_invocations.py @@ -4,7 +4,7 @@ Meant for use with py.test. -Copyright 2015-2020 HENNGE K.K. (formerly known as HDE, Inc.) +Copyright 2015-2022 HENNGE K.K. (formerly known as HDE, Inc.) Licensed under MIT ''' import json diff --git a/tests/test_environment_variables.py b/tests/test_environment_variables.py index 6582779..7221f89 100644 --- a/tests/test_environment_variables.py +++ b/tests/test_environment_variables.py @@ -1,3 +1,7 @@ +''' +Copyright 2015-2022 HENNGE K.K. (formerly known as HDE, Inc.) +Licensed under MIT. +''' import os from lambda_local.environment_variables import set_environment_variables