File tree 5 files changed +41
-9
lines changed
5 files changed +41
-9
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ Run lambda function on local machine
8
8
9
9
## Prepare development environment
10
10
11
- Please use a newly created virtualenv of Python 2.7 or Python 3.6 .
11
+ Please use a newly created virtualenv of Python 2.7 or Python 3.7 .
12
12
13
13
## Installation
14
14
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ Run lambda function on local machine
9
9
Prepare development environment
10
10
-------------------------------
11
11
12
- Please use a newly created virtualenv of Python 2.7 or Python 3.6 .
12
+ Please use a newly created virtualenv of Python 2.7 or Python 3.7 .
13
13
14
14
Installation
15
15
------------
Original file line number Diff line number Diff line change @@ -12,5 +12,10 @@ password: ${PYPI_PASSWORD}
12
12
EOF
13
13
14
14
pip install twine
15
- twine upload -r pypi dist/*
16
15
16
+ mkdir dist
17
+ cp build-py2/dist/* dist/
18
+ cp build-py37/dist/* dist/
19
+ cp build-py38/dist/* dist/
20
+
21
+ twine upload -r pypi dist/*
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ def run_tests(self):
23
23
sys .exit (pytest .main (self .test_args ))
24
24
25
25
26
- version = "0.1.10 "
26
+ version = "0.1.11 "
27
27
28
28
TEST_REQUIRE = ['pytest' ]
29
29
if sys .version_info [0 ] == 2 :
Original file line number Diff line number Diff line change 1
- box : python:3.7 -slim
1
+ box : python:3-slim
2
2
3
3
build :
4
4
steps :
@@ -13,7 +13,7 @@ build-py2:
13
13
14
14
- virtualenv :
15
15
name : setup virtual environment
16
- install_wheel : true # Enable wheel to speed up builds (experimental)
16
+ install_wheel : true
17
17
18
18
- script :
19
19
name : echo python information
@@ -31,7 +31,7 @@ build-py2:
31
31
code : |
32
32
python setup.py test
33
33
34
- build-py3 :
34
+ build-py37 :
35
35
box : python:3.7-slim
36
36
steps :
37
37
- script :
@@ -41,7 +41,35 @@ build-py3:
41
41
42
42
- virtualenv :
43
43
name : setup virtual environment
44
- install_wheel : true # Enable wheel to speed up builds (experimental)
44
+ install_wheel : true
45
+
46
+ - script :
47
+ name : echo python information
48
+ code : |
49
+ echo "python version $(python --version) running"
50
+ echo "pip version $(pip --version) running"
51
+
52
+ - script :
53
+ name : build
54
+ code : |
55
+ python setup.py sdist bdist_wheel
56
+
57
+ - script :
58
+ name : test
59
+ code : |
60
+ python setup.py test
61
+
62
+ build-py38 :
63
+ box : python:3.8-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
45
73
46
74
- script :
47
75
name : echo python information
@@ -64,5 +92,4 @@ deploy:
64
92
- script :
65
93
name : deploy to pypi
66
94
code : |
67
- cd build-py3
68
95
sh deploy.sh
You can’t perform that action at this time.
0 commit comments