Skip to content

Commit

Permalink
chore: add travis deployment and update ZK versions
Browse files Browse the repository at this point in the history
Add's automatic PyPI release based on tags. The versions of
Zookeeper are now the latest stable releases for 3.4.

Closes #436
  • Loading branch information
bbangert committed Jun 1, 2017
1 parent 2c0374a commit 7d5d59c
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 54 deletions.
108 changes: 56 additions & 52 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,66 +1,70 @@
sudo: false

addons:
apt:
packages:
- libevent-dev

cache:
directories:
- $HOME/.cache/pip
- zookeeper

- "$HOME/.cache/pip"
- zookeeper
language: python
python:
- "2.7"
- '2.7'
matrix:
exclude:
- python: "2.7"
include:
- python: "2.6"
env: ZOOKEEPER_VERSION=3.3.6 TOX_VENV=py26
- python: "2.6"
env: ZOOKEEPER_VERSION=3.4.6 TOX_VENV=py26
- python: "2.6"
env: ZOOKEEPER_VERSION=3.3.6 TOX_VENV=py26-gevent
- python: "2.6"
env: ZOOKEEPER_VERSION=3.4.6 TOX_VENV=py26-gevent
- python: "2.6"
env: ZOOKEEPER_VERSION=3.3.6 TOX_VENV=py26-eventlet
- python: "2.6"
env: ZOOKEEPER_VERSION=3.4.6 TOX_VENV=py26-eventlet
- python: "2.7"
env: ZOOKEEPER_VERSION=3.3.6 TOX_VENV=py27
- python: "2.7"
env: ZOOKEEPER_VERSION=3.4.6 TOX_VENV=py27
- python: "2.7"
env: ZOOKEEPER_VERSION=3.3.6 TOX_VENV=py27-gevent
- python: "2.7"
env: ZOOKEEPER_VERSION=3.4.6 TOX_VENV=py27-gevent
- python: "2.7"
env: ZOOKEEPER_VERSION=3.3.6 TOX_VENV=py27-eventlet
- python: "2.7"
env: ZOOKEEPER_VERSION=3.4.6 TOX_VENV=py27-eventlet
- python: "2.7"
env: ZOOKEEPER_VERSION=3.5.0-alpha TOX_VENV=py27
- python: "3.3"
env: ZOOKEEPER_VERSION=3.3.6 TOX_VENV=py33
- python: "3.3"
env: ZOOKEEPER_VERSION=3.4.6 TOX_VENV=py33
- python: "3.4"
env: ZOOKEEPER_VERSION=3.3.6 TOX_VENV=py34
- python: "3.4"
env: ZOOKEEPER_VERSION=3.4.6 TOX_VENV=py34
- python: "pypy"
env: ZOOKEEPER_VERSION=3.3.6 TOX_VENV=pypy
- python: "pypy"
env: ZOOKEEPER_VERSION=3.4.6 TOX_VENV=pypy

exclude:
- python: '2.7'
include:
- python: '2.6'
env: ZOOKEEPER_VERSION=3.3.6 TOX_VENV=py26
- python: '2.6'
env: ZOOKEEPER_VERSION=3.4.10 TOX_VENV=py26
- python: '2.6'
env: ZOOKEEPER_VERSION=3.3.6 TOX_VENV=py26-gevent
- python: '2.6'
env: ZOOKEEPER_VERSION=3.4.10 TOX_VENV=py26-gevent
- python: '2.6'
env: ZOOKEEPER_VERSION=3.3.6 TOX_VENV=py26-eventlet
- python: '2.6'
env: ZOOKEEPER_VERSION=3.4.10 TOX_VENV=py26-eventlet
- python: '2.7'
env: ZOOKEEPER_VERSION=3.3.6 TOX_VENV=py27
- python: '2.7'
env: ZOOKEEPER_VERSION=3.4.10 TOX_VENV=py27
- python: '2.7'
env: ZOOKEEPER_VERSION=3.3.6 TOX_VENV=py27-gevent
- python: '2.7'
env: ZOOKEEPER_VERSION=3.4.10 TOX_VENV=py27-gevent
- python: '2.7'
env: ZOOKEEPER_VERSION=3.3.6 TOX_VENV=py27-eventlet
- python: '2.7'
env: ZOOKEEPER_VERSION=3.4.10 TOX_VENV=py27-eventlet
- python: '2.7'
env: ZOOKEEPER_VERSION=3.5.2-alpha TOX_VENV=py27
- python: '3.3'
env: ZOOKEEPER_VERSION=3.3.6 TOX_VENV=py33
- python: '3.3'
env: ZOOKEEPER_VERSION=3.4.10 TOX_VENV=py33
- python: '3.4'
env: ZOOKEEPER_VERSION=3.3.6 TOX_VENV=py34
- python: '3.4'
env: ZOOKEEPER_VERSION=3.4.10 TOX_VENV=py34
- python: pypy
env: ZOOKEEPER_VERSION=3.3.6 TOX_VENV=pypy
- python: pypy
env: ZOOKEEPER_VERSION=3.4.10 TOX_VENV=pypy
notifications:
email: false

install:
- pip install tox

- pip install tox
script:
- make test
- make test
deploy:
provider: pypi
user: bbangert
password:
secure: L9yXZ2PhQ2wJKQkgigIzW3f/a3ajzUamMdThVelcp/NZeTJfzlC/t89lfSRwLh95o9Z/aIxC4T8yZvNrRzzyMEP0O6s1F69pVm5Px+KBuv82lmI7p5sKTYPp35CE9jH+K/52Fy0+Az5F502xLrkaO4VLLA+zhLffw/qyvNbZui0=
on:
tags: true
python: 3.4
distributions: release
skip_upload_docs: true
2 changes: 1 addition & 1 deletion ensure-zookeeper-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e

HERE=`pwd`
ZOO_BASE_DIR="$HERE/zookeeper"
ZOOKEEPER_VERSION=${ZOOKEEPER_VERSION:-3.4.6}
ZOOKEEPER_VERSION=${ZOOKEEPER_VERSION:-3.4.10}
ZOOKEEPER_PATH="$ZOO_BASE_DIR/$ZOOKEEPER_VERSION"
ZOO_MIRROR_URL="http://archive.apache.org/dist"

Expand Down
5 changes: 4 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
[aliases]
clean_egg_info = egg_info -RDb ''
release = clean_egg_info sdist bdist_wheel

[bdist_wheel]
universal = 1

Expand All @@ -12,4 +16,3 @@ nocapture = 1
cover-erase = 1
where = kazoo
cover-inclusive = 1

0 comments on commit 7d5d59c

Please sign in to comment.