diff --git a/.travis.yml b/.travis.yml index 624753a..a83df0c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/CHANGES.md b/CHANGES.md index 1d7a625..feadbac 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,9 @@ +v1.1.0 (2020-06-16) +=================== + + - Update tracking server domain. + + v1.0.1 (2015-03-27) =================== diff --git a/DESCRIPTION.rst b/DESCRIPTION.rst index f0843e7..df0eb16 100644 --- a/DESCRIPTION.rst +++ b/DESCRIPTION.rst @@ -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) diff --git a/KISSmetrics/__init__.py b/KISSmetrics/__init__.py index ee98cb3..b7091fb 100644 --- a/KISSmetrics/__init__.py +++ b/KISSmetrics/__init__.py @@ -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' @@ -23,7 +23,7 @@ __author__ = 'Ernest W. Durbin III ' __license__ = 'MIT' -__version__ = '1.0.1' +__version__ = '1.1.0' from .client import Client from .client_compat import ClientCompat diff --git a/KISSmetrics/client.py b/KISSmetrics/client.py index 9d2fb6c..1a16434 100644 --- a/KISSmetrics/client.py +++ b/KISSmetrics/client.py @@ -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 - `_. + `_. """ this_request = request.alias(self.key, person, identity, diff --git a/KISSmetrics/tests/test_kissmetrics.py b/KISSmetrics/tests/test_kissmetrics.py index a15ba99..0d05427 100644 --- a/KISSmetrics/tests/test_kissmetrics.py +++ b/KISSmetrics/tests/test_kissmetrics.py @@ -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' diff --git a/README.md b/README.md index fbec4c1..7ce340c 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/test-requirements.txt b/test-requirements.txt index b4ce471..9fed084 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,3 +1,3 @@ -r requirements.txt -pytest -pytest-cov +pytest>=5.4.3 +pytest-cov>=2.10.0