language: python

python:
  - "3.5"
  - "3.6"

sudo: required
dist: trusty

before_install:
  - sudo apt-get update
  - sudo apt-get install -qq qttools5-dev-tools
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start
  - sleep 3

install:
  - pip install -r requirements.txt

script:
  - python example/example_pyqt5.py --travis

# After you create the Github repo and add it to Travis, run the
# travis_pypi_setup.py script to finish PyPI deployment setup
deploy:
  provider: pypi
  distributions: "sdist bdist_wheel"
  user: mstuttgart
  password: $PYPI_PASSWORD
  on:
    tags: true
    repo: mstuttgart/qdarkgraystyle

language: python

python:
  - "3.5"
  - "3.6"

sudo: required
dist: trusty

before_install:
  - sudo apt-get update
  - sudo apt-get install -qq qttools5-dev-tools
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start
  - sleep 3

install:
  - pip install -r requirements.txt

script:
  - python example/example_pyqt5.py --travis

# After you create the Github repo and add it to Travis, run the
# travis_pypi_setup.py script to finish PyPI deployment setup
deploy:
  provider: pypi
  distributions: "sdist bdist_wheel"
  user: mstuttgart
  password: $PYPI_PASSWORD
  on:
    tags: true
    repo: mstuttgart/qdarkgraystyle
    branch: master
    python: '3.5'
Add python version condition in deploy section
[IMP] Add python version condition in deploy section
