Skip to content

Commit 76e2f04

Browse files
authored
Merge branch 'master' into redis-pubsub
2 parents 1cdca8b + 4342f91 commit 76e2f04

File tree

7 files changed

+23
-16
lines changed

7 files changed

+23
-16
lines changed

.ci/.jenkins_framework.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ FRAMEWORK:
88
- django-3.2
99
- flask-0.12
1010
- flask-1.1
11+
- flask-2.0
1112
- opentracing-newest
1213
- twisted-18
1314
- celery-3-flask-1.0

.ci/.jenkins_framework_full.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ FRAMEWORK:
1515
- flask-0.12
1616
- flask-1.0
1717
- flask-1.1
18+
- flask-2.0
1819
- celery-3-flask-1.0
1920
- celery-3-django-1.11
2021
- celery-3-django-2.0

docs/supported-technologies.asciidoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ We support these Flask versions:
5151
* 0.12 (Deprecated)
5252
* 1.0
5353
* 1.1
54+
* 2.0
5455

5556
[float]
5657
[[supported-aiohttp]]

elasticapm/utils/cloud.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ def aws_metadata():
4545
try:
4646
# This will throw an error if the metadata server isn't available,
4747
# and will be quiet in the logs, unlike urllib3
48-
socket.create_connection(("169.254.169.254", 80), 0.1)
48+
with socket.create_connection(("169.254.169.254", 80), 0.1):
49+
pass
4950

5051
try:
5152
# This whole block is almost unnecessary. IMDSv1 will be supported
@@ -135,7 +136,8 @@ def azure_metadata():
135136
try:
136137
# This will throw an error if the metadata server isn't available,
137138
# and will be quiet in the logs, unlike urllib3
138-
socket.create_connection(("169.254.169.254", 80), 0.1)
139+
with socket.create_connection(("169.254.169.254", 80), 0.1):
140+
pass
139141

140142
# Can't use newest metadata service version, as it's not guaranteed
141143
# to be available in all regions

tests/bdd/api_key_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
scenarios(os.path.join("features", "api_key.feature"))
4141

4242

43-
@given("an agent")
43+
@given("an agent", target_fixture="an_agent")
4444
def an_agent(elasticapm_client):
4545
return elasticapm_client
4646

tests/requirements/reqs-base.txt

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
1-
pytest==6.2.2
2-
pytest-django==4.1.0
3-
coverage==5.4
4-
pytest-cov==2.11.1
1+
pytest==6.2.4
2+
pytest-django==4.3.0
3+
coverage==5.5
4+
pytest-cov==2.12.0
55
pytest-localserver==0.5.0
6-
pytest-mock==3.5.1
7-
pytest-benchmark==3.2.3
8-
pytest-bdd==3.4.0
6+
pytest-mock==3.6.1
7+
pytest-benchmark==3.4.1
8+
pytest-bdd==4.0.2
99
pytest-rerunfailures==9.1.1
1010
jsonschema==3.2.0
1111

1212

1313
py==1.10.0
14-
more-itertools==8.6.0
14+
more-itertools==8.7.0
1515
pluggy==0.13.1
1616
atomicwrites==1.4.0
1717
pyrsistent==0.17.3
18-
configparser==5.0.1
18+
configparser==5.0.2
1919
contextlib2==0.6.0
20-
importlib-metadata==3.4.0
20+
importlib-metadata==4.0.1
2121
packaging==20.9
2222
Mako==1.1.4
2323
glob2==0.7
2424
parse==1.19.0
2525
parse-type==0.5.2
2626
toml==0.10.2
2727
iniconfig==1.1.1
28-
docutils==0.16
29-
py-cpuinfo==7.0.0
28+
docutils==0.17.1
29+
py-cpuinfo==8.0.0
3030
statistics==1.0.3.5
3131

3232
urllib3
@@ -49,5 +49,5 @@ ecs_logging
4949
structlog
5050

5151

52-
pytest-asyncio==0.14.0 ; python_version >= '3.7'
52+
pytest-asyncio==0.15.1 ; python_version >= '3.7'
5353
asynctest==0.13.0 ; python_version >= '3.7'
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Flask>=2.0,<3
2+
-r reqs-base.txt

0 commit comments

Comments
 (0)