Skip to content

Commit e01efac

Browse files
Update deps + justfile
New deps tasks
1 parent fd7b5c7 commit e01efac

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

justfile

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
set dotenv-load
99

1010
# set env var
11-
export APP := `echo ${APP}`
11+
export APP := `echo ${APP_NAME}`
1212
export CPU := `echo ${CPU}`
1313
export IMAGE := `echo ${IMAGE}`
1414
export MEM := `echo ${MEM}`
@@ -37,6 +37,22 @@ docker-compose := if `command -v docker-compose; echo $?` == "0" {
3737
default:
3838
just --list
3939

40+
# [deps] Update dependencies
41+
update-deps:
42+
#!/usr/bin/env bash
43+
# set -euxo pipefail
44+
find . -maxdepth 3 -name "pyproject.toml" -exec \
45+
echo "[{}]" \; -exec \
46+
poetry update --no-ansi --lock \;
47+
48+
# [deps] Export requirements.txt
49+
export-reqs: update-deps
50+
#!/usr/bin/env bash
51+
# set -euxo pipefail
52+
find . -maxdepth 3 -name "pyproject.toml" -exec \
53+
printf "%s\n\n" "[{}]" \; -exec \
54+
poetry export --no-ansi --without-hashes --output requirements.txt \;
55+
4056
# [git] update git submodules
4157
sub:
4258
git submodule update --init --recursive && git pull --recurse-submodules

0 commit comments

Comments
 (0)