Skip to content

Commit 2c194e8

Browse files
authored
build: reorganize pip-compile wrapper files (#250)
1 parent 2cfa395 commit 2c194e8

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

File renamed without changes.

docs/user-guide/wrappers/pip-tools/pip-compile renamed to docs/user-guide/pip-compile/pip-compile.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,13 @@ case "$(uname)" in
2222
;;
2323
esac
2424

25-
docker build -t docker-papermc-server/pip-tools "${SCRIPT_DIR}"
25+
echo 'Building Docker image for pip-tools (should only take few seconds)'
26+
docker build --progress quiet -t docker-papermc-server/pip-tools "${SCRIPT_DIR}"
2627

28+
echo
29+
echo 'Running pip-compile:'
2730
docker run --rm --name docker-papermc-server-pip-compile \
2831
--volume="${CURRENT_DIR}:/run" \
2932
--workdir /run \
3033
docker-papermc-server/pip-tools \
31-
pip-compile --strip-extras --generate-hashes "$@"
34+
pip-compile --strip-extras "$@"

docs/user-guide/requirements.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ set -eu
55

66
SCRIPT_DIR=$(cd "$(dirname "$0")" > /dev/null 2>&1 && pwd -P)
77

8-
echo 'Compile the requirements.txt file using pip-tools...'
8+
echo 'Compile the requirements.txt file using pip-compile'
9+
echo
910

1011
cd "$SCRIPT_DIR"
11-
sh wrappers/pip-tools/pip-compile
12+
sh pip-compile/pip-compile.sh --generate-hashes

0 commit comments

Comments
 (0)