From f0b5ed4da719b1bb502fb2b04f6847195eb7ac59 Mon Sep 17 00:00:00 2001 From: Nathaniel Wroblewski Date: Tue, 16 Jun 2020 17:00:35 -0400 Subject: [PATCH 1/3] Update tracking server domain --- DESCRIPTION.rst | 2 +- KISSmetrics/__init__.py | 2 +- KISSmetrics/client.py | 2 +- KISSmetrics/tests/test_kissmetrics.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/DESCRIPTION.rst b/DESCRIPTION.rst index f0843e7..2ac0ad6 100644 --- a/DESCRIPTION.rst +++ b/DESCRIPTION.rst @@ -3,7 +3,7 @@ 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 diff --git a/KISSmetrics/__init__.py b/KISSmetrics/__init__.py index ee98cb3..16c7f36 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' 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' From 01778fb87ecf5aa4510d09e4b51d46a4809c9c7d Mon Sep 17 00:00:00 2001 From: Nathaniel Wroblewski Date: Tue, 16 Jun 2020 17:59:12 -0400 Subject: [PATCH 2/3] Bump version --- CHANGES.md | 6 ++++++ KISSmetrics/__init__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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/KISSmetrics/__init__.py b/KISSmetrics/__init__.py index 16c7f36..b7091fb 100644 --- a/KISSmetrics/__init__.py +++ b/KISSmetrics/__init__.py @@ -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 From bcc49710a3f5982470928533e65d5fa8ff02ffc1 Mon Sep 17 00:00:00 2001 From: Nathaniel Wroblewski Date: Wed, 17 Jun 2020 15:43:21 -0400 Subject: [PATCH 3/3] Repair CI/CD --- .travis.yml | 14 ++++++-------- DESCRIPTION.rst | 2 +- README.md | 2 +- test-requirements.txt | 4 ++-- 4 files changed, 10 insertions(+), 12 deletions(-) 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/DESCRIPTION.rst b/DESCRIPTION.rst index 2ac0ad6..df0eb16 100644 --- a/DESCRIPTION.rst +++ b/DESCRIPTION.rst @@ -6,7 +6,7 @@ KISSmetrics tracking API wrapper for Python 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/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