-
Notifications
You must be signed in to change notification settings - Fork 363
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
752ffbd
commit ca8ca63
Showing
6 changed files
with
119 additions
and
101 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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,8 +1,8 @@ | ||
def myfunc(): | ||
print('Running my function in a schedule!') | ||
print("Running my function in a schedule!") | ||
|
||
|
||
def myfunc_with_events(event, context): | ||
print('Event time was', event['time']) | ||
print('This log is', context.log_group_name, context.log_stream_name) | ||
print('Time left for execution:', context.get_remaining_time_in_millis()) | ||
print("Event time was", event["time"]) | ||
print("This log is", context.log_group_name, context.log_stream_name) | ||
print("Time left for execution:", context.get_remaining_time_in_millis()) |
This file contains 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,53 +1,52 @@ | ||
import os | ||
import sys | ||
from setuptools import setup | ||
from io import open | ||
from zappa import __version__ | ||
|
||
with open('README.md', encoding='utf-8') as readme_file: | ||
with open("README.md", encoding="utf-8") as readme_file: | ||
long_description = readme_file.read() | ||
|
||
with open(os.path.join(os.path.dirname(__file__), 'requirements.in')) as f: | ||
with open(os.path.join(os.path.dirname(__file__), "requirements.in")) as f: | ||
required = f.read().splitlines() | ||
|
||
with open(os.path.join(os.path.dirname(__file__), 'test_requirements.in')) as f: | ||
with open(os.path.join(os.path.dirname(__file__), "test_requirements.in")) as f: | ||
test_required = f.read().splitlines() | ||
|
||
setup( | ||
name='zappa', | ||
name="zappa", | ||
version=__version__, | ||
packages=['zappa'], | ||
packages=["zappa"], | ||
install_requires=required, | ||
tests_require=test_required, | ||
test_suite='nose.collector', | ||
test_suite="nose.collector", | ||
include_package_data=True, | ||
license='MIT License', | ||
description='Server-less Python Web Services for AWS Lambda and API Gateway', | ||
license="MIT License", | ||
description="Server-less Python Web Services for AWS Lambda and API Gateway", | ||
long_description=long_description, | ||
long_description_content_type='text/markdown', | ||
url='https://github.com/zappa/Zappa', | ||
author='Rich Jones', | ||
author_email='rich@openwatch.net', | ||
long_description_content_type="text/markdown", | ||
url="https://github.com/zappa/Zappa", | ||
author="Rich Jones", | ||
author_email="rich@openwatch.net", | ||
entry_points={ | ||
'console_scripts': [ | ||
'zappa=zappa.cli:handle', | ||
'z=zappa.cli:handle', | ||
"console_scripts": [ | ||
"zappa=zappa.cli:handle", | ||
"z=zappa.cli:handle", | ||
] | ||
}, | ||
classifiers=[ | ||
'Environment :: Console', | ||
'License :: OSI Approved :: Apache Software License', | ||
'Operating System :: OS Independent', | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 3.6', | ||
'Programming Language :: Python :: 3.7', | ||
'Programming Language :: Python :: 3.8', | ||
'Programming Language :: Python :: 3.9', | ||
'Framework :: Django', | ||
'Framework :: Django :: 1.11', | ||
'Framework :: Django :: 2.0', | ||
'Framework :: Django :: 3.0', | ||
'Topic :: Internet :: WWW/HTTP', | ||
'Topic :: Internet :: WWW/HTTP :: Dynamic Content', | ||
"Environment :: Console", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Framework :: Django", | ||
"Framework :: Django :: 1.11", | ||
"Framework :: Django :: 2.0", | ||
"Framework :: Django :: 3.0", | ||
"Topic :: Internet :: WWW/HTTP", | ||
"Topic :: Internet :: WWW/HTTP :: Dynamic Content", | ||
], | ||
) |
This file contains 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