language: python
dist: xenial
python:
- '2.7'
- '3.5'
- '3.6'
- '3.7'
before_install:
- export BOTO_CONFIG=/dev/null
install:
- pip install pycryptodome==3.6.1
- python setup.py install
- pip freeze
before_script:
- pip install flake8 && flake8 kale example --max-line-length 100 --ignore=E731,E402
script:
- python setup.py test
deploy:
  - provider: pypi
    user: nextdoor
    password:
      secure: n7GczuIQKUzBnRtO6qki3UgWgR4f0J32IrYNqb1WQR3qoBusY1CYunXNvKPTU6AVM5wP98JhQTXaDfFUUWGUGcpQWPZDbrqjszw/plL7kUggjcm2KbD+b9n7cfRzlBlTvrdFq6jO0X6zrm/HYbjr1viJEz65JDsNUfPVfLryJ+U=
    on:
      tags: true
      all_branches: true
      condition: "$TRAVIS_TAG =~ ^version-[0-9]+.[0-9]+.[0-9]+[a-z]?$"
    distributions: sdist bdist_wheel

language: python
dist: xenial
python:
- '2.7'
- '3.5'
- '3.6'
- '3.7'
before_install:
- export BOTO_CONFIG=/dev/null
install:
- pip install pycryptodome==3.6.6
- python setup.py install
- pip freeze
before_script:
- pip install flake8 && flake8 kale example --max-line-length 100 --ignore=E731,E402
script:
- python setup.py test
deploy:
  - provider: pypi
    user: nextdoor
    password:
      secure: n7GczuIQKUzBnRtO6qki3UgWgR4f0J32IrYNqb1WQR3qoBusY1CYunXNvKPTU6AVM5wP98JhQTXaDfFUUWGUGcpQWPZDbrqjszw/plL7kUggjcm2KbD+b9n7cfRzlBlTvrdFq6jO0X6zrm/HYbjr1viJEz65JDsNUfPVfLryJ+U=
    on:
      tags: true
      all_branches: true
      condition: "$TRAVIS_TAG =~ ^version-[0-9]+.[0-9]+.[0-9]+[a-z]?$"
    distributions: sdist bdist_wheel

Use pycryptodome 3.6.6 on Travis
Use pycryptodome 3.6.6 on Travis

We were pinned to 3.6.1 because of https://github.com/Legrandin/pycryptodome/issues/198, which is fixed in 3.6.6