Skip to content

Commit 12466d4

Browse files
authored
Merge pull request #72 from devsapp/fix-python3-http
add python3 http example can choice runtime
2 parents 9afc7d6 + be8adb7 commit 12466d4

File tree

13 files changed

+44
-114
lines changed

13 files changed

+44
-114
lines changed

event-function/fc-event-python3/cloudshell.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
# 快速体验 Python3.6 Event 函数案例
1+
# 快速体验 Python3 Event 函数案例
22

3-
欢迎您使用Serverless Devs开发者工具进行项目开发,本实验是基于Serverless Devs部署 Python3.6 Event 案例到阿里云函数计算。
3+
欢迎您使用Serverless Devs开发者工具进行项目开发,本实验是基于Serverless Devs部署 Python3 Event 案例到阿里云函数计算。
44

55
整个实验过程包括:
6-
- [下载工具](#下载工具)
7-
- [配置密钥](#配置密钥)
8-
- [初始化项目](#初始化项目)
9-
- [部署项目](#部署项目)
10-
- [更多信息](#更多信息)
11-
12-
> - [:octocat: 源代码](https://github.com/devsapp/start-fc/tree/main/event-function/fc-event-python3.6/src)
6+
- [快速体验 Python3 Event 函数案例](#快速体验-python3-event-函数案例)
7+
- [下载工具](#下载工具)
8+
- [配置密钥](#配置密钥)
9+
- [初始化项目](#初始化项目)
10+
- [部署项目](#部署项目)
11+
- [更多信息](#更多信息)
12+
13+
> - [:octocat: 源代码](https://github.com/devsapp/start-fc/tree/main/event-function/fc-event-python3/src)
1314
1415
## 下载工具
1516

event-function/fc-event-python3/publish.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Type: Application
22
Name: start-fc-event-python3
3-
Version: 1.1.23
3+
Version: 1.1.24
44
Provider:
55
- 阿里云
66
Description: 快速部署一个 Python 3 的 Event 类型的 Hello World 函数到阿里云函数计算。
@@ -65,6 +65,6 @@ Parameters:
6565
default: python3.9
6666
description: 创建应用所在的地区
6767
enum:
68-
- python3.6
6968
- python3.9
70-
- python3.10
69+
- python3.10
70+
- python3.6

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

Lines changed: 0 additions & 84 deletions
This file was deleted.

http-function/fc-http-python3.6/cloudshell.md renamed to http-function/fc-http-python3/cloudshell.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
# 快速体验 Python3.6 HTTP 函数案例
1+
# 快速体验 Python3 HTTP 函数案例
22

3-
欢迎您使用Serverless Devs开发者工具进行项目开发,本实验是基于Serverless Devs部署 Python3.6 HTTP 案例到阿里云函数计算。
3+
欢迎您使用Serverless Devs开发者工具进行项目开发,本实验是基于Serverless Devs部署 Python3 HTTP 案例到阿里云函数计算。
44

55
整个实验过程包括:
6-
- [下载工具](#下载工具)
7-
- [配置密钥](#配置密钥)
8-
- [初始化项目](#初始化项目)
9-
- [部署项目](#部署项目)
10-
- [更多信息](#更多信息)
11-
12-
> - [:octocat: 源代码](https://github.com/devsapp/start-fc/tree/main/http-function/fc-http-python3.6/src)
6+
- [快速体验 Python3 HTTP 函数案例](#快速体验-python3-http-函数案例)
7+
- [下载工具](#下载工具)
8+
- [配置密钥](#配置密钥)
9+
- [初始化项目](#初始化项目)
10+
- [部署项目](#部署项目)
11+
- [更多信息](#更多信息)
12+
13+
> - [:octocat: 源代码](https://github.com/devsapp/start-fc/tree/main/http-function/fc-http-python3/src)
1314
1415
## 下载工具
1516

File renamed without changes.

http-function/fc-http-python3.6/publish.yaml renamed to http-function/fc-http-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-http-python3
3-
Version: 1.1.22
3+
Version: 1.1.23
44
Provider:
55
- 阿里云
6-
Description: 快速部署一个 Python 3.6 的 HTTP 类型的 Hello World 函数到阿里云函数计算。
6+
Description: 快速部署一个 Python 3 的 HTTP 类型的 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-http-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.9
69+
- python3.10
70+
- python3.6
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.

http-function/fc-http-python3.6/readme.md renamed to http-function/fc-http-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 的 HTTP 类型的 Hello World 函数到阿里云函数计算。
17+
快速部署一个 Python 3 的 HTTP 类型的 Hello World 函数到阿里云函数计算。
1818

1919
</description>
2020

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

3434
# 代码 & 预览
3535

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

3838
</codepre>
3939

http-function/fc-http-python3.6/src/s.yaml renamed to http-function/fc-http-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

0 commit comments

Comments
 (0)