From 2e803bb293084bcdfb57bcb8cbdfb49199799466 Mon Sep 17 00:00:00 2001 From: mzwiessele Date: Thu, 14 Apr 2016 07:42:30 +0100 Subject: [PATCH] [setup] pypi restrictions --- .travis.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3cf32212..c3955e43 100644 --- a/.travis.yml +++ b/.travis.yml @@ -47,9 +47,11 @@ before_deploy: - make html - cd ../ - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; - then export DIST='sdist'; + then + export DIST='sdist'; elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; - then export DIST='bdist_wheel'; + then + export DIST='bdist_wheel'; fi; deploy: @@ -60,5 +62,6 @@ deploy: on: tags: true branch: deploy + condition: "$TRAVIS_OS_NAME" == "osx" || ( "$TRAVIS_OS_NAME" == "linux" && "$PYTHON_VERSION" == "2.7" ) distributions: $DIST skip_cleanup: true