Added script to export requirements
This commit is contained in:
@@ -73,6 +73,12 @@
|
||||
"db-create".exec = "cd $REPO_ROOT && python src/migrate.py create";
|
||||
"build".exec = "cd $REPO_ROOT && ./build.sh";
|
||||
"backfill-images".exec = "cd $REPO_ROOT && python src/backfill_images.py";
|
||||
"export-requirements".exec = "pip freeze > requirements.txt";
|
||||
"export-reqs".exec = ''
|
||||
cd "$REPO_ROOT"
|
||||
printf "%s\n" '${config.languages.python.venv.requirements}' > requirements.txt
|
||||
echo "Wrote requirements.txt"
|
||||
'';
|
||||
};
|
||||
enterShell = ''
|
||||
export REPO_ROOT="$(git rev-parse --show-toplevel 2>/dev/null || pwd)"
|
||||
|
||||
Reference in New Issue
Block a user