diff --git a/.gitignore b/.gitignore index 74fa48d..fd9f31c 100644 --- a/.gitignore +++ b/.gitignore @@ -67,3 +67,6 @@ target/ # Virtualenv venv/ + +# Tox +.tox/ diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..3aad6cc --- /dev/null +++ b/.travis.yml @@ -0,0 +1,16 @@ +language: python +cache: pip +python: +- '2.7' +- '3.4' +- '3.5' +- '3.6' +install: +- pip install . +- pip install -r requirements-dev.txt +script: +- nosetests +notifications: + email: false + slack: + secure: hqbqt/zePs9ognCQT/IlLmRBpTxudSBR88GK/Qu0GOJZhuBsFvUbHaDKkTsIPYoLsZPKYss0tpKsRQJG0GlO8da7d/raR4gSNI5y0ypso5ttN+OgLf4pa1bUwz0Q39aDFcuSG9aZEU134hk19KYFxz3h+gLI5C51mnnm2qOK1goq+ZNTtIz42y7kxRnF4opExLS9+ZTUxV2eA5lEvgoju6PVXfu1CkzPZKZt3XXnl3G2LGo4pitemiOIBSiVHLuakLmZ5z7IyVTbsB2Sh+2HoTdvGpdxNJcy0wDbvnZ0ZE3otrCkggaTQJ8uMEygsx8JafmDCC3sAosCqftj+SG9bG9LSmypizmipNEClSq5iKEtniGhoR1Imzbk7b5yth6q3TETY/fYFt9hATDBbn+IS0ZD0kJaVfN5Tgi6fiFtKbHPl9XxdLDffPDv5/AvSlY0CaDpTeN8j3YkMHSyuSN+u+qyai5KTWi4b2WZDY5MklTO6/3Kems/rYatCYjthzW94Di2rNDxnESeUmWy94npRxYg+HBVlVO5kG/ujHwwT5jU6icOcIJrtQAnJfTApyrEvqYtHUw0WATq/aTSYDEwQvJtV9xPX1R3XuDSZ+MBXobo+nplStkMdo0FmHcYrwi0oAohnmMu0jFMuByoY8crawrKB3EC/0/BHJvRs6QTWSE= diff --git a/README.md b/README.md index 2dfeb2e..5530dcc 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,10 @@ # PyAPNs2 + +[![PyPI version](https://img.shields.io/pypi/v/apns2.svg)](https://pypi.python.org/pypi/apns2) +[![PyPI version](https://img.shields.io/pypi/pyversions/apns2.svg)](https://pypi.python.org/pypi/apns2) +[![Build Status](https://img.shields.io/travis/Pr0Ger/PyAPNs2.svg)](https://travis-ci.org/Pr0Ger/PyAPNs2) +[![Code Climate](https://img.shields.io/codeclimate/github/Pr0Ger/PyAPNs2.svg)](https://codeclimate.com/github/Pr0Ger/PyAPNs2) + Python library for interacting with the Apple Push Notification service (APNs) via HTTP/2 protocol ## Installation @@ -42,6 +48,13 @@ pip install -r requirements-dev.txt python -m unittest discover test ``` +You can use `tox` for running tests with all supported Python versions: +```shell +pyenv install 2.7.13 && pyenv install 3.3.6 && pyenv install 3.4.6 && pyenv install 3.5.3 & pyenv install 3.6.0 +pyenv local 3.6.0 3.5.3 3.4.6 3.3.6 2.7.13 +tox +``` + To run the linter: ```shell pip install pylint diff --git a/setup.py b/setup.py index 129963b..7c8719b 100755 --- a/setup.py +++ b/setup.py @@ -22,9 +22,10 @@ setup( classifiers=[ 'Development Status :: 4 - Beta', 'License :: OSI Approved :: MIT License', - 'Programming Language :: Python :: 3.3', + 'Programming Language :: Python :: 2.7' 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6' 'Topic :: Software Development :: Libraries', ], description='A python library for interacting with the Apple Push Notification Service via HTTP/2 protocol' diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..a63c8c7 --- /dev/null +++ b/tox.ini @@ -0,0 +1,11 @@ +[tox] +envlist = py27, py34, py35, py36 + +[testenv] +commands = nosetests [] + +deps = + nose + py27: mock + +usedevelop=True