Skip to content

Commit ab22f2e

Browse files
authored
Upgrade dev Python packages, part 1 (#773)
1 parent 95bafc0 commit ab22f2e

File tree

7 files changed

+11
-12
lines changed

7 files changed

+11
-12
lines changed

dev-requirements.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
pytest==7.0.1
2-
flake8==5.0.4
3-
black==22.8.0
2+
flake8==6.0.0
3+
black==23.3.0
44
mypy==0.971
5-
isort==5.10.1
5+
isort==5.12.0
66
PyYAML==6.0
77
docker==5.0.0
88
six==1.16.0
99
types-requests==0.1.9
10-
types-dataclasses==0.1.5
10+
types-dataclasses==0.6.6
1111
types-psutil==5.8.19
1212
types-PyYAML==6.0.3
1313
types-pkg-resources==0.1.3
1414
types-protobuf==3.19.22
1515
types-toml==0.10.8
1616
types-retry==0.9.9
17-
types-beautifulsoup4==4.11.1
17+
types-beautifulsoup4==4.11.1

gprofiler/gprofiler_types.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ class ProfileData:
3535

3636

3737
class ProfilingErrorStack(StackToSampleCount):
38-
3938
PROFILING_ERROR_STACK_PATTERN = re.compile(r".*;\[Profiling .+: .+\]")
4039

4140
def __init__(self, what: str, reason: str, comm: str):
@@ -55,7 +54,7 @@ def attach_error_to_stacks(
5554
) -> StackToSampleCount:
5655
_, error_frame = next(iter(error_stack)).split(";", maxsplit=1)
5756
dest_stacks: StackToSampleCount = StackToSampleCount()
58-
for (frame, count) in source_stacks.items():
57+
for frame, count in source_stacks.items():
5958
comm, stack = frame.split(";", maxsplit=1)
6059
annotated = f"{comm};{error_frame};{stack}"
6160
dest_stacks[annotated] = count

granulate-utils

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ConfigArgParse==1.3
55
distro==1.7.0
66
setuptools==65.5.1 # For pkg_resources
77
six==1.16.0
8-
packaging==21.2
8+
packaging==23.1
99
pyelftools==0.28
1010
curlify==2.2.1
1111
retry==0.9.2

tests/conftest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,6 @@ def application_docker_image(
353353
runtime: str,
354354
application_image_tag: str,
355355
) -> Iterable[Image]:
356-
357356
if is_aarch64():
358357
if runtime == "nodejs":
359358
if application_image_tag == "12-glibc":

tests/test_app_metadata.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,9 @@ def test_app_metadata(
205205

206206
assert application_docker_container.name in metadata["containers"]
207207
# find its app metadata index - find a stack line from the app of this container
208-
stack = next(filter(lambda l: application_docker_container.name in l and application_executable in l, lines[1:]))
208+
stack = next(
209+
filter(lambda line: application_docker_container.name in line and application_executable in line, lines[1:])
210+
)
209211
# stack begins with index
210212
idx = int(stack.split(";")[0])
211213

tests/test_java.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,6 @@ def test_sanity_other_jvms(
384384
search_for: str,
385385
profiler_state: ProfilerState,
386386
) -> None:
387-
388387
if is_aarch64():
389388
pytest.xfail(
390389
"Different JVMs are not supported on aarch64, see https://github.com/Granulate/gprofiler/issues/717"

0 commit comments

Comments
 (0)