Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .coveralls.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ cache: pip
install:
- pip install -r dev_requirements.txt
script:
- py.test -lv --cov stream --cov-report term-missing
- py.test -lv --cov=./
after_script:
- "pep8 --exclude=migrations --ignore=E501,E225,W293 stream"
- "python setup.py install"

- "codecov"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
stream-python
=============

[![Build Status](https://travis-ci.org/GetStream/stream-python.svg?branch=master)](https://travis-ci.org/GetStream/stream-python) [![PyPI version](https://badge.fury.io/py/stream-python.svg)](http://badge.fury.io/py/stream-python)
[![Build Status](https://travis-ci.org/GetStream/stream-python.svg?branch=master)](https://travis-ci.org/GetStream/stream-python) [![codecov](https://codecov.io/gh/GetStream/stream-python/branch/master/graph/badge.svg)](https://codecov.io/gh/GetStream/stream-python) [![PyPI version](https://badge.fury.io/py/stream-python.svg)](http://badge.fury.io/py/stream-python)

[stream-python](https://github.com/GetStream/stream-python) is the official Python client for [Stream](https://getstream.io/), a web service for building scalable newsfeeds and activity streams.

Expand Down
4 changes: 2 additions & 2 deletions dev_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pytest==3.2.5
python-coveralls
unittest2
codecov==2.0.15
unittest2==1.1.0
pytest-cov==2.5.1
python-dateutil
-e .
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
'six>=1.8.0'
]

if sys.version_info < (2, 7, 0):
install_requires.append('pyOpenSSL<18.0.0')

class PyTest(TestCommand):

def finalize_options(self):
Expand All @@ -47,7 +50,7 @@ def run_tests(self):
# import here, cause outside the eggs aren't loaded
import pytest
errno = pytest.main(
'--cov stream --cov-report term-missing -v')
'-v --cov=./')
sys.exit(errno)

setup(
Expand Down
2 changes: 1 addition & 1 deletion stream/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ def create_redirect_url(self, target_url, user_id, events):
getstream.io/personalization
'''
# generate the JWT token
auth_token = self.create_jwt_token('redirect_and_track', '*', user_id=user_id)
auth_token = self.create_jwt_token('redirect_and_track', '*', '*', user_id=user_id)
# setup the params
params = dict(auth_type='jwt', authorization=auth_token, url=target_url)
params['api_key'] = self.api_key
Expand Down
1 change: 1 addition & 0 deletions stream/tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1068,6 +1068,7 @@ def test_create_email_redirect(self):
self.assertEqual(decoded, {
'resource': 'redirect_and_track',
'action': '*',
'feed_id': '*',
'user_id': 'tommaso'
})

Expand Down