Skip to content
Snippets Groups Projects
Commit 31907dbd authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

Merge branch 'fix/py-package-publish' into 'master'

avoid rebuilding packages

See merge request to-be-continuous/python!82
parents 36b25576 0002705a
Branches
Tags
No related merge requests found
...@@ -511,8 +511,11 @@ variables: ...@@ -511,8 +511,11 @@ variables:
then then
maybe_install_poetry maybe_install_poetry
log_info "--- build packages (poetry)..." if [[ "$PYTHON_PACKAGE_ENABLED" != "true" ]]
poetry build ${TRACE+--verbose} then
log_info "--- build packages (poetry)..."
poetry build ${TRACE+--verbose}
fi
log_info "--- publish packages (poetry)..." log_info "--- publish packages (poetry)..."
poetry config repositories.user_defined "$PYTHON_REPOSITORY_URL" poetry config repositories.user_defined "$PYTHON_REPOSITORY_URL"
...@@ -521,9 +524,12 @@ variables: ...@@ -521,9 +524,12 @@ variables:
# shellcheck disable=SC2086 # shellcheck disable=SC2086
pip install ${PIP_OPTS} build twine pip install ${PIP_OPTS} build twine
log_info "--- build packages (build)..." if [[ "$PYTHON_PACKAGE_ENABLED" != "true" ]]
rm -rf dist then
python -m build log_info "--- build packages (build)..."
rm -rf dist
python -m build
fi
log_info "--- publish packages (twine)..." log_info "--- publish packages (twine)..."
twine upload ${TRACE+--verbose} --username "$PYTHON_REPOSITORY_USERNAME" --password "$PYTHON_REPOSITORY_PASSWORD" --repository-url "$PYTHON_REPOSITORY_URL" dist/* twine upload ${TRACE+--verbose} --username "$PYTHON_REPOSITORY_USERNAME" --password "$PYTHON_REPOSITORY_PASSWORD" --repository-url "$PYTHON_REPOSITORY_URL" dist/*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment