Code Review
/
releng
/
global-jjb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Update regexp in lf-infra-ship-logs macro
[releng/global-jjb.git]
/
shell
/
pypi-dist-build.sh
diff --git
a/shell/pypi-dist-build.sh
b/shell/pypi-dist-build.sh
index
eb10371
..
9341a1f
100644
(file)
--- a/
shell/pypi-dist-build.sh
+++ b/
shell/pypi-dist-build.sh
@@
-16,18
+16,26
@@
echo "---> pypi-dist-build.sh"
# Ensure we fail the job if any steps fail.
set -eu -o pipefail
# Ensure we fail the job if any steps fail.
set -eu -o pipefail
+echo "INFO: creating virtual environment"
virtualenv -p python3 /tmp/pypi
PATH=/tmp/pypi/bin:$PATH
virtualenv -p python3 /tmp/pypi
PATH=/tmp/pypi/bin:$PATH
+pipup="python -m pip install -q --upgrade setuptools twine wheel"
+echo "INFO: $pipup"
+$pipup
bdist=""
if $BUILD_BDIST_WHEEL; then
bdist=""
if $BUILD_BDIST_WHEEL; then
- echo "INFO: installing wheel to build binary distribution"
- pip install wheel
+ echo "INFO: adding wheel to build binary distribution"
bdist="bdist_wheel"
fi
echo "INFO: cd to tox-dir $TOX_DIR"
cd "$WORKSPACE/$TOX_DIR"
bdist="bdist_wheel"
fi
echo "INFO: cd to tox-dir $TOX_DIR"
cd "$WORKSPACE/$TOX_DIR"
+
echo "INFO: creating distributions"
python3 setup.py sdist $bdist
echo "INFO: creating distributions"
python3 setup.py sdist $bdist
+
+echo "INFO: checking distributions"
+twine check dist/*
+
echo "---> pypi-dist-build.sh ends"
echo "---> pypi-dist-build.sh ends"