From d4fd76b3f1c6dbde2e37f1db6508d1d7a3bb151d Mon Sep 17 00:00:00 2001 From: Jack-Keene Date: Fri, 16 Jun 2023 14:18:43 +0100 Subject: [PATCH] Prepare for 1.0.0 release --- CHANGES.txt | 9 +++++++++ docs/source/conf.py | 2 +- setup.py | 11 +++++++++-- snowplow_tracker/_version.py | 2 +- snowplow_tracker/test/integration/test_integration.py | 10 +++++----- 5 files changed, 25 insertions(+), 9 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index f4ab14e..8b8f7b6 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,12 @@ +Version 1.0.0 (2023-06-16) +-------------------------- +Remove Redis and Celery Emitters (#335) +Make tracker namespace mandatory (#337) +Track function to return event_id (#338) +Fix namespace assignment in Snowplow API (#341) +Refactor track_xxx() methods (#343) +Update payload builder to combine event subjects (#347) + Version 0.15.0 (2023-04-19) --------------------------- Use Requests Session for sending eventss (#221) diff --git a/docs/source/conf.py b/docs/source/conf.py index d2b5197..187e0da 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -28,7 +28,7 @@ author = 'Alex Dean, Paul Boocock, Matus Tomlein, Jack Keene' # The full version, including alpha/beta/rc tags -release = "0.15" +release = "1.0.0" # -- General configuration --------------------------------------------------- diff --git a/setup.py b/setup.py index b67c8f3..253b231 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,14 @@ except ImportError: from distutils.core import setup -authors_list = ["Anuj More", "Alexander Dean", "Fred Blundun", "Paul Boocock"] +authors_list = [ + "Anuj More", + "Alexander Dean", + "Fred Blundun", + "Paul Boocock", + "Matus Tomlein", + "Jack Keene", +] authors_str = ", ".join(authors_list) authors_email_list = [ @@ -33,7 +40,7 @@ setup( name="snowplow-tracker", - version="0.15.0", + version="1.0.0", author=authors_str, author_email=authors_email_str, packages=["snowplow_tracker", "snowplow_tracker.test", "snowplow_tracker.events"], diff --git a/snowplow_tracker/_version.py b/snowplow_tracker/_version.py index 69a6ff6..60a0bd1 100644 --- a/snowplow_tracker/_version.py +++ b/snowplow_tracker/_version.py @@ -15,6 +15,6 @@ # language governing permissions and limitations there under. # """ -__version_info__ = (0, 15, 0) +__version_info__ = (1, 0, 0) __version__ = ".".join(str(x) for x in __version_info__) __build_version__ = __version__ + "" diff --git a/snowplow_tracker/test/integration/test_integration.py b/snowplow_tracker/test/integration/test_integration.py index a95e10a..57b1a58 100644 --- a/snowplow_tracker/test/integration/test_integration.py +++ b/snowplow_tracker/test/integration/test_integration.py @@ -513,14 +513,14 @@ def test_timestamps(self) -> None: def test_bytelimit(self) -> None: default_emitter = emitters.Emitter( - "localhost", protocol="http", port=80, batch_size=5, byte_limit=483 + "localhost", protocol="http", port=80, batch_size=5, byte_limit=459 ) t = tracker.Tracker("namespace", default_emitter, default_subject) with HTTMock(pass_post_response_content): - t.track_struct_event("Test", "A") # 161 bytes - t.track_struct_event("Test", "A") # 322 bytes - t.track_struct_event("Test", "A") # 483 bytes. Send - t.track_struct_event("Test", "AA") # 162 + t.track_struct_event("Test", "A") # 153 bytes + t.track_struct_event("Test", "A") # 306 bytes + t.track_struct_event("Test", "A") # 459 bytes. Send + t.track_struct_event("Test", "AA") # 154 self.assertEqual(len(querystrings[-1]["data"]), 3) self.assertEqual(default_emitter.bytes_queued, 156 + len(_version.__version__))