Skip to content

Commit

Permalink
Merge pull request #71 from devsapp/fix-python3-event
Browse files Browse the repository at this point in the history
python3 event example can choice runtime
  • Loading branch information
rsonghuster authored Jan 20, 2023
2 parents d8061e4 + 4fba776 commit 9afc7d6
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 95 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ Nuget*
.idea
node-v12.16.1-linux-x64*
nginx
index.py
.s_test*
84 changes: 0 additions & 84 deletions event-function/fc-event-python3.6/src/readme.md

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Type: Application
Name: start-fc-event-python3
Version: 1.1.22
Version: 1.1.23
Provider:
- 阿里云
Description: 快速部署一个 Python 3.6 的 Event 类型的 Hello World 函数到阿里云函数计算。
Description: 快速部署一个 Python 3 的 Event 类型的 Hello World 函数到阿里云函数计算。
HomePage: https://github.com/devsapp/start-fc
Tags:
- 函数计算
Expand All @@ -22,6 +22,7 @@ Parameters:
- region
- serviceName
- functionName
- runtime
properties:
region:
title: 地域
Expand Down Expand Up @@ -57,4 +58,13 @@ Parameters:
title: 函数名
type: string
default: start-fc-event-python3
description: 函数名称,只能包含字母、数字、下划线和中划线。不能以数字、中划线开头。长度在 1-64 之间
description: 函数名称,只能包含字母、数字、下划线和中划线。不能以数字、中划线开头。长度在 1-64 之间
runtime:
title: python 运行时
type: string
default: python3.9
description: 创建应用所在的地区
enum:
- python3.6
- python3.9
- python3.10
1 change: 1 addition & 0 deletions event-function/fc-event-python3/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<description>

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

</description>

Expand All @@ -33,7 +33,7 @@

# 代码 & 预览

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

</codepre>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ services:
function:
name: "{{ functionName }}"
description: 'hello world by serverless devs'
runtime: python3
runtime: "{{ runtime }}"
codeUri: ./code
handler: index.handler
memorySize: 128
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ services:
region: ${vars.region} # For the usage of variables, please refer to: https://www.serverless-devs.com/serverless-devs/yaml#Variable assignment
service: ${vars.service}
function:
name: custom-cpp-event-function
name: python3.9-event-function
description: 'hello world by serverless devs'
runtime: python3
runtime: python3.9
codeUri: ./code
handler: index.handler
memorySize: 128
Expand Down
File renamed without changes.
3 changes: 1 addition & 2 deletions update.list
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
custom-function/golang/fc-custom-golang-event
custom-function/golang/fc-custom-golang-http
event-function/fc-event-python3

0 comments on commit 9afc7d6

Please sign in to comment.