From 43f76a188856635a061a0b321868fba042bd3915 Mon Sep 17 00:00:00 2001 From: Piotr Maslanka <piotr.maslanka@henrietta.com.pl> Date: Sun, 8 Oct 2017 06:16:25 +0200 Subject: [PATCH] upload only once --- build.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 7aa0c0b..8f3de68 100644 --- a/build.sh +++ b/build.sh @@ -7,6 +7,9 @@ python compile_definitions.py python setup.py bdist bdist_wheel if [ $TRAVIS_BRANCH == "master" ]; then - pip install wheel twine - twine upload -u $PYPI_USER -p $PYPI_PWD dist/* + + if [ $TRAVIS_PYTHON_VERSION == "2.7" ]; then + pip install wheel twine + twine upload -u $PYPI_USER -p $PYPI_PWD dist/* + fi fi -- GitLab