Skip to content

Commit

Permalink
One dep pr to rule them all part7 (#557)
Browse files Browse the repository at this point in the history
  • Loading branch information
rustydb authored Nov 12, 2024
2 parents 333a1bd + cb3c237 commit 8023387
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
8 changes: 4 additions & 4 deletions canu/report/network/firmware/firmware.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# MIT License
#
# (C) Copyright 2022-2023 Hewlett Packard Enterprise Development LP
# (C) Copyright 2022-2024 Hewlett Packard Enterprise Development LP
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
Expand All @@ -20,7 +20,7 @@
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
"""CANU commands that report the firmware of the entire Shasta network."""
from collections import defaultdict
from collections import Counter
import datetime
import ipaddress
import json
Expand Down Expand Up @@ -353,8 +353,8 @@ def summary_table(data, out="-"):
click.echo("\nSummary", file=out)
click.echo(dash, file=out)

firmware_versions = defaultdict(int)
network_summary = defaultdict(int)
firmware_versions = Counter()
network_summary = Counter()
for firmware in data:
network_summary[firmware[1]] += 1

Expand Down
15 changes: 8 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ dependencies = [
'colorama==0.4.6',
'emoji==2.5.0',
'hier-config==2.2.3',
'ipython==8.14.0',
'ipython==8.29.0; python_version>"3.9"',
'ipython~=8.18.1; python_version<"3.10"',
'jinja2==3.1.4',
'jsonschema==4.23.0',
'kubernetes==31.0.0',
Expand All @@ -58,10 +59,10 @@ dependencies = [
'netaddr==1.3.0',
'netmiko==4.4.0',
'netutils==1.10.0',
'nornir-netmiko==1.0.1',
'nornir-salt==0.19.2',
'nornir-scrapli==2023.1.30.post1',
'nornir==3.3.0',
'nornir-netmiko>=1.0.1',
'nornir-salt>=0.19.2',
'nornir-scrapli>=2023.1.30.post1',
'nornir==3.4.1',
'openpyxl==3.1.5',
'pyyaml==6.0.2',
'requests==2.32.3',
Expand Down Expand Up @@ -101,7 +102,7 @@ docs = [
lint = [
'darglint~=1.8.1',
'flake8-black~=0.3.6',
'flake8-bugbear~=23.3.12',
'flake8-bugbear~=24.10.31',
'flake8-commas~=4.0.0',
'flake8-comprehensions~=3.12.0',
'flake8-debugger~=4.1.2',
Expand All @@ -122,7 +123,7 @@ network_modeling = [
test = [
'coverage~=7.6.4',
'mock~=5.1.0',
'pytest-cov~=4.1.0',
'pytest-cov~=6.0.0',
'pytest-sugar~=1.0.0',
'pytest~=8.3.3',
'py~=1.11.0',
Expand Down

0 comments on commit 8023387

Please sign in to comment.