-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
40 lines (31 loc) · 821 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
commit:
npx --package cz-emoji-conventional --package commitizen -- cz
release:
npx --package @sladg/release-utils utils shipit --gitUser @sladg --gitEmail [email protected] --changelog
install:
poetry install && npm ci
package-dependencies:
poetry build
poetry run \
pip install \
--only-binary=:all: \
--python=3.8 \
--upgrade \
--implementation cp \
--platform manylinux2014_x86_64 \
--target=./python \
dist/*.whl
zip -q -r ./build/dependencies-layer.zip ./python
package-code:
zip -q -r ./build/code.zip ./imaginex_lambda/*
start:
poetry run python ./imaginex_lambda/handler.py
test:
poetry run pytest
# Pack the dependencies into a zip file and include code as separate zip file.
package:
rm -rf build
mkdir build
$(MAKE) package-dependencies
$(MAKE) package-code
npm run build