dist: xenial
language: python

matrix:
  include:
    - python: 2.7
      env: TOXENV=py27
    - python: 3.4
      env: TOXENV=py34
    - python: 3.5
      env: TOXENV=py35
    - python: 3.6
      env: TOXENV=py36
    - python: 3.7
      env: TOXENV=py37
    - env: TOXENV=docs

install:
   - pip install tox

script:
   - tox

deploy:
   - provider: pypi
     user: ikalnytskyi
     password: $PYPI_PASSWORD
     on:
        tags: true
        distributions: sdist

notifications:
   email: false

dist: xenial
language: python

matrix:
  include:
    - python: 2.7
      env: TOXENV=py27
    - python: 3.4
      env: TOXENV=py34
    - python: 3.5
      env: TOXENV=py35
    - python: 3.6
      env: TOXENV=py36
    - python: 3.7
      env: TOXENV=py37
    - env: TOXENV=docs

install:
   - pip install tox

script:
   - tox

deploy:
   - provider: pypi
     user: $PYPI_USERNAME
     password: $PYPI_PASSWORD
     on:
        tags: true
        distributions: sdist

notifications:
   email: false

Use $PYPI_USERNAME from Travis CI envvar
Use $PYPI_USERNAME from Travis CI envvar

There two reasons why I want to see this change:

 1. Because I want everything be consistent and since PyPI password is
    set via environment variable, why shouldn't username?

 2. I started using PyPI tokens, and for tokens the username must be
    `__token__`. Hence, there was a need to update a username. Since
    tokens are in beta, there's a chance I'd need to rollback
    credentials change and I'd prefer to do it via Travis CI rather than
    Git.
