chore: Rename and refactor poetry export script
This commit is contained in:
parent
b9be303668
commit
ff5ae1c59e
18
scripts/lock.sh → scripts/poetry-export.sh
Executable file → Normal file
18
scripts/lock.sh → scripts/poetry-export.sh
Executable file → Normal file
@ -1,11 +1,15 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
# file: lock.sh
|
# file: poetry-export.sh
|
||||||
# description: Lock dependencies and export requirements.
|
# description: Lock dependencies and export them as backward-compatible requirements.txt files.
|
||||||
|
|
||||||
echo -e "# THE FILE WAS GENERATED BY POETRY, DO NOT EDIT!\n\n" > src/requirements.txt
|
echo '[INFO] Updating poetry.lock file.'
|
||||||
echo -e "# THE FILE WAS GENERATED BY POETRY, DO NOT EDIT!\n\n" > src/requirements-dev.txt
|
|
||||||
poetry lock
|
poetry lock
|
||||||
poetry export --without-hashes -f requirements.txt >> src/requirements.txt
|
|
||||||
poetry export --dev --without-hashes -f requirements.txt >> src/requirements-dev.txt
|
|
||||||
|
|
||||||
|
echo '[INFO] Generating requirements.txt.'
|
||||||
|
echo -e "# THE FILE WAS GENERATED BY POETRY, DO NOT EDIT!\n\n" > src/requirements.txt
|
||||||
|
poetry export --without-hashes -f requirements.txt >> src/requirements.txt
|
||||||
|
|
||||||
|
echo '[INFO] Generating requirements-dev.txt.'
|
||||||
|
echo -e "# THE FILE WAS GENERATED BY POETRY, DO NOT EDIT!\n\n" > src/requirements-dev.txt
|
||||||
|
poetry export --dev --without-hashes -f requirements.txt >> src/requirements-dev.txt
|
||||||
echo "-e src/." >> src/requirements-dev.txt
|
echo "-e src/." >> src/requirements-dev.txt
|
||||||
Loading…
Reference in New Issue
Block a user