language: python

# test against multiple versions
python:
  - "3.4"
  - "3.5"
  - "nightly" # currently points to 3.6-dev

# command to install dependencies
install: "pip install -e ."

# command to run tests
script: py.test

# deploy on pypi
deploy:
  provider: pypi
  user: $PYPI_USER
  password: $PYPI_PASS
  on:
    tags: true

language: python

# test against multiple versions
python:
  - "3.4"
  - "3.5"
  - "nightly" # currently points to 3.6-dev

# command to install dependencies
install: "pip install -e ."

# command to run tests
script: py.test

# deploy on pypi
deploy:
  provider: pypi
  user: $PYPI_USER
  password: $PYPI_PASS
  on:
    tags: true
    python: "3.5"

Add version restriction in Travis
Add version restriction in Travis

Only allow py35 version to be pushed to pypi.
