<commit_before>sudo: false
language: python
python:
  - 2.7
  - 3.4
  - 3.5
install:
  - pip install --upgrade pip setuptools wheel
  - pip install tox-travis
  # Travis by default only clones a 'shallow' repository with --depth=50.
  # When building the distribution packages, we use git to determine the
  # package version string (via setuptools_scm), hence we need to fetch
  # the whole repo, and not just the last 50 commits.
  - if [[ $TRAVIS_PYTHON_VERSION == 3.5 ]]; then git fetch --unshallow; fi
script: tox
after_success:
  - pip wheel --no-deps -w dist .
  - python setup.py sdist
before_deploy:
  - export ZIP=$(ls dist/booleanOperations*.zip)
  - export WHL=$(ls dist/booleanOperations*.whl)
deploy:
  # deploy to Github Releases on tags
  - provider: releases
    api_key:
      secure: <KEY>
    file:
      - "${ZIP}"
      - "${WHL}"
    skip_cleanup: true
    on:
      repo: typemytype/booleanOperations
      tags: true
      all_branches: true
      python: 3.5
  # deploy to PyPI on tags
  - provider: pypi
    server: https://upload.pypi.org/legacy/
    on:
      repo: typemytype/booleanOperations
      tags: true
      all_branches: true
      python: 3.5
    user: anthrotype
    password:
      secure: <KEY>
    distributions: sdist bdist_wheel<commit_msg>[travis] create distributions in before_deploy stage; use glob pattern dist/* to upload to github releases<commit_after>sudo: false
language: python
python:
  - 2.7
  - 3.4
  - 3.5
install:
  - pip install --upgrade pip setuptools wheel
  - pip install tox-travis
  # Travis by default only clones a 'shallow' repository with --depth=50.
  # When building the distribution packages, we use git to determine the
  # package version string (via setuptools_scm), hence we need to fetch
  # the whole repo, and not just the last 50 commits.
  - if [[ $TRAVIS_PYTHON_VERSION == 3.5 ]]; then git fetch --unshallow; fi
script: tox
before_deploy:
  - python setup.py sdist bdist_wheel
deploy:
  # deploy to Github Releases on tags
  - provider: releases
    api_key:
      secure: <KEY>
    file_glob: true
    file: "dist/*"
    skip_cleanup: true
    on:
      repo: typemytype/booleanOperations
      tags: true
      all_branches: true
      python: 3.5
  # deploy to PyPI on tags
  - provider: pypi
    server: https://upload.pypi.org/legacy/
    on:
      repo: typemytype/booleanOperations
      tags: true
      all_branches: true
      python: 3.5
    user: anthrotype
    password:
      secure: B6rFOTA8ol1kt210q7USDVOzLFWUyMIwdZuaUdejYmUb0CXK6W8kKj0H01yBCgjkhtew9YEQSB62jFiGUOJH9L8JjpJO2RG8cHIIblXQfQ5DXogmcEtsAFotQz0o3UO/SYJaMY917XsPCqw3MTgksd2NWwO7H3YCjaWntN4zZxyTWowGr2Vhbj9s8e+MGMtrZ3Is91AcoXNI7HPj2oVhAtPP5GGpceIP7JlOGdHGUFJKuwJLRKVjEURWXN6ZOQNoxuG6KdkpGtJYCFgRCW65e48WpQs8lts/ByyOMyRItPIPI+K/cPOaIvZ7IUhu9SueBgKcW2YVzQrPzD07N5Lhb4LaKhqgMwpy7oWntnpO0/Xes7bonAoDYKPz7O3O3zl57fy1sVhGXZZNoGUfwyFz1PPecONavRpDQYCMEOq8BcENT86mf0xbAvtmTvBgos8NknmZ35ckUkyrye8t058CwW0yhEO2Pr36XPKoEP9EAiq2YRvINPYnI1T3jTPUUwnc3IAv4zQvPUKWqs2/hEVy8FTCz/0hBgDv2cs4pRcofTzfXSczGMfyuNS3i4n3CHc4FEOYP9MuEWGDC7KF4MVNsBWbh5pkISwhIwNbW1UDept2k+Dmb9XrSoCt5aSvEPJVT3YTA4qTGSUQvhzj1SvXi3s2lh+1WbibEJqNfpdobGg=
    distributions: sdist bdist_wheel
{'fraction_non_alphanumeric': 0.07423580786026202, 'fraction_numerical': 0.04398003742981909, 'mean_word_length': 3.709251101321586, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6106499', 'n_tokens_mistral': 1389, 'n_tokens_neox': 1312, 'n_words': 277}