From c0b416a1a47d1148fe0be7dfb70f37bacc44bcbb Mon Sep 17 00:00:00 2001 From: srothh Date: Tue, 24 Nov 2026 13:23:18 +0100 Subject: [PATCH] build(python): Add sentry-conventions as dependency GH-8321 PY-3088 --- pyproject.toml | 6 +++++- setup.py | 1 + uv.lock | 11 +++++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index afc0f2a6f5..00cf5393f8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,11 +28,14 @@ docs = [ "sphinx", "sphinx-autodoc-typehints[type_comments]>=2.3.0", "typing-extensions", + # TODO: remove redundant sentry-conventions after proper migration from setup.py + "sentry-conventions>=0.36.0", ] aws = [ "certifi", "urllib3", + "sentry-conventions>=0.36.0", # In Lambda functions botocore is used, and botocore has # restrictions on urllib3 # https://github.com/boto/botocore/blob/develop/setup.cfg @@ -44,9 +47,10 @@ aws = [ typing = [ "mypy", # ================= - # TODO: remove redundant urllib3 and certifi after proper migration from setup.py + # TODO: remove redundant urllib3, certifi and sentry-conventions after proper migration from setup.py "urllib3>=1.26.11", "certifi", + "sentry-conventions>=0.36.0", # ================= "types-protobuf", "types-gevent", diff --git a/setup.py b/setup.py index f4c5d6aa3b..54252e9c2a 100644 --- a/setup.py +++ b/setup.py @@ -42,6 +42,7 @@ def get_file_text(file_name): install_requires=[ "urllib3>=1.26.11", "certifi", + "sentry-conventions>=0.36.0", ], extras_require={ # Only add an extra if our integration needs something additional to diff --git a/uv.lock b/uv.lock index 3c33a2c5f4..e4a077861d 100644 --- a/uv.lock +++ b/uv.lock @@ -9,6 +9,7 @@ resolution-markers = [ [manifest.dependency-groups] aws = [ { name = "certifi" }, + { name = "sentry-conventions", specifier = ">=0.36.0" }, { name = "urllib3" }, { name = "urllib3", marker = "python_full_version < '3.10'", specifier = "<1.27" }, ] @@ -22,6 +23,7 @@ dev = [ ] docs = [ { name = "gevent" }, + { name = "sentry-conventions", specifier = ">=0.36.0" }, { name = "shibuya" }, { name = "sphinx" }, { name = "sphinx-autodoc-typehints", extras = ["type-comments"], specifier = ">=2.3.0" }, @@ -63,6 +65,7 @@ typing = [ { name = "pydantic-ai-slim", specifier = ">=2.23.0" }, { name = "pymongo" }, { name = "python-multipart", specifier = ">=0.0.32" }, + { name = "sentry-conventions", specifier = ">=0.36.0" }, { name = "starlette", specifier = ">=1.3.1" }, { name = "statsig" }, { name = "strawberry-graphql" }, @@ -3099,6 +3102,14 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/ab/60/27e29790ff15ea0a485b8dc200d514328294f956e4abc3d43d88c0b5338d/semver-3.1.2-py3-none-any.whl", hash = "sha256:45d107c3fa880910441dfab9d555046cba2829a25feeadfe4a1566439635c510", size = 19100, upload-time = "2026-11-15T17:01:41.321Z" }, ] +[[package]] +name = "sentry-conventions" +version = "0.36.0" +source = { registry = "https://pypi.org/simple" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/16/31/e5af8143ca4c0dc517b1dc5328639fc97ae6325b6f9fa2f4610542d05a55/sentry_conventions-0.36.0-py3-none-any.whl", hash = "sha256:052094cdd4571ca95d81bfa862be8940db1cdf262ee0d192bc031a40e7f6657c", size = 163091, upload-time = "2026-11-23T13:30:14.822Z" }, +] + [[package]] name = "shellingham" version = "1.5.4"