fix PyPI deploy to only deploy condtionally (#40)

* deploy pypi conditionally (if branch = master)

* bump verison
This commit is contained in:
Dave Gallant
2019-10-16 22:19:30 -04:00
committed by GitHub
parent e865b950c4
commit 4fbeef7c60
2 changed files with 32 additions and 22 deletions

View File

@@ -1,14 +1,13 @@
language: python
sudo: false
python:
- '2.7'
- '3.5'
- '3.6'
matrix:
include:
- python: 3.7
dist: xenial
sudo: true
sudo: false
cache: false
python: "3.7"
stages:
- name: deploy
if: branch = master
before_install:
- pip install -U pip
install:
@@ -17,7 +16,18 @@ install:
- git diff --name-only $TRAVIS_COMMIT_RANGE | xargs pre-commit run --files
script:
- tox
deploy:
jobs:
include:
- python: 2.7
- python: 3.5
- python: 3.6
- python: 3.7
- stage: deploy
on:
branch: master
provider: pypi

View File

@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
version = "0.3.1"
version = "0.3.2"