Content-Length: 582046 | pFad | http://github.com/HDE/python-lambda-local/pull/72/files

63 Various update and cleanup by freedomofkeima · Pull Request #72 · HDE/python-lambda-local · GitHub
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various update and cleanup #72

Merged
merged 1 commit into from
Nov 25, 2020
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
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:

Expand Down
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-2019 HENNGE K.K. (formerly known as HDE, Inc.)
Copyright 2015-2020 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-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
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-2019 HENNGE K.K. (formerly known as HDE, Inc.)
Copyright 2015-2020 HENNGE K.K. (formerly known as HDE, Inc.)
Licensed under MIT.
'''

Expand Down
2 changes: 1 addition & 1 deletion lambda_local/main.py
Original file line number Diff line number Diff line change
@@ -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.
'''

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-2019 HENNGE K.K. (formerly known as HDE, Inc.)
Copyright 2015-2020 HENNGE K.K. (formerly known as HDE, Inc.)
Licensed under MIT.
'''

Expand Down
5 changes: 2 additions & 3 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-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
Expand All @@ -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,
Expand All @@ -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",
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-2019 HENNGE K.K. (formerly known as HDE, Inc.)
Copyright 2015-2020 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-2019 HENNGE K.K. (formerly known as HDE, Inc.)
Copyright 2015-2020 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-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
Expand Down
28 changes: 28 additions & 0 deletions wercker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/HDE/python-lambda-local/pull/72/files

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy