Skip to content

Commit

Permalink
Prepare for 1.0.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack-Keene committed Jun 16, 2023
1 parent 2b7a3dd commit d4fd76b
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 9 deletions.
9 changes: 9 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ---------------------------------------------------
Expand Down
11 changes: 9 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand All @@ -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"],
Expand Down
2 changes: 1 addition & 1 deletion snowplow_tracker/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__ + ""
10 changes: 5 additions & 5 deletions snowplow_tracker/test/integration/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__))
Expand Down

0 comments on commit d4fd76b

Please sign in to comment.