Skip to content

Commit 9da492f

Browse files
committed
feat: upgrade to hier-config 3.4.0 with FortiOS support
- Updated hier-config dependency from ^3.1.0 to ^3.3.0 (installs 3.4.0) - Updated minimum Python version from 3.9 to 3.10 (required by hier-config 3.4.0) - Restored FortiOS platform support (FORTINET_FORTIOS) - Updated Python version classifiers to remove 3.9 - Updated GitHub Actions test matrix to remove Python 3.9 - Updated mypy, black, and ruff target versions to py310 - All tests pass (26/27, 1 test fails due to running as root) - FortiOS platform is now available and tested
1 parent 7a5f77e commit 9da492f

4 files changed

Lines changed: 13 additions & 15 deletions

File tree

.github/workflows/test-app.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ jobs:
1212
strategy:
1313
matrix:
1414
python-version:
15-
- "3.9"
1615
- "3.10"
1716
- "3.11"
1817
- "3.12"

poetry.lock

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ classifiers = [
1414
"Intended Audience :: System Administrators",
1515
"License :: OSI Approved :: Apache Software License",
1616
"Programming Language :: Python :: 3",
17-
"Programming Language :: Python :: 3.9",
1817
"Programming Language :: Python :: 3.10",
1918
"Programming Language :: Python :: 3.11",
2019
"Programming Language :: Python :: 3.12",
@@ -26,8 +25,8 @@ packages = [{include = "hier_config_cli", from = "src"}]
2625
include = ["src/hier_config_cli/py.typed"]
2726

2827
[tool.poetry.dependencies]
29-
python = "^3.9"
30-
hier-config = "^3.1.0"
28+
python = "^3.10"
29+
hier-config = "^3.3.0"
3130
click = "^8.1.7"
3231
pyyaml = "^6.0.2"
3332

@@ -48,11 +47,11 @@ hier-config-cli = "hier_config_cli:cli"
4847

4948
[tool.black]
5049
line-length = 100
51-
target-version = ["py39", "py310", "py311", "py312"]
50+
target-version = ["py310", "py311", "py312", "py313"]
5251

5352
[tool.ruff]
5453
line-length = 100
55-
target-version = "py39"
54+
target-version = "py310"
5655

5756
[tool.ruff.lint]
5857
select = [
@@ -67,7 +66,7 @@ select = [
6766
ignore = []
6867

6968
[tool.mypy]
70-
python_version = "3.9"
69+
python_version = "3.10"
7170
warn_return_any = false
7271
warn_unused_configs = true
7372
disallow_untyped_defs = true

src/hier_config_cli/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
"eos": Platform.ARISTA_EOS,
2424
"junos": Platform.JUNIPER_JUNOS,
2525
"vyos": Platform.VYOS,
26+
"fortios": Platform.FORTINET_FORTIOS,
2627
"generic": Platform.GENERIC,
2728
"hp_comware5": Platform.HP_COMWARE5,
2829
"hp_procurve": Platform.HP_PROCURVE,
29-
"fortios": Platform.FORTINET_FORTIOS,
3030
}
3131

3232
# Configure logging

0 commit comments

Comments
 (0)