X Tutup
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,28 @@ Version 0.1.4
-------------

- Support Python 3.6.

Version 0.1.5
-------------

- Support reading environment variables from file.

Version 0.1.6
-------------

- Add timeout feature for Windows.

Version 0.1.7
-------------

- Add tests in CI.

Version 0.1.8
-------------

- Support running as a library.

Version 0.1.9
-------------

- Support latest boto3.
2 changes: 1 addition & 1 deletion lambda_local/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'''
python-lambda-local: Main module

Copyright 2015-2018 HDE, Inc.
Copyright 2015-2019 HENNGE K.K. (formerly known as HDE, Inc.)
Licensed under MIT.
'''

Expand Down
2 changes: 1 addition & 1 deletion lambda_local/context.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'''
Copyright 2015-2018 HDE, Inc.
Copyright 2015-2019 HENNGE K.K. (formerly known as HDE, Inc.)
Licensed under MIT.
'''
from __future__ import print_function
Expand Down
2 changes: 1 addition & 1 deletion lambda_local/event.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'''
Copyright 2015-2018 HDE, Inc.
Copyright 2015-2019 HENNGE K.K. (formerly known as HDE, Inc.)
Licensed under MIT.
'''

Expand Down
4 changes: 1 addition & 3 deletions lambda_local/main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'''
Copyright 2015-2018 HDE, Inc.
Copyright 2015-2019 HENNGE K.K. (formerly known as HDE, Inc.)
Licensed under MIT.
'''

Expand All @@ -10,7 +10,6 @@
import logging
import os
import timeit
from botocore.vendored.requests.packages import urllib3
import multiprocessing

from . import event
Expand All @@ -22,7 +21,6 @@
logging.basicConfig(stream=sys.stdout,
level=logging.INFO,
format='[%(name)s - %(levelname)s - %(asctime)s] %(message)s')
urllib3.disable_warnings()


ERR_TYPE_EXCEPTION = 0
Expand Down
2 changes: 1 addition & 1 deletion lambda_local/timeout.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'''
Copyright 2015-2018 HDE, Inc.
Copyright 2015-2019 HENNGE K.K. (formerly known as HDE, Inc.)
Licensed under MIT.
'''

Expand Down
12 changes: 8 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'''
python-lambda-local: Run lambda function in python on local machine.

Copyright 2015-2018 HDE, Inc.
Copyright 2015-2019 HENNGE K.K. (formerly known as HDE, Inc.)
Licensed under MIT.
'''
import io
Expand All @@ -23,7 +23,11 @@ def run_tests(self):
sys.exit(pytest.main(self.test_args))


version = "0.1.8"
version = "0.1.9"

TEST_REQUIRE = ['pytest']
if sys.version_info[0] == 2:
TEST_REQUIRE = ['pytest==4.6.3']

setup(name="python-lambda-local",
version=version,
Expand All @@ -34,7 +38,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",
Expand All @@ -45,7 +49,7 @@ def run_tests(self):
packages=find_packages(exclude=['examples', 'tests']),
include_package_data=True,
zip_safe=False,
tests_require=['pytest'],
tests_require=TEST_REQUIRE,
cmdclass={'test': PyTest},
install_requires=['boto3'],
entry_points={
Expand Down
2 changes: 1 addition & 1 deletion tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
Organize tests into files, each named xxx_test.py
Read more here: http://pytest.org/

Copyright 2015 HDE, Inc.
Copyright 2015-2019 HENNGE K.K. (formerly known as HDE, Inc.)
Licensed under MIT
'''
2 changes: 1 addition & 1 deletion tests/basic_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Write each test as a function named test_<something>.
Read more here: http://pytest.org/

Copyright 2015 HDE, Inc.
Copyright 2015-2019 HENNGE K.K. (formerly known as HDE, Inc.)
Licensed under MIT
'''

Expand Down
2 changes: 1 addition & 1 deletion tests/test_direct_invocations.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Meant for use with py.test.

Copyright 2015 HDE, Inc.
Copyright 2015-2019 HENNGE K.K. (formerly known as HDE, Inc.)
Licensed under MIT
'''
import json
Expand Down
4 changes: 2 additions & 2 deletions wercker.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
box: python:2.7-slim
box: python:3.7-slim

build:
steps:
Expand Down Expand Up @@ -32,7 +32,7 @@ build-py2:
python setup.py test

build-py3:
box: python:3.6-slim
box: python:3.7-slim
steps:
- script:
name: virtualenv install
Expand Down
X Tutup