Skip to content

Commit 9842d67

Browse files
committed
Use pipenv in serverless packaging (#254)
1 parent f13a423 commit 9842d67

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

.github/workflows/lambda.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,8 @@ jobs:
5151
python-version: "3.13"
5252
architecture: "x64"
5353
cache: "pipenv"
54-
cache-dependency-path: Pipfile.lock
55-
- name: Install pipenv & create dependencies
56-
run: |
57-
pip install --prefer-binary -r requirements.txt
58-
pipenv install
59-
pipenv requirements > requirements.txt
54+
- name: Install pipenv
55+
run: pip install --prefer-binary -r requirements.txt
6056
- name: Setup Node.js
6157
uses: actions/setup-node@v5
6258
with:

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@
4646
- Deploy lambda with Serverless
4747
1. Start Docker
4848
2. Activate virtual environment if not active `pipenv shell`
49-
3. Create deps `pipenv requirements > src/requirements.txt`
50-
4. Deploy `npm run deploy`
49+
3. Deploy `npm run deploy`
5150

5251
- Deploy other resources with Pulumi
5352
1. Setup stacks `Pulumi.{stack-name}.yml`

package-lock.json

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

serverless.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ plugins:
4444
custom:
4545
pythonRequirements:
4646
dockerizePip: true
47-
fileName: src/requirements.txt
47+
usePipenv: true
48+
slim: true
4849

4950
package:
5051
patterns:

0 commit comments

Comments
 (0)