Skip to content

Commit

Permalink
Merge pull request #31 from kissmetrics/nw/update-tracking-server-domain
Browse files Browse the repository at this point in the history
Update tracking server domain
  • Loading branch information
NathanielWroblewski committed Jun 17, 2020
2 parents 705bf3f + bcc4971 commit 11cfc58
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 17 deletions.
14 changes: 6 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
language: python
dist: trusty
python:
- "2.6"
- "2.7"
- "3.2"
- "3.3"
- "3.4"
- "pypy"
- "3.5"
- "3.6"
- "pypy3"
# command to install dependencies
install:
- pip install -r test-requirements.txt --use-mirrors
- pip install coveralls --use-mirrors
- pip install -r test-requirements.txt
- pip install coveralls==2.0.0
# command to run tests
script:
- py.test
Expand Down
6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
v1.1.0 (2020-06-16)
===================

- Update tracking server domain.


v1.0.1 (2015-03-27)
===================

Expand Down
4 changes: 2 additions & 2 deletions DESCRIPTION.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ py-KISSmetrics

KISSmetrics tracking API wrapper for Python

A description of the API can be found at: http://support.kissmetrics.com/apis/specifications.html
A description of the API can be found at: https://support.kissmetrics.io/reference#api-specifications-1

Support for:
- Python 2.6, 2.7, 3.2, 3.3
- Python 3.5, 3.6

Also tested against:
- PyPy (Generally the latest release)
Expand Down
4 changes: 2 additions & 2 deletions KISSmetrics/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-

#: Default host for tracking service endpoint
TRACKING_HOSTNAME = 'trk.kissmetrics.com'
TRACKING_HOSTNAME = 'trk.kissmetrics.io'

#: Default scheme for requests to tracking service endpoint
TRACKING_SCHEME = 'http'
Expand All @@ -23,7 +23,7 @@

__author__ = 'Ernest W. Durbin III <ewdurbin@gmail.com>'
__license__ = 'MIT'
__version__ = '1.0.1'
__version__ = '1.1.0'

from .client import Client
from .client_compat import ClientCompat
Expand Down
2 changes: 1 addition & 1 deletion KISSmetrics/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def alias(self, person, identity, path=KISSmetrics.ALIAS_PATH):
change per request or per session).
For more information see the API Specifications on `Aliasing
<http://support.kissmetrics.com/apis/specifications.html#aliasing-users>`_.
<https://support.kissmetrics.io/reference#api-specifications-1>`_.
"""
this_request = request.alias(self.key, person, identity,
Expand Down
2 changes: 1 addition & 1 deletion KISSmetrics/tests/test_kissmetrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def test_client_compat_http_object(self):
assert http.request('GET', 'http://httpbin.org').status == 200

def test_client_compat_scheme(self):
self.assertRaises(ValueError, KISSmetrics.ClientCompat, key='foo', host='trk.kissmetrics.com:22')
self.assertRaises(ValueError, KISSmetrics.ClientCompat, key='foo', host='trk.kissmetrics.io:22')

def test_client_compat_log_file(self):
assert self.client.log_file() == '/tmp/kissmetrics_error.log'
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ py-KISSmetrics
KISSmetrics tracking API wrapper for Python

Support for:
- Python 2.6, 2.7, 3.2, 3.3, 3.4
- Python 3.5, 3.6

Also tested against:
- PyPy (Generally the latest release)
Expand Down
4 changes: 2 additions & 2 deletions test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
-r requirements.txt
pytest
pytest-cov
pytest>=5.4.3
pytest-cov>=2.10.0

0 comments on commit 11cfc58

Please sign in to comment.