From 8d51840518fc0a4910206d6a10a3c6b1b2ef3cfa Mon Sep 17 00:00:00 2001 From: bakebot Date: Thu, 12 Feb 2026 17:03:49 +0000 Subject: [PATCH 1/6] Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool Template: ``` { "template": "https://github.com/networktocode-llc/cookiecutter-ntc.git", "dir": "python", "ref": "main", "path": "/__w/cookiecutter-nautobot-app-drift-manager/cookiecutter-nautobot-app-drift-manager/cookiecutter-ntc/python" } ``` Cookie: ``` { "remote": "https://github.com/networktocode/netutils.git", "path": "/tmp/tmp8yy2e_dd/netutils", "repository_path": "/tmp/tmp8yy2e_dd/netutils", "dir": "", "branch_prefix": "drift-manager/develop", "context": { "codeowner_github_usernames": "@itdependsnetworks @jeffkala @qduk", "full_name": "Network to Code, LLC", "email": "info@networktocode.com", "github_org": "networktocode", "description": "Common helper functions useful in network automation.", "project_name": "netutils", "project_slug": "netutils", "repo_url": "https://github.com/networktocode/netutils", "base_url": "netutils", "project_python_name": "netutils", "project_python_base_version": "3.10", "project_with_config_settings": "no", "generate_docs": "yes", "version": "1.15.1", "original_publish_year": "2021", "_template": "/__w/cookiecutter-nautobot-app-drift-manager/cookiecutter-nautobot-app-drift-manager/cookiecutter-ntc/python", "_output_dir": "/tmp/tmp8yy2e_dd", "_repo_dir": "/__w/cookiecutter-nautobot-app-drift-manager/cookiecutter-nautobot-app-drift-manager/cookiecutter-ntc/python", "_checkout": null }, "drift_managed_branch": "develop", "remote_name": "origin", "pull_request_strategy": "PullRequestStrategy.UPDATE_OR_CREATE", "post_actions": [], "baked_commit_ref": "b23a9ed5a4714810d83670ad47cc182764c6d464", "draft": false } ``` CLI Arguments: ``` { "cookie_dir": "", "input": false, "json_filename": "", "output_dir": "", "push": true, "template": "./cookiecutter-ntc", "template_dir": "python", "template_ref": "main", "pull_request": "update-or-create", "post_action": [], "disable_post_actions": true, "draft": null, "drift_managed_branch": "develop" } ``` --- .cookiecutter.json | 4 ++++ LICENSE | 4 ++++ changes/+main.housekeeping | 1 + docs/admin/release_notes/version_1.0.md | 4 ++++ example.invoke.yml | 2 +- pyproject.toml | 4 ++++ tasks.py | 7 ++++--- 7 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 changes/+main.housekeeping diff --git a/.cookiecutter.json b/.cookiecutter.json index fd87fa73..c184d8bb 100644 --- a/.cookiecutter.json +++ b/.cookiecutter.json @@ -23,7 +23,11 @@ "pull_request_strategy": "update-or-create", "post_actions": [], "draft": false, +<<<<<<< HEAD "baked_commit_ref": "b23a9ed5a4714810d83670ad47cc182764c6d464", +======= + "baked_commit_ref": "a996428068385caa4a089ec4abfd1ac731fca674", +>>>>>>> 016b1ed (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool) "drift_managed_branch": "develop" } } diff --git a/LICENSE b/LICENSE index 6ce362fa..dd536f54 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,10 @@ Apache Software License 2.0 +<<<<<<< HEAD Copyright (c) 2021-2025, Network to Code, LLC +======= +Copyright (c) 2021-2026, Network to Code, LLC +>>>>>>> 016b1ed (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/changes/+main.housekeeping b/changes/+main.housekeeping new file mode 100644 index 00000000..3433adf6 --- /dev/null +++ b/changes/+main.housekeeping @@ -0,0 +1 @@ +Rebaked from the cookie `main`. diff --git a/docs/admin/release_notes/version_1.0.md b/docs/admin/release_notes/version_1.0.md index 63ef2244..9710b545 100644 --- a/docs/admin/release_notes/version_1.0.md +++ b/docs/admin/release_notes/version_1.0.md @@ -6,7 +6,11 @@ - Commit to SemVer - F5 fixes +<<<<<<< HEAD ## v1.0.0 - 2021-11 +======= +## [v1.0.0] - 2026-02-12 +>>>>>>> 016b1ed (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool) ### Added diff --git a/example.invoke.yml b/example.invoke.yml index 199f8277..6206b5f9 100644 --- a/example.invoke.yml +++ b/example.invoke.yml @@ -1,6 +1,6 @@ --- "netutils": - python_ver: "3.9" + python_ver: "3.10" local: false # image_name: "netutils" # image_ver: "latest" diff --git a/pyproject.toml b/pyproject.toml index d8384cfa..af49011b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,12 +26,16 @@ include = [ [tool.poetry.dependencies] python = ">=3.10,<3.14" +<<<<<<< HEAD napalm = {version = "^4.0.0", optional = true} jsonschema = {version = "^4.17.3", optional = true} legacycrypt = {version = "0.3", optional = true} [tool.poetry.extras] optionals = ["jsonschema", "napalm", "legacycrypt"] +======= +click = "*" +>>>>>>> 016b1ed (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool) [tool.poetry.group.dev.dependencies] coverage = "*" diff --git a/tasks.py b/tasks.py index 84805a24..86acbe74 100644 --- a/tasks.py +++ b/tasks.py @@ -66,13 +66,14 @@ def task_wrapper(function=None): return task_wrapper -def run_command(context, exec_cmd, port=None): +def run_command(context, exec_cmd, port=None, rm=True): """Wrapper to run the invoke task commands. Args: context ([invoke.task]): Invoke task object. exec_cmd ([str]): Command to run. port (int): Used to serve local docs. + rm (bool): Whether to remove the container after running the command. Returns: result (obj): Contains Invoke result from running task. @@ -86,12 +87,12 @@ def run_command(context, exec_cmd, port=None): ) if port: result = context.run( - f"docker run -it -p {port} -v {context.netutils.pwd}:/local {context.netutils.image_name}:{context.netutils.image_ver} sh -c '{exec_cmd}'", + f"docker run -it {'--rm' if rm else ''} -p {port} -v {context.netutils.pwd}:/local {context.netutils.image_name}:{context.netutils.image_ver} sh -c '{exec_cmd}'", pty=True, ) else: result = context.run( - f"docker run -it -v {context.netutils.pwd}:/local {context.netutils.image_name}:{context.netutils.image_ver} sh -c '{exec_cmd}'", + f"docker run -it {'--rm' if rm else ''} -v {context.netutils.pwd}:/local {context.netutils.image_name}:{context.netutils.image_ver} sh -c '{exec_cmd}'", pty=True, ) From 7560b3a7ffdee2672804d2da0917ff9c03bd2fa7 Mon Sep 17 00:00:00 2001 From: bakebot Date: Tue, 3 Mar 2026 18:07:17 +0000 Subject: [PATCH 2/6] Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool Template: ``` { "template": "https://github.com/networktocode-llc/cookiecutter-ntc.git", "dir": "python", "ref": "main", "path": "/__w/cookiecutter-nautobot-app-drift-manager/cookiecutter-nautobot-app-drift-manager/cookiecutter-ntc/python" } ``` Cookie: ``` { "remote": "https://github.com/networktocode/netutils.git", "path": "/tmp/tmp422crx0_/netutils", "repository_path": "/tmp/tmp422crx0_/netutils", "dir": "", "branch_prefix": "drift-manager/develop", "context": { "codeowner_github_usernames": "@itdependsnetworks @jeffkala @qduk", "full_name": "Network to Code, LLC", "email": "info@networktocode.com", "github_org": "networktocode", "description": "Common helper functions useful in network automation.", "project_name": "netutils", "project_slug": "netutils", "repo_url": "https://github.com/networktocode/netutils", "base_url": "netutils", "project_python_name": "netutils", "project_python_base_version": "3.10", "project_with_config_settings": "no", "generate_docs": "yes", "version": "1.15.1", "original_publish_year": "2021", "_template": "/__w/cookiecutter-nautobot-app-drift-manager/cookiecutter-nautobot-app-drift-manager/cookiecutter-ntc/python", "_output_dir": "/tmp/tmp422crx0_", "_repo_dir": "/__w/cookiecutter-nautobot-app-drift-manager/cookiecutter-nautobot-app-drift-manager/cookiecutter-ntc/python", "_checkout": null }, "drift_managed_branch": "develop", "remote_name": "origin", "pull_request_strategy": "PullRequestStrategy.UPDATE_OR_CREATE", "post_actions": [], "baked_commit_ref": "b23a9ed5a4714810d83670ad47cc182764c6d464", "draft": false } ``` CLI Arguments: ``` { "cookie_dir": "", "input": false, "json_filename": "", "output_dir": "", "push": true, "template": "./cookiecutter-ntc", "template_dir": "python", "template_ref": "main", "pull_request": "update-or-create", "post_action": [], "disable_post_actions": true, "draft": null, "drift_managed_branch": "develop" } ``` --- .cookiecutter.json | 4 ++++ .github/workflows/ci.yml | 8 ++++++++ LICENSE | 4 ++++ README.md | 8 +++++++- docs/admin/release_notes/version_1.0.md | 4 ++++ pyproject.toml | 3 +++ tasks.py | 12 +++++++++++- 7 files changed, 41 insertions(+), 2 deletions(-) diff --git a/.cookiecutter.json b/.cookiecutter.json index c184d8bb..1ee02293 100644 --- a/.cookiecutter.json +++ b/.cookiecutter.json @@ -23,11 +23,15 @@ "pull_request_strategy": "update-or-create", "post_actions": [], "draft": false, +<<<<<<< HEAD <<<<<<< HEAD "baked_commit_ref": "b23a9ed5a4714810d83670ad47cc182764c6d464", ======= "baked_commit_ref": "a996428068385caa4a089ec4abfd1ac731fca674", >>>>>>> 016b1ed (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool) +======= + "baked_commit_ref": "7af44cb7e9a8e4894c9edfd2ee6ad8dc7b109de2", +>>>>>>> 3ab07dc (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool) "drift_managed_branch": "develop" } } diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 412c9963..1f0f0dd7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -134,7 +134,11 @@ jobs: cache-from: "type=gha,scope=${{ env.INVOKE_NETUTILS_IMAGE_NAME }}-${{ env.INVOKE_NETUTILS_IMAGE_VER }}-py${{ matrix.python-version }}" cache-to: "type=gha,scope=${{ env.INVOKE_NETUTILS_IMAGE_NAME }}-${{ env.INVOKE_NETUTILS_IMAGE_VER }}-py${{ matrix.python-version }}" build-args: | +<<<<<<< HEAD PYTHON_VER=${{ matrix.python-version }} +======= + PYTHON_VER=${{ env.INVOKE_{{cookiecutter.project_slug | upper}}_PYTHON_VER }} +>>>>>>> 3ab07dc (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool) - name: "Linting: Pylint" run: "poetry run invoke pylint" pytest: @@ -171,7 +175,11 @@ jobs: cache-from: "type=gha,scope=${{ env.INVOKE_NETUTILS_IMAGE_NAME }}-${{ env.INVOKE_NETUTILS_IMAGE_VER }}-py${{ matrix.python-version }}" cache-to: "type=gha,scope=${{ env.INVOKE_NETUTILS_IMAGE_NAME }}-${{ env.INVOKE_NETUTILS_IMAGE_VER }}-py${{ matrix.python-version }}" build-args: | +<<<<<<< HEAD PYTHON_VER=${{ matrix.python-version }} +======= + PYTHON_VER=${{ env.INVOKE_{{cookiecutter.project_slug | upper}}_PYTHON_VER }} +>>>>>>> 3ab07dc (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool) - name: "Run Tests" run: "poetry run invoke pytest" changelog: diff --git a/LICENSE b/LICENSE index dd536f54..c4b4459f 100644 --- a/LICENSE +++ b/LICENSE @@ -1,10 +1,14 @@ Apache Software License 2.0 +<<<<<<< HEAD <<<<<<< HEAD Copyright (c) 2021-2025, Network to Code, LLC ======= Copyright (c) 2021-2026, Network to Code, LLC >>>>>>> 016b1ed (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool) +======= +Copyright (c) 2021-2026, Network to Code, LLC +>>>>>>> 3ab07dc (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/README.md b/README.md index 969516fe..f8ccdef5 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Netutils

- +
@@ -18,9 +18,15 @@ A Python library that is a collection of functions that are used in the common n Full web-based HTML documentation for this library can be found over on the [Netutils Docs](https://netutils.readthedocs.io) website: +<<<<<<< HEAD - [User Guide](https://netutils.readthedocs.io/en/latest/user/lib_overview/) - Overview, Using the library, Getting Started. - [Administrator Guide](https://netutils.readthedocs.io/en/latest/admin/install/) - How to Install, Configure, Upgrade, or Uninstall the library. - [Developer Guide](https://netutils.readthedocs.io/en/latest/dev/contributing/) - Extending the library, Code Reference, Contribution Guide. +======= +- [User Guide](https://netutils.readthedocs.io/en/latest/user/app_overview/) - Overview, Using the Library, Getting Started. +- [Administrator Guide](https://netutils.readthedocs.io/en/latest/admin/install/) - How to Install, Configure, Upgrade, or Uninstall the Library. +- [Developer Guide](https://netutils.readthedocs.io/en/latest/dev/contributing/) - Extending the Library, Code Reference, Contribution Guide. +>>>>>>> 3ab07dc (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool) - [Release Notes / Changelog](https://netutils.readthedocs.io/en/latest/admin/release_notes/). - [Frequently Asked Questions](https://netutils.readthedocs.io/en/latest/user/faq/). diff --git a/docs/admin/release_notes/version_1.0.md b/docs/admin/release_notes/version_1.0.md index 9710b545..fd85f48b 100644 --- a/docs/admin/release_notes/version_1.0.md +++ b/docs/admin/release_notes/version_1.0.md @@ -6,11 +6,15 @@ - Commit to SemVer - F5 fixes +<<<<<<< HEAD <<<<<<< HEAD ## v1.0.0 - 2021-11 ======= ## [v1.0.0] - 2026-02-12 >>>>>>> 016b1ed (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool) +======= +## [v1.0.0] - 2026-03-03 +>>>>>>> 3ab07dc (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool) ### Added diff --git a/pyproject.toml b/pyproject.toml index af49011b..d25c0ef3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,6 +27,7 @@ include = [ [tool.poetry.dependencies] python = ">=3.10,<3.14" <<<<<<< HEAD +<<<<<<< HEAD napalm = {version = "^4.0.0", optional = true} jsonschema = {version = "^4.17.3", optional = true} legacycrypt = {version = "0.3", optional = true} @@ -34,6 +35,8 @@ legacycrypt = {version = "0.3", optional = true} [tool.poetry.extras] optionals = ["jsonschema", "napalm", "legacycrypt"] ======= +======= +>>>>>>> 3ab07dc (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool) click = "*" >>>>>>> 016b1ed (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool) diff --git a/tasks.py b/tasks.py index 86acbe74..e42bd62e 100644 --- a/tasks.py +++ b/tasks.py @@ -39,7 +39,7 @@ def is_truthy(arg): "python_ver": "3.10", "local": is_truthy(os.getenv("INVOKE_NETUTILS_LOCAL", "false")), "image_name": "netutils", - "image_ver": os.getenv("INVOKE_PARSER_IMAGE_VER", "latest"), + "image_ver": os.getenv("INVOKE_NETUTILS_IMAGE_VER", "latest"), "pwd": Path(__file__).parent, } } @@ -189,6 +189,16 @@ def pytest(context, pattern=None, label=None): exec_cmd = " && ".join([doc_test_cmd, pytest_cmd, coverage_cmd]) run_command(context, exec_cmd) + doc_test_cmd = "pytest -vv --doctest-modules netutils/" + pytest_cmd = "coverage run --source=netutils -m pytest" + if pattern: + pytest_cmd += "".join([f" -k {_pattern}" for _pattern in pattern]) + if label: + pytest_cmd += "".join([f" {_label}" for _label in label]) + coverage_cmd = "coverage report" + exec_cmd = " && ".join([doc_test_cmd, pytest_cmd, coverage_cmd]) + run_command(context, exec_cmd) + @task(aliases=("a",)) def autoformat(context): From 5d6929f230878996263126a0c305dd51a151e375 Mon Sep 17 00:00:00 2001 From: bakebot Date: Tue, 3 Mar 2026 22:16:46 +0000 Subject: [PATCH 3/6] Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool Template: ``` { "template": "https://github.com/networktocode-llc/cookiecutter-ntc.git", "dir": "python", "ref": "main", "path": "/__w/cookiecutter-nautobot-app-drift-manager/cookiecutter-nautobot-app-drift-manager/cookiecutter-ntc/python" } ``` Cookie: ``` { "remote": "https://github.com/networktocode/netutils.git", "path": "/tmp/tmp8oss3l1r/netutils", "repository_path": "/tmp/tmp8oss3l1r/netutils", "dir": "", "branch_prefix": "drift-manager/develop", "context": { "codeowner_github_usernames": "@itdependsnetworks @jeffkala @qduk", "full_name": "Network to Code, LLC", "email": "info@networktocode.com", "github_org": "networktocode", "description": "Common helper functions useful in network automation.", "project_name": "netutils", "project_slug": "netutils", "repo_url": "https://github.com/networktocode/netutils", "base_url": "netutils", "project_python_name": "netutils", "project_python_base_version": "3.10", "project_with_config_settings": "no", "generate_docs": "yes", "version": "1.15.1", "original_publish_year": "2021", "_template": "/__w/cookiecutter-nautobot-app-drift-manager/cookiecutter-nautobot-app-drift-manager/cookiecutter-ntc/python", "_output_dir": "/tmp/tmp8oss3l1r", "_repo_dir": "/__w/cookiecutter-nautobot-app-drift-manager/cookiecutter-nautobot-app-drift-manager/cookiecutter-ntc/python", "_checkout": null }, "drift_managed_branch": "develop", "remote_name": "origin", "pull_request_strategy": "PullRequestStrategy.UPDATE_OR_CREATE", "post_actions": [], "baked_commit_ref": "b23a9ed5a4714810d83670ad47cc182764c6d464", "draft": false } ``` CLI Arguments: ``` { "cookie_dir": "", "input": false, "json_filename": "", "output_dir": "", "push": true, "template": "./cookiecutter-ntc", "template_dir": "python", "template_ref": "main", "pull_request": "update-or-create", "post_action": [], "disable_post_actions": true, "draft": null, "drift_managed_branch": "develop" } ``` --- .cookiecutter.json | 4 ++++ .github/workflows/ci.yml | 8 ++++++++ .github/workflows/release.yml | 4 ++-- LICENSE | 4 ++++ README.md | 6 ++++++ docs/admin/release_notes/version_1.0.md | 4 ++++ pyproject.toml | 3 +++ tasks.py | 10 ++++++++++ 8 files changed, 41 insertions(+), 2 deletions(-) diff --git a/.cookiecutter.json b/.cookiecutter.json index 1ee02293..47fcf67a 100644 --- a/.cookiecutter.json +++ b/.cookiecutter.json @@ -24,6 +24,7 @@ "post_actions": [], "draft": false, <<<<<<< HEAD +<<<<<<< HEAD <<<<<<< HEAD "baked_commit_ref": "b23a9ed5a4714810d83670ad47cc182764c6d464", ======= @@ -32,6 +33,9 @@ ======= "baked_commit_ref": "7af44cb7e9a8e4894c9edfd2ee6ad8dc7b109de2", >>>>>>> 3ab07dc (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool) +======= + "baked_commit_ref": "46f70d30baa1e0c5af3da3fdcf1c77b31157d3f9", +>>>>>>> 67a15b6 (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool) "drift_managed_branch": "develop" } } diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1f0f0dd7..771d5182 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -134,11 +134,15 @@ jobs: cache-from: "type=gha,scope=${{ env.INVOKE_NETUTILS_IMAGE_NAME }}-${{ env.INVOKE_NETUTILS_IMAGE_VER }}-py${{ matrix.python-version }}" cache-to: "type=gha,scope=${{ env.INVOKE_NETUTILS_IMAGE_NAME }}-${{ env.INVOKE_NETUTILS_IMAGE_VER }}-py${{ matrix.python-version }}" build-args: | +<<<<<<< HEAD <<<<<<< HEAD PYTHON_VER=${{ matrix.python-version }} ======= PYTHON_VER=${{ env.INVOKE_{{cookiecutter.project_slug | upper}}_PYTHON_VER }} >>>>>>> 3ab07dc (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool) +======= + PYTHON_VER=${{ matrix.python-version }} +>>>>>>> 67a15b6 (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool) - name: "Linting: Pylint" run: "poetry run invoke pylint" pytest: @@ -175,11 +179,15 @@ jobs: cache-from: "type=gha,scope=${{ env.INVOKE_NETUTILS_IMAGE_NAME }}-${{ env.INVOKE_NETUTILS_IMAGE_VER }}-py${{ matrix.python-version }}" cache-to: "type=gha,scope=${{ env.INVOKE_NETUTILS_IMAGE_NAME }}-${{ env.INVOKE_NETUTILS_IMAGE_VER }}-py${{ matrix.python-version }}" build-args: | +<<<<<<< HEAD <<<<<<< HEAD PYTHON_VER=${{ matrix.python-version }} ======= PYTHON_VER=${{ env.INVOKE_{{cookiecutter.project_slug | upper}}_PYTHON_VER }} >>>>>>> 3ab07dc (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool) +======= + PYTHON_VER=${{ matrix.python-version }} +>>>>>>> 67a15b6 (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool) - name: "Run Tests" run: "poetry run invoke pytest" changelog: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a6cd1872..b8d962ee 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,6 +1,6 @@ --- name: "Release" -on: # yamllint disable-line rule:truthy rule:comments +on: # yamllint disable-line rule:truthy rule:comments release: types: ["published"] @@ -48,7 +48,7 @@ jobs: - name: "Upload binaries to release" run: "gh release upload ${{ github.ref_name }} dist/*.{tar.gz,whl}" env: - GH_TOKEN: "${{ secrets.NTC_GITHUB_TOKEN }}" + GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}" publish-pypi: name: "Push Package to PyPI" diff --git a/LICENSE b/LICENSE index c4b4459f..ca1fe257 100644 --- a/LICENSE +++ b/LICENSE @@ -1,5 +1,6 @@ Apache Software License 2.0 +<<<<<<< HEAD <<<<<<< HEAD <<<<<<< HEAD Copyright (c) 2021-2025, Network to Code, LLC @@ -9,6 +10,9 @@ Copyright (c) 2021-2026, Network to Code, LLC ======= Copyright (c) 2021-2026, Network to Code, LLC >>>>>>> 3ab07dc (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool) +======= +Copyright (c) 2021-2026, Network to Code, LLC +>>>>>>> 67a15b6 (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/README.md b/README.md index f8ccdef5..4621061f 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ A Python library that is a collection of functions that are used in the common n Full web-based HTML documentation for this library can be found over on the [Netutils Docs](https://netutils.readthedocs.io) website: +<<<<<<< HEAD <<<<<<< HEAD - [User Guide](https://netutils.readthedocs.io/en/latest/user/lib_overview/) - Overview, Using the library, Getting Started. - [Administrator Guide](https://netutils.readthedocs.io/en/latest/admin/install/) - How to Install, Configure, Upgrade, or Uninstall the library. @@ -27,6 +28,11 @@ Full web-based HTML documentation for this library can be found over on the [Net - [Administrator Guide](https://netutils.readthedocs.io/en/latest/admin/install/) - How to Install, Configure, Upgrade, or Uninstall the Library. - [Developer Guide](https://netutils.readthedocs.io/en/latest/dev/contributing/) - Extending the Library, Code Reference, Contribution Guide. >>>>>>> 3ab07dc (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool) +======= +- [User Guide](https://netutils.readthedocs.io/en/latest/user/app_overview/) - Overview, Using the Library, Getting Started. +- [Administrator Guide](https://netutils.readthedocs.io/en/latest/admin/install/) - How to Install, Configure, Upgrade, or Uninstall the Library. +- [Developer Guide](https://netutils.readthedocs.io/en/latest/dev/contributing/) - Extending the Library, Code Reference, Contribution Guide. +>>>>>>> 67a15b6 (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool) - [Release Notes / Changelog](https://netutils.readthedocs.io/en/latest/admin/release_notes/). - [Frequently Asked Questions](https://netutils.readthedocs.io/en/latest/user/faq/). diff --git a/docs/admin/release_notes/version_1.0.md b/docs/admin/release_notes/version_1.0.md index fd85f48b..0d5f8ee3 100644 --- a/docs/admin/release_notes/version_1.0.md +++ b/docs/admin/release_notes/version_1.0.md @@ -6,6 +6,7 @@ - Commit to SemVer - F5 fixes +<<<<<<< HEAD <<<<<<< HEAD <<<<<<< HEAD ## v1.0.0 - 2021-11 @@ -15,6 +16,9 @@ ======= ## [v1.0.0] - 2026-03-03 >>>>>>> 3ab07dc (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool) +======= +## [v1.0.0] - 2026-03-03 +>>>>>>> 67a15b6 (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool) ### Added diff --git a/pyproject.toml b/pyproject.toml index d25c0ef3..b91436e5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,6 +28,7 @@ include = [ python = ">=3.10,<3.14" <<<<<<< HEAD <<<<<<< HEAD +<<<<<<< HEAD napalm = {version = "^4.0.0", optional = true} jsonschema = {version = "^4.17.3", optional = true} legacycrypt = {version = "0.3", optional = true} @@ -37,6 +38,8 @@ optionals = ["jsonschema", "napalm", "legacycrypt"] ======= ======= >>>>>>> 3ab07dc (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool) +======= +>>>>>>> 67a15b6 (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool) click = "*" >>>>>>> 016b1ed (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool) diff --git a/tasks.py b/tasks.py index e42bd62e..91599e9f 100644 --- a/tasks.py +++ b/tasks.py @@ -199,6 +199,16 @@ def pytest(context, pattern=None, label=None): exec_cmd = " && ".join([doc_test_cmd, pytest_cmd, coverage_cmd]) run_command(context, exec_cmd) + doc_test_cmd = "pytest -vv --doctest-modules netutils/" + pytest_cmd = "coverage run --source=netutils -m pytest" + if pattern: + pytest_cmd += "".join([f" -k {_pattern}" for _pattern in pattern]) + if label: + pytest_cmd += "".join([f" {_label}" for _label in label]) + coverage_cmd = "coverage report" + exec_cmd = " && ".join([doc_test_cmd, pytest_cmd, coverage_cmd]) + run_command(context, exec_cmd) + @task(aliases=("a",)) def autoformat(context): From 8a42e9749916a6c594d92ce31f0bd06cfc80edb6 Mon Sep 17 00:00:00 2001 From: Jeff Kala Date: Tue, 3 Mar 2026 15:36:46 -0700 Subject: [PATCH 4/6] fix drift manager conflicts --- .cookiecutter.json | 12 ------------ .github/workflows/ci.yml | 16 ---------------- LICENSE | 12 ------------ README.md | 11 +---------- docs/admin/release_notes/version_1.0.md | 12 ------------ pyproject.toml | 10 ---------- 6 files changed, 1 insertion(+), 72 deletions(-) diff --git a/.cookiecutter.json b/.cookiecutter.json index 47fcf67a..e12990f5 100644 --- a/.cookiecutter.json +++ b/.cookiecutter.json @@ -23,19 +23,7 @@ "pull_request_strategy": "update-or-create", "post_actions": [], "draft": false, -<<<<<<< HEAD -<<<<<<< HEAD -<<<<<<< HEAD - "baked_commit_ref": "b23a9ed5a4714810d83670ad47cc182764c6d464", -======= - "baked_commit_ref": "a996428068385caa4a089ec4abfd1ac731fca674", ->>>>>>> 016b1ed (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool) -======= - "baked_commit_ref": "7af44cb7e9a8e4894c9edfd2ee6ad8dc7b109de2", ->>>>>>> 3ab07dc (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool) -======= "baked_commit_ref": "46f70d30baa1e0c5af3da3fdcf1c77b31157d3f9", ->>>>>>> 67a15b6 (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool) "drift_managed_branch": "develop" } } diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 771d5182..412c9963 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -134,15 +134,7 @@ jobs: cache-from: "type=gha,scope=${{ env.INVOKE_NETUTILS_IMAGE_NAME }}-${{ env.INVOKE_NETUTILS_IMAGE_VER }}-py${{ matrix.python-version }}" cache-to: "type=gha,scope=${{ env.INVOKE_NETUTILS_IMAGE_NAME }}-${{ env.INVOKE_NETUTILS_IMAGE_VER }}-py${{ matrix.python-version }}" build-args: | -<<<<<<< HEAD -<<<<<<< HEAD PYTHON_VER=${{ matrix.python-version }} -======= - PYTHON_VER=${{ env.INVOKE_{{cookiecutter.project_slug | upper}}_PYTHON_VER }} ->>>>>>> 3ab07dc (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool) -======= - PYTHON_VER=${{ matrix.python-version }} ->>>>>>> 67a15b6 (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool) - name: "Linting: Pylint" run: "poetry run invoke pylint" pytest: @@ -179,15 +171,7 @@ jobs: cache-from: "type=gha,scope=${{ env.INVOKE_NETUTILS_IMAGE_NAME }}-${{ env.INVOKE_NETUTILS_IMAGE_VER }}-py${{ matrix.python-version }}" cache-to: "type=gha,scope=${{ env.INVOKE_NETUTILS_IMAGE_NAME }}-${{ env.INVOKE_NETUTILS_IMAGE_VER }}-py${{ matrix.python-version }}" build-args: | -<<<<<<< HEAD -<<<<<<< HEAD - PYTHON_VER=${{ matrix.python-version }} -======= - PYTHON_VER=${{ env.INVOKE_{{cookiecutter.project_slug | upper}}_PYTHON_VER }} ->>>>>>> 3ab07dc (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool) -======= PYTHON_VER=${{ matrix.python-version }} ->>>>>>> 67a15b6 (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool) - name: "Run Tests" run: "poetry run invoke pytest" changelog: diff --git a/LICENSE b/LICENSE index ca1fe257..9e40eee1 100644 --- a/LICENSE +++ b/LICENSE @@ -1,18 +1,6 @@ Apache Software License 2.0 -<<<<<<< HEAD -<<<<<<< HEAD -<<<<<<< HEAD -Copyright (c) 2021-2025, Network to Code, LLC -======= Copyright (c) 2021-2026, Network to Code, LLC ->>>>>>> 016b1ed (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool) -======= -Copyright (c) 2021-2026, Network to Code, LLC ->>>>>>> 3ab07dc (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool) -======= -Copyright (c) 2021-2026, Network to Code, LLC ->>>>>>> 67a15b6 (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/README.md b/README.md index 4621061f..5d57aab5 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Netutils

- +
@@ -18,21 +18,12 @@ A Python library that is a collection of functions that are used in the common n Full web-based HTML documentation for this library can be found over on the [Netutils Docs](https://netutils.readthedocs.io) website: -<<<<<<< HEAD -<<<<<<< HEAD - [User Guide](https://netutils.readthedocs.io/en/latest/user/lib_overview/) - Overview, Using the library, Getting Started. - [Administrator Guide](https://netutils.readthedocs.io/en/latest/admin/install/) - How to Install, Configure, Upgrade, or Uninstall the library. - [Developer Guide](https://netutils.readthedocs.io/en/latest/dev/contributing/) - Extending the library, Code Reference, Contribution Guide. -======= - [User Guide](https://netutils.readthedocs.io/en/latest/user/app_overview/) - Overview, Using the Library, Getting Started. - [Administrator Guide](https://netutils.readthedocs.io/en/latest/admin/install/) - How to Install, Configure, Upgrade, or Uninstall the Library. - [Developer Guide](https://netutils.readthedocs.io/en/latest/dev/contributing/) - Extending the Library, Code Reference, Contribution Guide. ->>>>>>> 3ab07dc (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool) -======= -- [User Guide](https://netutils.readthedocs.io/en/latest/user/app_overview/) - Overview, Using the Library, Getting Started. -- [Administrator Guide](https://netutils.readthedocs.io/en/latest/admin/install/) - How to Install, Configure, Upgrade, or Uninstall the Library. -- [Developer Guide](https://netutils.readthedocs.io/en/latest/dev/contributing/) - Extending the Library, Code Reference, Contribution Guide. ->>>>>>> 67a15b6 (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool) - [Release Notes / Changelog](https://netutils.readthedocs.io/en/latest/admin/release_notes/). - [Frequently Asked Questions](https://netutils.readthedocs.io/en/latest/user/faq/). diff --git a/docs/admin/release_notes/version_1.0.md b/docs/admin/release_notes/version_1.0.md index 0d5f8ee3..63ef2244 100644 --- a/docs/admin/release_notes/version_1.0.md +++ b/docs/admin/release_notes/version_1.0.md @@ -6,19 +6,7 @@ - Commit to SemVer - F5 fixes -<<<<<<< HEAD -<<<<<<< HEAD -<<<<<<< HEAD ## v1.0.0 - 2021-11 -======= -## [v1.0.0] - 2026-02-12 ->>>>>>> 016b1ed (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool) -======= -## [v1.0.0] - 2026-03-03 ->>>>>>> 3ab07dc (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool) -======= -## [v1.0.0] - 2026-03-03 ->>>>>>> 67a15b6 (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool) ### Added diff --git a/pyproject.toml b/pyproject.toml index b91436e5..d8384cfa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,22 +26,12 @@ include = [ [tool.poetry.dependencies] python = ">=3.10,<3.14" -<<<<<<< HEAD -<<<<<<< HEAD -<<<<<<< HEAD napalm = {version = "^4.0.0", optional = true} jsonschema = {version = "^4.17.3", optional = true} legacycrypt = {version = "0.3", optional = true} [tool.poetry.extras] optionals = ["jsonschema", "napalm", "legacycrypt"] -======= -======= ->>>>>>> 3ab07dc (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool) -======= ->>>>>>> 67a15b6 (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool) -click = "*" ->>>>>>> 016b1ed (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool) [tool.poetry.group.dev.dependencies] coverage = "*" From 1486aadad075e9b34c28df9c7b523be79d951bf6 Mon Sep 17 00:00:00 2001 From: Jeff Kala Date: Tue, 3 Mar 2026 15:39:22 -0700 Subject: [PATCH 5/6] fix drift manager conflicts --- README.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/README.md b/README.md index 5d57aab5..93f99757 100644 --- a/README.md +++ b/README.md @@ -18,9 +18,6 @@ A Python library that is a collection of functions that are used in the common n Full web-based HTML documentation for this library can be found over on the [Netutils Docs](https://netutils.readthedocs.io) website: -- [User Guide](https://netutils.readthedocs.io/en/latest/user/lib_overview/) - Overview, Using the library, Getting Started. -- [Administrator Guide](https://netutils.readthedocs.io/en/latest/admin/install/) - How to Install, Configure, Upgrade, or Uninstall the library. -- [Developer Guide](https://netutils.readthedocs.io/en/latest/dev/contributing/) - Extending the library, Code Reference, Contribution Guide. - [User Guide](https://netutils.readthedocs.io/en/latest/user/app_overview/) - Overview, Using the Library, Getting Started. - [Administrator Guide](https://netutils.readthedocs.io/en/latest/admin/install/) - How to Install, Configure, Upgrade, or Uninstall the Library. - [Developer Guide](https://netutils.readthedocs.io/en/latest/dev/contributing/) - Extending the Library, Code Reference, Contribution Guide. From 17d9a2abef84cd76f9fe707f78d12c27a715e8d7 Mon Sep 17 00:00:00 2001 From: Jeff Kala Date: Tue, 3 Mar 2026 15:40:39 -0700 Subject: [PATCH 6/6] fix drift manager conflicts --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 93f99757..969516fe 100644 --- a/README.md +++ b/README.md @@ -18,9 +18,9 @@ A Python library that is a collection of functions that are used in the common n Full web-based HTML documentation for this library can be found over on the [Netutils Docs](https://netutils.readthedocs.io) website: -- [User Guide](https://netutils.readthedocs.io/en/latest/user/app_overview/) - Overview, Using the Library, Getting Started. -- [Administrator Guide](https://netutils.readthedocs.io/en/latest/admin/install/) - How to Install, Configure, Upgrade, or Uninstall the Library. -- [Developer Guide](https://netutils.readthedocs.io/en/latest/dev/contributing/) - Extending the Library, Code Reference, Contribution Guide. +- [User Guide](https://netutils.readthedocs.io/en/latest/user/lib_overview/) - Overview, Using the library, Getting Started. +- [Administrator Guide](https://netutils.readthedocs.io/en/latest/admin/install/) - How to Install, Configure, Upgrade, or Uninstall the library. +- [Developer Guide](https://netutils.readthedocs.io/en/latest/dev/contributing/) - Extending the library, Code Reference, Contribution Guide. - [Release Notes / Changelog](https://netutils.readthedocs.io/en/latest/admin/release_notes/). - [Frequently Asked Questions](https://netutils.readthedocs.io/en/latest/user/faq/).