From 7392942ade36f9d85160ceafb6387977f94bd848 Mon Sep 17 00:00:00 2001 From: Ken Celenza Date: Sun, 1 Oct 2023 22:34:19 -0400 Subject: [PATCH] Update ci.yml to point to stable and fix logging issue (#646) * Remove nautobot from direct dependency since nornir has it already * update invoke example to be in line with tasks.py * use stable instead of latest * Add empty extra arg --- .github/workflows/ci.yml | 4 ++-- invoke.example.yml | 4 ++-- invoke.mysql.yml | 4 ++-- nautobot_golden_config/utilities/logger.py | 2 +- poetry.lock | 2 +- pyproject.toml | 3 +-- 6 files changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7524fec9..632b3dc2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -121,7 +121,7 @@ jobs: matrix: python-version: ["3.8", "3.9", "3.10", "3.11"] db-backend: ["postgresql"] - nautobot-version: ["latest"] + nautobot-version: ["stable"] # The include is a method to limit the amount of jobs ran. This essentially # means that in addition to standard postgres and stable, also the lowest # supported version and with mysql @@ -134,7 +134,7 @@ jobs: nautobot-version: "2.0.0" - python-version: "3.8" db-backend: "mysql" - nautobot-version: "latest" + nautobot-version: "stable" runs-on: "ubuntu-20.04" env: INVOKE_NAUTOBOT_GOLDEN_CONFIG_PYTHON_VER: "${{ matrix.python-version }}" diff --git a/invoke.example.yml b/invoke.example.yml index 16db4580..55c76c2f 100644 --- a/invoke.example.yml +++ b/invoke.example.yml @@ -1,9 +1,9 @@ --- nautobot_golden_config: project_name: "nautobot-golden-config" - nautobot_ver: "latest" + nautobot_ver: "2.0.0" local: false - python_ver: "3.8" + python_ver: "3.11" compose_dir: "development" compose_files: - "docker-compose.base.yml" diff --git a/invoke.mysql.yml b/invoke.mysql.yml index 5ee06af6..2f6d57b5 100644 --- a/invoke.mysql.yml +++ b/invoke.mysql.yml @@ -1,9 +1,9 @@ --- nautobot_golden_config: project_name: "nautobot-golden-config" - nautobot_ver: "latest" + nautobot_ver: "2.0.0" local: false - python_ver: "3.8" + python_ver: "3.11" compose_dir: "development" compose_files: - "docker-compose.base.yml" diff --git a/nautobot_golden_config/utilities/logger.py b/nautobot_golden_config/utilities/logger.py index 5808d0c9..4563315d 100644 --- a/nautobot_golden_config/utilities/logger.py +++ b/nautobot_golden_config/utilities/logger.py @@ -8,7 +8,7 @@ handler = logging.StreamHandler() handler.setLevel(logging.NOTSET) LOGGER.addHandler(handler) -LOGGER_ADAPTER = logging.LoggerAdapter(LOGGER) +LOGGER_ADAPTER = logging.LoggerAdapter(LOGGER, extra={}) class NornirLogger: diff --git a/poetry.lock b/poetry.lock index 42328a84..37729892 100644 --- a/poetry.lock +++ b/poetry.lock @@ -4764,4 +4764,4 @@ testing = ["big-O", "jaraco.functools", "jaraco.itertools", "more-itertools", "p [metadata] lock-version = "2.0" python-versions = ">=3.8,<3.12" -content-hash = "7186b12653adb8393317b15b615979ce8df5eaa9712a9777fe391aad030029d1" +content-hash = "1bc38867f792a6bd269ca1bebb4a406e5e8b9e1e361e2ddc96a90795c44fb342" diff --git a/pyproject.toml b/pyproject.toml index 16b33d20..07db5609 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,13 +35,12 @@ python = ">=3.8,<3.12" deepdiff = ">=5.5.0,!=6.0,!=6.1,<7" django-pivot = "1.8.1" # The signature changed to return a non-queryset, do not upgrade without ensuring it returns a queryset matplotlib = "^3.3.2" -nautobot = "^2.0.0" nautobot-plugin-nornir = "^2.0.0" toml = "^0.10.2" netutils = "^1.5.0" hier-config = "^2.2.2" -nautobot-capacity-metrics = "^3.0.0" +nautobot-capacity-metrics = "^3.0.1" [tool.poetry.group.dev.dependencies] bandit = "*"