Skip to content

Commit 82ea0b6

Browse files
committed
chore(deps): upgrade to use serverless version 3
1 parent 8c5c232 commit 82ea0b6

File tree

4 files changed

+273
-43
lines changed

4 files changed

+273
-43
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Fetch question of today from Leetcode's GraphQL API and send it to Telegram chan
88

99
### Tech Stack
1010
* Python 3
11-
* [Serverless@2.63.0](https://www.npmjs.com/package/serverless)
11+
* [Serverless](https://www.npmjs.com/package/serverless)
1212
* AWS Lambda
1313
* AWS CloudFormation - Used by Serverless when doing deployment
1414
* AWS CloudWatch - Automatically Setup by Serverless when doing deployment

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "1.0.4",
44
"description": "Push notification to Telegram channel for Leetcode's question of today",
55
"dependencies": {
6-
"serverless-python-requirements": "^5.1.1"
6+
"serverless-python-requirements": "^5.4.0"
77
},
88
"scripts": {},
99
"author": "Ice Lam",

serverless.yml

+8-9
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22

33
service: leetcode-daily-question-telegram-bot
44

5-
frameworkVersion: "2"
5+
frameworkVersion: "3"
66

77
provider:
88
name: aws
99
runtime: python3.9
10-
lambdaHashingVersion: 20201221
1110
environment:
1211
TELEGRAM_TOKEN: ${env:TELEGRAM_TOKEN}
1312
TELEGRAM_CHAT_ID: ${env:TELEGRAM_CHAT_ID}
@@ -21,13 +20,13 @@ functions:
2120
- schedule: cron(1 0 * * ? *)
2221

2322
package:
24-
exclude:
25-
- venv/**
26-
- node_modules/**
27-
- '**/__pycache__/**'
28-
- .github/**
29-
- .editorconfig
30-
- .nvmrc
23+
patterns:
24+
- '!venv/**'
25+
- '!node_modules/**'
26+
- '!**/__pycache__/**'
27+
- '!.github/**'
28+
- '!.editorconfig'
29+
- '!.nvmrc'
3130

3231
# Handling python packages: https://www.serverless.com/blog/serverless-python-packaging
3332
plugins:

0 commit comments

Comments
 (0)