init
This commit is contained in:
parent
ad02f5622c
commit
935addf001
@ -56,7 +56,7 @@ spec:
|
|||||||
cd "$(params.subdirectory)"
|
cd "$(params.subdirectory)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pip install --upgrade pip
|
pip install --upgrade pip --root-user-action=ignore
|
||||||
|
|
||||||
PYPI_USER="$(params.pypi-username)"
|
PYPI_USER="$(params.pypi-username)"
|
||||||
PYPI_PASS="$(params.pypi-password)"
|
PYPI_PASS="$(params.pypi-password)"
|
||||||
@ -71,7 +71,7 @@ spec:
|
|||||||
|
|
||||||
if [ -f pyproject.toml ]; then
|
if [ -f pyproject.toml ]; then
|
||||||
echo "[INFO] Poetry project detected"
|
echo "[INFO] Poetry project detected"
|
||||||
pip install poetry
|
pip install poetry --root-user-action=ignore
|
||||||
poetry config virtualenvs.in-project true
|
poetry config virtualenvs.in-project true
|
||||||
|
|
||||||
if [ -n "$PYPI_URL" ]; then
|
if [ -n "$PYPI_URL" ]; then
|
||||||
|
@ -58,7 +58,7 @@ spec:
|
|||||||
cd "$(params.subdirectory)"
|
cd "$(params.subdirectory)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pip install --upgrade pip
|
pip install --upgrade pip --root-user-action=ignore
|
||||||
|
|
||||||
PYPI_USER="$(params.pypi-username)"
|
PYPI_USER="$(params.pypi-username)"
|
||||||
PYPI_PASS="$(params.pypi-password)"
|
PYPI_PASS="$(params.pypi-password)"
|
||||||
@ -74,7 +74,7 @@ spec:
|
|||||||
if [ -f pyproject.toml ]; then
|
if [ -f pyproject.toml ]; then
|
||||||
echo "[INFO] Poetry project detected"
|
echo "[INFO] Poetry project detected"
|
||||||
|
|
||||||
pip install poetry
|
pip install poetry --root-user-action=ignore
|
||||||
poetry config virtualenvs.in-project true
|
poetry config virtualenvs.in-project true
|
||||||
|
|
||||||
if [ -n "$PYPI_URL" ]; then
|
if [ -n "$PYPI_URL" ]; then
|
||||||
|
@ -51,8 +51,8 @@ spec:
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
pip install --upgrade pip
|
pip install --upgrade pip --root-user-action=ignore
|
||||||
pip install poetry twine
|
pip install poetry twine --root-user-action=ignore
|
||||||
|
|
||||||
# 기본값 (params)
|
# 기본값 (params)
|
||||||
TWINE_USERNAME="$(params.pypi-username)"
|
TWINE_USERNAME="$(params.pypi-username)"
|
||||||
|
@ -53,12 +53,12 @@ spec:
|
|||||||
cd "$(params.subdirectory)"
|
cd "$(params.subdirectory)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pip install --upgrade pip
|
pip install --upgrade pip --root-user-action=ignore
|
||||||
pip install pytest
|
pip install pytest
|
||||||
|
|
||||||
if [ -f pyproject.toml ]; then
|
if [ -f pyproject.toml ]; then
|
||||||
echo "[INFO] Using Poetry to install dependencies"
|
echo "[INFO] Using Poetry to install dependencies"
|
||||||
pip install poetry
|
pip install poetry --root-user-action=ignore
|
||||||
poetry config virtualenvs.in-project true
|
poetry config virtualenvs.in-project true
|
||||||
poetry lock --no-cache --regenerate
|
poetry lock --no-cache --regenerate
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user