mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
chore(taskfile): include dotenv in templates
This commit is contained in:
@@ -6,8 +6,14 @@ set:
|
||||
- pipefail # -o pipefail
|
||||
|
||||
vars:
|
||||
# REPOSITORY_ROOT:
|
||||
# sh: git rev-parse --show-toplevel
|
||||
VENV_DIR: '{{ .ROOT_TASKFILE }}/.venv'
|
||||
|
||||
dotenv:
|
||||
- .env
|
||||
- .env.local
|
||||
|
||||
tasks:
|
||||
|
||||
dev-tools:bootstrap:
|
||||
@@ -26,7 +32,8 @@ tasks:
|
||||
REQUIREMENTS_FILE: '{{ .ROOT_TASKFILE }}/requirements.txt'
|
||||
cmds:
|
||||
- python{{ .PYTHON_VERSION }} -m 'venv' '{{ .VENV_DIR }}'
|
||||
- "{{.VENV_DIR}}/bin/pip --require-virtualenv install -r '{{.REQUIREMENTS_FILE}}'"
|
||||
- >-
|
||||
{{ .VENV_DIR }}/bin/pip --require-virtualenv install -r '{{ .REQUIREMENTS_FILE }}'
|
||||
|
||||
python:venv:recreate:
|
||||
cmds:
|
||||
|
||||
Reference in New Issue
Block a user