Skip to content

Commit bd94010

Browse files
committed
Merge branch 'master' into potel-base
2 parents 1bb3dcb + a7b2d67 commit bd94010

File tree

5 files changed

+57
-45
lines changed

5 files changed

+57
-45
lines changed

requirements-aws-lambda-layer.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
certifi
2-
3-
# In Lambda functions botocore is used, and botocore is not
4-
# yet supporting urllib3 1.27.0 never mind 2+.
2+
urllib3
3+
# In Lambda functions botocore is used, and botocore has
4+
# restrictions on urllib3
5+
# https://github.com/boto/botocore/blob/develop/setup.cfg
56
# So we pin this here to make our Lambda layer work with
67
# Lambda Function using Python 3.7+
7-
urllib3<1.27
8-
8+
urllib3<1.27; python_version < "3.10"
99
opentelemetry-distro>=0.35b0

scripts/generate-test-files.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ set -xe
66

77
cd "$(dirname "$0")"
88

9+
rm -rf toxgen.venv
910
python -m venv toxgen.venv
1011
. toxgen.venv/bin/activate
1112

12-
pip install -e ..
13-
pip install -r populate_tox/requirements.txt
14-
pip install -r split_tox_gh_actions/requirements.txt
13+
toxgen.venv/bin/pip install -e ..
14+
toxgen.venv/bin/pip install -r populate_tox/requirements.txt
15+
toxgen.venv/bin/pip install -r split_tox_gh_actions/requirements.txt
1516

16-
python populate_tox/populate_tox.py
17-
python split_tox_gh_actions/split_tox_gh_actions.py
17+
toxgen.venv/bin/python populate_tox/populate_tox.py
18+
toxgen.venv/bin/python split_tox_gh_actions/split_tox_gh_actions.py

scripts/populate_tox/populate_tox.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from bisect import bisect_left
1111
from collections import defaultdict
1212
from datetime import datetime, timedelta, timezone # noqa: F401
13-
from importlib.metadata import metadata
13+
from importlib.metadata import PackageMetadata, distributions
1414
from packaging.specifiers import SpecifierSet
1515
from packaging.version import Version
1616
from pathlib import Path
@@ -87,6 +87,13 @@
8787
}
8888

8989

90+
def _fetch_sdk_metadata() -> PackageMetadata:
91+
(dist,) = distributions(
92+
name="sentry-sdk", path=[Path(__file__).parent.parent.parent]
93+
)
94+
return dist.metadata
95+
96+
9097
def fetch_url(url: str) -> Optional[dict]:
9198
for attempt in range(3):
9299
pypi_data = requests.get(url)
@@ -592,8 +599,9 @@ def main(fail_on_changes: bool = False) -> None:
592599
)
593600

594601
global MIN_PYTHON_VERSION, MAX_PYTHON_VERSION
602+
meta = _fetch_sdk_metadata()
595603
sdk_python_versions = _parse_python_versions_from_classifiers(
596-
metadata("sentry-sdk").get_all("Classifier")
604+
meta.get_all("Classifier")
597605
)
598606
MIN_PYTHON_VERSION = sdk_python_versions[0]
599607
MAX_PYTHON_VERSION = sdk_python_versions[-1]

tests/integrations/loguru/test_loguru.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from unittest.mock import MagicMock, patch
2+
import re
23

34
import pytest
45
from loguru import logger
@@ -56,10 +57,10 @@ def test_just_log(
5657

5758
getattr(logger, level.name.lower())("test")
5859

59-
formatted_message = (
60-
" | "
61-
+ "{:9}".format(level.name.upper())
62-
+ "| tests.integrations.loguru.test_loguru:test_just_log:57 - test"
60+
expected_pattern = (
61+
r" \| "
62+
+ r"{:9}".format(level.name.upper())
63+
+ r"\| tests\.integrations\.loguru\.test_loguru:test_just_log:\d+ - test"
6364
)
6465

6566
if not created_event:
@@ -72,7 +73,7 @@ def test_just_log(
7273
(breadcrumb,) = breadcrumbs
7374
assert breadcrumb["level"] == expected_sentry_level
7475
assert breadcrumb["category"] == "tests.integrations.loguru.test_loguru"
75-
assert breadcrumb["message"][23:] == formatted_message
76+
assert re.fullmatch(expected_pattern, breadcrumb["message"][23:])
7677
else:
7778
assert not breadcrumbs
7879

@@ -85,7 +86,7 @@ def test_just_log(
8586
(event,) = events
8687
assert event["level"] == expected_sentry_level
8788
assert event["logger"] == "tests.integrations.loguru.test_loguru"
88-
assert event["logentry"]["message"][23:] == formatted_message
89+
assert re.fullmatch(expected_pattern, event["logentry"]["message"][23:])
8990

9091

9192
def test_breadcrumb_format(sentry_init, capture_events, uninstall_integration, request):

tox.ini

Lines changed: 29 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# The file (and all resulting CI YAMLs) then need to be regenerated via
1111
# "scripts/generate-test-files.sh".
1212
#
13-
# Last generated: 2025-06-25T13:33:01.471693+00:00
13+
# Last generated: 2025-07-08T11:21:36.224017+00:00
1414

1515
[tox]
1616
requires =
@@ -132,9 +132,9 @@ envlist =
132132

133133
# ~~~ AI ~~~
134134
{py3.8,py3.11,py3.12}-anthropic-v0.16.0
135-
{py3.8,py3.11,py3.12}-anthropic-v0.29.2
136-
{py3.8,py3.11,py3.12}-anthropic-v0.42.0
137-
{py3.8,py3.11,py3.12}-anthropic-v0.55.0
135+
{py3.8,py3.11,py3.12}-anthropic-v0.30.1
136+
{py3.8,py3.11,py3.12}-anthropic-v0.44.0
137+
{py3.8,py3.11,py3.12}-anthropic-v0.57.1
138138

139139
{py3.9,py3.10,py3.11}-cohere-v5.4.0
140140
{py3.9,py3.11,py3.12}-cohere-v5.8.1
@@ -144,7 +144,7 @@ envlist =
144144
{py3.8,py3.10,py3.11}-huggingface_hub-v0.22.2
145145
{py3.8,py3.11,py3.12}-huggingface_hub-v0.26.5
146146
{py3.8,py3.12,py3.13}-huggingface_hub-v0.30.2
147-
{py3.8,py3.12,py3.13}-huggingface_hub-v0.33.1
147+
{py3.8,py3.12,py3.13}-huggingface_hub-v0.33.2
148148

149149

150150
# ~~~ DBs ~~~
@@ -179,7 +179,8 @@ envlist =
179179

180180
{py3.8,py3.12,py3.13}-unleash-v6.0.1
181181
{py3.8,py3.12,py3.13}-unleash-v6.1.0
182-
{py3.8,py3.12,py3.13}-unleash-v6.2.1
182+
{py3.8,py3.12,py3.13}-unleash-v6.2.2
183+
{py3.8,py3.12,py3.13}-unleash-v6.3.0
183184

184185

185186
# ~~~ GraphQL ~~~
@@ -198,14 +199,14 @@ envlist =
198199
{py3.8,py3.10,py3.11}-strawberry-v0.209.8
199200
{py3.8,py3.11,py3.12}-strawberry-v0.231.1
200201
{py3.8,py3.12,py3.13}-strawberry-v0.253.1
201-
{py3.9,py3.12,py3.13}-strawberry-v0.275.2
202+
{py3.9,py3.12,py3.13}-strawberry-v0.275.5
202203

203204

204205
# ~~~ Network ~~~
205206
{py3.7,py3.8}-grpc-v1.32.0
206207
{py3.7,py3.9,py3.10}-grpc-v1.46.5
207208
{py3.7,py3.11,py3.12}-grpc-v1.60.2
208-
{py3.9,py3.12,py3.13}-grpc-v1.73.0
209+
{py3.9,py3.12,py3.13}-grpc-v1.73.1
209210

210211

211212
# ~~~ Tasks ~~~
@@ -234,7 +235,7 @@ envlist =
234235
{py3.7,py3.9,py3.10}-django-v3.2.25
235236
{py3.8,py3.11,py3.12}-django-v4.2.23
236237
{py3.10,py3.11,py3.12}-django-v5.0.14
237-
{py3.10,py3.12,py3.13}-django-v5.2.3
238+
{py3.10,py3.12,py3.13}-django-v5.2.4
238239

239240
{py3.7,py3.8}-flask-v1.1.4
240241
{py3.8,py3.12,py3.13}-flask-v2.3.3
@@ -249,7 +250,7 @@ envlist =
249250
{py3.7,py3.9,py3.10}-fastapi-v0.79.1
250251
{py3.7,py3.10,py3.11}-fastapi-v0.91.0
251252
{py3.7,py3.10,py3.11}-fastapi-v0.103.2
252-
{py3.8,py3.12,py3.13}-fastapi-v0.115.13
253+
{py3.8,py3.12,py3.13}-fastapi-v0.116.0
253254

254255

255256
# ~~~ Web 2 ~~~
@@ -290,8 +291,8 @@ envlist =
290291
{py3.7}-trytond-v5.0.63
291292
{py3.7,py3.8}-trytond-v5.8.16
292293
{py3.8,py3.10,py3.11}-trytond-v6.8.17
293-
{py3.8,py3.11,py3.12}-trytond-v7.0.32
294-
{py3.9,py3.12,py3.13}-trytond-v7.6.2
294+
{py3.8,py3.11,py3.12}-trytond-v7.0.33
295+
{py3.9,py3.12,py3.13}-trytond-v7.6.3
295296

296297
{py3.7,py3.12,py3.13}-typer-v0.15.4
297298
{py3.7,py3.12,py3.13}-typer-v0.16.0
@@ -488,13 +489,13 @@ deps =
488489

489490
# ~~~ AI ~~~
490491
anthropic-v0.16.0: anthropic==0.16.0
491-
anthropic-v0.29.2: anthropic==0.29.2
492-
anthropic-v0.42.0: anthropic==0.42.0
493-
anthropic-v0.55.0: anthropic==0.55.0
492+
anthropic-v0.30.1: anthropic==0.30.1
493+
anthropic-v0.44.0: anthropic==0.44.0
494+
anthropic-v0.57.1: anthropic==0.57.1
494495
anthropic: pytest-asyncio
495496
anthropic-v0.16.0: httpx<0.28.0
496-
anthropic-v0.29.2: httpx<0.28.0
497-
anthropic-v0.42.0: httpx<0.28.0
497+
anthropic-v0.30.1: httpx<0.28.0
498+
anthropic-v0.44.0: httpx<0.28.0
498499

499500
cohere-v5.4.0: cohere==5.4.0
500501
cohere-v5.8.1: cohere==5.8.1
@@ -504,7 +505,7 @@ deps =
504505
huggingface_hub-v0.22.2: huggingface_hub==0.22.2
505506
huggingface_hub-v0.26.5: huggingface_hub==0.26.5
506507
huggingface_hub-v0.30.2: huggingface_hub==0.30.2
507-
huggingface_hub-v0.33.1: huggingface_hub==0.33.1
508+
huggingface_hub-v0.33.2: huggingface_hub==0.33.2
508509

509510

510511
# ~~~ DBs ~~~
@@ -541,7 +542,8 @@ deps =
541542

542543
unleash-v6.0.1: UnleashClient==6.0.1
543544
unleash-v6.1.0: UnleashClient==6.1.0
544-
unleash-v6.2.1: UnleashClient==6.2.1
545+
unleash-v6.2.2: UnleashClient==6.2.2
546+
unleash-v6.3.0: UnleashClient==6.3.0
545547

546548

547549
# ~~~ GraphQL ~~~
@@ -568,7 +570,7 @@ deps =
568570
strawberry-v0.209.8: strawberry-graphql[fastapi,flask]==0.209.8
569571
strawberry-v0.231.1: strawberry-graphql[fastapi,flask]==0.231.1
570572
strawberry-v0.253.1: strawberry-graphql[fastapi,flask]==0.253.1
571-
strawberry-v0.275.2: strawberry-graphql[fastapi,flask]==0.275.2
573+
strawberry-v0.275.5: strawberry-graphql[fastapi,flask]==0.275.5
572574
strawberry: httpx
573575
strawberry-v0.209.8: pydantic<2.11
574576
strawberry-v0.231.1: pydantic<2.11
@@ -579,7 +581,7 @@ deps =
579581
grpc-v1.32.0: grpcio==1.32.0
580582
grpc-v1.46.5: grpcio==1.46.5
581583
grpc-v1.60.2: grpcio==1.60.2
582-
grpc-v1.73.0: grpcio==1.73.0
584+
grpc-v1.73.1: grpcio==1.73.1
583585
grpc: protobuf
584586
grpc: mypy-protobuf
585587
grpc: types-protobuf
@@ -614,7 +616,7 @@ deps =
614616
django-v3.2.25: django==3.2.25
615617
django-v4.2.23: django==4.2.23
616618
django-v5.0.14: django==5.0.14
617-
django-v5.2.3: django==5.2.3
619+
django-v5.2.4: django==5.2.4
618620
django: channels[daphne]
619621
django: psycopg2-binary
620622
django: djangorestframework
@@ -625,12 +627,12 @@ deps =
625627
django-v3.2.25: channels[daphne]
626628
django-v4.2.23: channels[daphne]
627629
django-v5.0.14: channels[daphne]
628-
django-v5.2.3: channels[daphne]
630+
django-v5.2.4: channels[daphne]
629631
django-v2.2.28: six
630632
django-v3.2.25: pytest-asyncio
631633
django-v4.2.23: pytest-asyncio
632634
django-v5.0.14: pytest-asyncio
633-
django-v5.2.3: pytest-asyncio
635+
django-v5.2.4: pytest-asyncio
634636
django-v2.0.13: djangorestframework>=3.0,<4.0
635637
django-v2.0.13: Werkzeug<2.1.0
636638
django-v2.2.28: djangorestframework>=3.0,<4.0
@@ -667,7 +669,7 @@ deps =
667669
fastapi-v0.79.1: fastapi==0.79.1
668670
fastapi-v0.91.0: fastapi==0.91.0
669671
fastapi-v0.103.2: fastapi==0.103.2
670-
fastapi-v0.115.13: fastapi==0.115.13
672+
fastapi-v0.116.0: fastapi==0.116.0
671673
fastapi: httpx
672674
fastapi: pytest-asyncio
673675
fastapi: python-multipart
@@ -738,8 +740,8 @@ deps =
738740
trytond-v5.0.63: trytond==5.0.63
739741
trytond-v5.8.16: trytond==5.8.16
740742
trytond-v6.8.17: trytond==6.8.17
741-
trytond-v7.0.32: trytond==7.0.32
742-
trytond-v7.6.2: trytond==7.6.2
743+
trytond-v7.0.33: trytond==7.0.33
744+
trytond-v7.6.3: trytond==7.6.3
743745
trytond: werkzeug
744746
trytond-v5.0.63: werkzeug<1.0
745747

0 commit comments

Comments
 (0)