Skip to content

Commit 9afc7d6

Browse files
authored
Merge pull request #71 from devsapp/fix-python3-event
python3 event example can choice runtime
2 parents d8061e4 + 4fba776 commit 9afc7d6

File tree

12 files changed

+20
-95
lines changed

12 files changed

+20
-95
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,4 @@ Nuget*
1414
.idea
1515
node-v12.16.1-linux-x64*
1616
nginx
17-
index.py
1817
.s_test*

event-function/fc-event-python3.6/src/readme.md

Lines changed: 0 additions & 84 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.

event-function/fc-event-python3.6/publish.yaml renamed to event-function/fc-event-python3/publish.yaml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
Type: Application
22
Name: start-fc-event-python3
3-
Version: 1.1.22
3+
Version: 1.1.23
44
Provider:
55
- 阿里云
6-
Description: 快速部署一个 Python 3.6 的 Event 类型的 Hello World 函数到阿里云函数计算。
6+
Description: 快速部署一个 Python 3 的 Event 类型的 Hello World 函数到阿里云函数计算。
77
HomePage: https://github.com/devsapp/start-fc
88
Tags:
99
- 函数计算
@@ -22,6 +22,7 @@ Parameters:
2222
- region
2323
- serviceName
2424
- functionName
25+
- runtime
2526
properties:
2627
region:
2728
title: 地域
@@ -57,4 +58,13 @@ Parameters:
5758
title: 函数名
5859
type: string
5960
default: start-fc-event-python3
60-
description: 函数名称,只能包含字母、数字、下划线和中划线。不能以数字、中划线开头。长度在 1-64 之间
61+
description: 函数名称,只能包含字母、数字、下划线和中划线。不能以数字、中划线开头。长度在 1-64 之间
62+
runtime:
63+
title: python 运行时
64+
type: string
65+
default: python3.9
66+
description: 创建应用所在的地区
67+
enum:
68+
- python3.6
69+
- python3.9
70+
- python3.10
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
src/readme.md
File renamed without changes.

event-function/fc-event-python3.6/readme.md renamed to event-function/fc-event-python3/src/readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
<description>
1616

17-
快速部署一个 Python 3.6 的 Event 类型的 Hello World 函数到阿里云函数计算。
17+
快速部署一个 Python 3 的 Event 类型的 Hello World 函数到阿里云函数计算。
1818

1919
</description>
2020

@@ -33,7 +33,7 @@
3333

3434
# 代码 & 预览
3535

36-
- [ :smiley_cat: 源代码](https://github.com/devsapp/start-fc/blob/main/event-function/fc-event-python3.6)
36+
- [ :smiley_cat: 源代码](https://github.com/devsapp/start-fc/blob/main/event-function/fc-event-python3)
3737

3838
</codepre>
3939

event-function/fc-event-python3.6/src/s.yaml renamed to event-function/fc-event-python3/src/s.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ services:
4949
function:
5050
name: "{{ functionName }}"
5151
description: 'hello world by serverless devs'
52-
runtime: python3
52+
runtime: "{{ runtime }}"
5353
codeUri: ./code
5454
handler: index.handler
5555
memorySize: 128

event-function/fc-event-python3.6/src/s_en.yaml renamed to event-function/fc-event-python3/src/s_en.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ services:
4747
region: ${vars.region} # For the usage of variables, please refer to: https://www.serverless-devs.com/serverless-devs/yaml#Variable assignment
4848
service: ${vars.service}
4949
function:
50-
name: custom-cpp-event-function
50+
name: python3.9-event-function
5151
description: 'hello world by serverless devs'
52-
runtime: python3
52+
runtime: python3.9
5353
codeUri: ./code
5454
handler: index.handler
5555
memorySize: 128

0 commit comments

Comments
 (0)