-
Notifications
You must be signed in to change notification settings - Fork 35
/
setup.py
56 lines (48 loc) · 1.72 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
'''
python-lambda-local: Run lambda function in python on local machine.
Copyright 2015-2022 HENNGE K.K. (formerly known as HDE, Inc.)
Licensed under MIT.
'''
import io
import sys
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
# This is a plug-in for setuptools that will invoke py.test
# when you run python setup.py test
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytest
sys.exit(pytest.main(self.test_args))
version = "0.1.13"
TEST_REQUIRE = ['pytest']
setup(name="python-lambda-local",
version=version,
description="Run lambda function in python on local machine.",
long_description=io.open("README.rst", encoding="utf-8").read(),
classifiers=[
'Development Status :: 3 - Alpha',
'Operating System :: POSIX',
'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",
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']),
include_package_data=True,
zip_safe=False,
tests_require=TEST_REQUIRE,
cmdclass={'test': PyTest},
install_requires=['boto3'],
entry_points={
'console_scripts': ['python-lambda-local=lambda_local:main']
})