File tree 13 files changed +43
-16
lines changed
Filter options
13 files changed +43
-16
lines changed
Original file line number Diff line number Diff line change 1
1
The MIT License (MIT)
2
2
3
- Copyright (c) 2015-2019 HENNGE K.K. (formerly known as HDE, Inc.)
3
+ Copyright (c) 2015-2020 HENNGE K.K. (formerly known as HDE, Inc.)
4
4
5
5
Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
of this software and associated documentation files (the "Software"), to deal
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ Suppose your project directory is like this:
68
68
│ │ ├── ... (package content of rx)
69
69
...
70
70
│ │ └── testscheduler.py
71
- │ └── Rx-1.2.3 .dist-info
71
+ │ └── Rx-1.6.1 .dist-info
72
72
│ ├── DESCRIPTION.rst
73
73
│ ├── METADATA
74
74
│ ├── metadata.json
@@ -147,7 +147,7 @@ Call a handler function `func` with given `event`, `context` and custom `environ
147
147
1 . Make sure the 3rd party libraries used in the AWS Lambda function can be imported.
148
148
149
149
``` bash
150
- pip install rx
150
+ pip install rx==1.6.1
151
151
```
152
152
153
153
2 . To call the lambda function above with your python code:
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ Suppose your project directory is like this:
75
75
│ │ ├── ... (package content of rx)
76
76
...
77
77
│ │ └── testscheduler.py
78
- │ └── Rx-1.2.3 .dist-info
78
+ │ └── Rx-1.6.1 .dist-info
79
79
│ ├── DESCRIPTION.rst
80
80
│ ├── METADATA
81
81
│ ├── metadata.json
@@ -164,7 +164,7 @@ Sample
164
164
165
165
.. code :: bash
166
166
167
- pip install rx
167
+ pip install rx==1.6.1
168
168
169
169
2. To call the lambda function above with your python code:
170
170
Original file line number Diff line number Diff line change 1
1
'''
2
2
python-lambda-local: Main module
3
3
4
- Copyright 2015-2019 HENNGE K.K. (formerly known as HDE, Inc.)
4
+ Copyright 2015-2020 HENNGE K.K. (formerly known as HDE, Inc.)
5
5
Licensed under MIT.
6
6
'''
7
7
Original file line number Diff line number Diff line change 1
1
'''
2
- Copyright 2015-2019 HENNGE K.K. (formerly known as HDE, Inc.)
2
+ Copyright 2015-2020 HENNGE K.K. (formerly known as HDE, Inc.)
3
3
Licensed under MIT.
4
4
'''
5
5
from __future__ import print_function
Original file line number Diff line number Diff line change 1
1
'''
2
- Copyright 2015-2019 HENNGE K.K. (formerly known as HDE, Inc.)
2
+ Copyright 2015-2020 HENNGE K.K. (formerly known as HDE, Inc.)
3
3
Licensed under MIT.
4
4
'''
5
5
Original file line number Diff line number Diff line change 1
1
'''
2
- Copyright 2015-2019 HENNGE K.K. (formerly known as HDE, Inc.)
2
+ Copyright 2015-2020 HENNGE K.K. (formerly known as HDE, Inc.)
3
3
Licensed under MIT.
4
4
'''
5
5
Original file line number Diff line number Diff line change 1
1
'''
2
- Copyright 2015-2019 HENNGE K.K. (formerly known as HDE, Inc.)
2
+ Copyright 2015-2020 HENNGE K.K. (formerly known as HDE, Inc.)
3
3
Licensed under MIT.
4
4
'''
5
5
Original file line number Diff line number Diff line change 1
1
'''
2
2
python-lambda-local: Run lambda function in python on local machine.
3
3
4
- Copyright 2015-2019 HENNGE K.K. (formerly known as HDE, Inc.)
4
+ Copyright 2015-2020 HENNGE K.K. (formerly known as HDE, Inc.)
5
5
Licensed under MIT.
6
6
'''
7
7
import io
@@ -26,8 +26,6 @@ def run_tests(self):
26
26
version = "0.1.12"
27
27
28
28
TEST_REQUIRE = ['pytest' ]
29
- if sys .version_info [0 ] == 2 :
30
- TEST_REQUIRE = ['pytest==4.6.3' ]
31
29
32
30
setup (name = "python-lambda-local" ,
33
31
version = version ,
@@ -39,6 +37,7 @@ def run_tests(self):
39
37
'Programming Language :: Python' ,
40
38
'Programming Language :: Python :: 3.7' ,
41
39
'Programming Language :: Python :: 3.8' ,
40
+ 'Programming Language :: Python :: 3.9' ,
42
41
'License :: OSI Approved :: MIT License'
43
42
],
44
43
keywords = "AWS Lambda" ,
Original file line number Diff line number Diff line change 5
5
Organize tests into files, each named xxx_test.py
6
6
Read more here: http://pytest.org/
7
7
8
- Copyright 2015-2019 HENNGE K.K. (formerly known as HDE, Inc.)
8
+ Copyright 2015-2020 HENNGE K.K. (formerly known as HDE, Inc.)
9
9
Licensed under MIT
10
10
'''
Original file line number Diff line number Diff line change 5
5
Write each test as a function named test_<something>.
6
6
Read more here: http://pytest.org/
7
7
8
- Copyright 2015-2019 HENNGE K.K. (formerly known as HDE, Inc.)
8
+ Copyright 2015-2020 HENNGE K.K. (formerly known as HDE, Inc.)
9
9
Licensed under MIT
10
10
'''
11
11
Original file line number Diff line number Diff line change 4
4
5
5
Meant for use with py.test.
6
6
7
- Copyright 2015-2019 HENNGE K.K. (formerly known as HDE, Inc.)
7
+ Copyright 2015-2020 HENNGE K.K. (formerly known as HDE, Inc.)
8
8
Licensed under MIT
9
9
'''
10
10
import json
Original file line number Diff line number Diff line change @@ -59,6 +59,34 @@ build-py38:
59
59
code : |
60
60
python setup.py test
61
61
62
+ build-py39 :
63
+ box : python:3.9-slim
64
+ steps :
65
+ - script :
66
+ name : virtualenv install
67
+ code : |
68
+ pip install virtualenv
69
+
70
+ - virtualenv :
71
+ name : setup virtual environment
72
+ install_wheel : true
73
+
74
+ - script :
75
+ name : echo python information
76
+ code : |
77
+ echo "python version $(python --version) running"
78
+ echo "pip version $(pip --version) running"
79
+
80
+ - script :
81
+ name : build
82
+ code : |
83
+ python setup.py sdist bdist_wheel
84
+
85
+ - script :
86
+ name : test
87
+ code : |
88
+ python setup.py test
89
+
62
90
deploy :
63
91
steps :
64
92
- script :
You can’t perform that action at this time.
0 commit comments