FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Release v0.1.9 by yxd-hde · Pull Request #56 · HDE/python-lambda-local · GitHub

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (9) .txt  (1) .yml  (1) All 3 file types selected
Only manifest files
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
25 changes: 25 additions & 0 deletions CHANGELOG.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Back | FazBrowse Home | New Git URL