Skip to content

Commit 5d6929f

Browse files
author
bakebot
committed
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" } ```
1 parent 7560b3a commit 5d6929f

8 files changed

Lines changed: 41 additions & 2 deletions

File tree

.cookiecutter.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"post_actions": [],
2525
"draft": false,
2626
<<<<<<< HEAD
27+
<<<<<<< HEAD
2728
<<<<<<< HEAD
2829
"baked_commit_ref": "b23a9ed5a4714810d83670ad47cc182764c6d464",
2930
=======
@@ -32,6 +33,9 @@
3233
=======
3334
"baked_commit_ref": "7af44cb7e9a8e4894c9edfd2ee6ad8dc7b109de2",
3435
>>>>>>> 3ab07dc (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool)
36+
=======
37+
"baked_commit_ref": "46f70d30baa1e0c5af3da3fdcf1c77b31157d3f9",
38+
>>>>>>> 67a15b6 (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool)
3539
"drift_managed_branch": "develop"
3640
}
3741
}

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,15 @@ jobs:
134134
cache-from: "type=gha,scope=${{ env.INVOKE_NETUTILS_IMAGE_NAME }}-${{ env.INVOKE_NETUTILS_IMAGE_VER }}-py${{ matrix.python-version }}"
135135
cache-to: "type=gha,scope=${{ env.INVOKE_NETUTILS_IMAGE_NAME }}-${{ env.INVOKE_NETUTILS_IMAGE_VER }}-py${{ matrix.python-version }}"
136136
build-args: |
137+
<<<<<<< HEAD
137138
<<<<<<< HEAD
138139
PYTHON_VER=${{ matrix.python-version }}
139140
=======
140141
PYTHON_VER=${{ env.INVOKE_{{cookiecutter.project_slug | upper}}_PYTHON_VER }}
141142
>>>>>>> 3ab07dc (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool)
143+
=======
144+
PYTHON_VER=${{ matrix.python-version }}
145+
>>>>>>> 67a15b6 (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool)
142146
- name: "Linting: Pylint"
143147
run: "poetry run invoke pylint"
144148
pytest:
@@ -175,11 +179,15 @@ jobs:
175179
cache-from: "type=gha,scope=${{ env.INVOKE_NETUTILS_IMAGE_NAME }}-${{ env.INVOKE_NETUTILS_IMAGE_VER }}-py${{ matrix.python-version }}"
176180
cache-to: "type=gha,scope=${{ env.INVOKE_NETUTILS_IMAGE_NAME }}-${{ env.INVOKE_NETUTILS_IMAGE_VER }}-py${{ matrix.python-version }}"
177181
build-args: |
182+
<<<<<<< HEAD
178183
<<<<<<< HEAD
179184
PYTHON_VER=${{ matrix.python-version }}
180185
=======
181186
PYTHON_VER=${{ env.INVOKE_{{cookiecutter.project_slug | upper}}_PYTHON_VER }}
182187
>>>>>>> 3ab07dc (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool)
188+
=======
189+
PYTHON_VER=${{ matrix.python-version }}
190+
>>>>>>> 67a15b6 (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool)
183191
- name: "Run Tests"
184192
run: "poetry run invoke pytest"
185193
changelog:

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: "Release"
3-
on: # yamllint disable-line rule:truthy rule:comments
3+
on: # yamllint disable-line rule:truthy rule:comments
44
release:
55
types: ["published"]
66

@@ -48,7 +48,7 @@ jobs:
4848
- name: "Upload binaries to release"
4949
run: "gh release upload ${{ github.ref_name }} dist/*.{tar.gz,whl}"
5050
env:
51-
GH_TOKEN: "${{ secrets.NTC_GITHUB_TOKEN }}"
51+
GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
5252

5353
publish-pypi:
5454
name: "Push Package to PyPI"

LICENSE

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
Apache Software License 2.0
22

3+
<<<<<<< HEAD
34
<<<<<<< HEAD
45
<<<<<<< HEAD
56
Copyright (c) 2021-2025, Network to Code, LLC
@@ -9,6 +10,9 @@ Copyright (c) 2021-2026, Network to Code, LLC
910
=======
1011
Copyright (c) 2021-2026, Network to Code, LLC
1112
>>>>>>> 3ab07dc (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool)
13+
=======
14+
Copyright (c) 2021-2026, Network to Code, LLC
15+
>>>>>>> 67a15b6 (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool)
1216

1317
Licensed under the Apache License, Version 2.0 (the "License");
1418
you may not use this file except in compliance with the License.

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ A Python library that is a collection of functions that are used in the common n
1818

1919
Full web-based HTML documentation for this library can be found over on the [Netutils Docs](https://netutils.readthedocs.io) website:
2020

21+
<<<<<<< HEAD
2122
<<<<<<< HEAD
2223
- [User Guide](https://netutils.readthedocs.io/en/latest/user/lib_overview/) - Overview, Using the library, Getting Started.
2324
- [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
2728
- [Administrator Guide](https://netutils.readthedocs.io/en/latest/admin/install/) - How to Install, Configure, Upgrade, or Uninstall the Library.
2829
- [Developer Guide](https://netutils.readthedocs.io/en/latest/dev/contributing/) - Extending the Library, Code Reference, Contribution Guide.
2930
>>>>>>> 3ab07dc (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool)
31+
=======
32+
- [User Guide](https://netutils.readthedocs.io/en/latest/user/app_overview/) - Overview, Using the Library, Getting Started.
33+
- [Administrator Guide](https://netutils.readthedocs.io/en/latest/admin/install/) - How to Install, Configure, Upgrade, or Uninstall the Library.
34+
- [Developer Guide](https://netutils.readthedocs.io/en/latest/dev/contributing/) - Extending the Library, Code Reference, Contribution Guide.
35+
>>>>>>> 67a15b6 (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool)
3036
- [Release Notes / Changelog](https://netutils.readthedocs.io/en/latest/admin/release_notes/).
3137
- [Frequently Asked Questions](https://netutils.readthedocs.io/en/latest/user/faq/).
3238

docs/admin/release_notes/version_1.0.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
- Commit to SemVer
77
- F5 fixes
88

9+
<<<<<<< HEAD
910
<<<<<<< HEAD
1011
<<<<<<< HEAD
1112
## v1.0.0 - 2021-11
@@ -15,6 +16,9 @@
1516
=======
1617
## [v1.0.0] - 2026-03-03
1718
>>>>>>> 3ab07dc (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool)
19+
=======
20+
## [v1.0.0] - 2026-03-03
21+
>>>>>>> 67a15b6 (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool)
1822
1923
### Added
2024

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ include = [
2828
python = ">=3.10,<3.14"
2929
<<<<<<< HEAD
3030
<<<<<<< HEAD
31+
<<<<<<< HEAD
3132
napalm = {version = "^4.0.0", optional = true}
3233
jsonschema = {version = "^4.17.3", optional = true}
3334
legacycrypt = {version = "0.3", optional = true}
@@ -37,6 +38,8 @@ optionals = ["jsonschema", "napalm", "legacycrypt"]
3738
=======
3839
=======
3940
>>>>>>> 3ab07dc (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool)
41+
=======
42+
>>>>>>> 67a15b6 (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool)
4043
click = "*"
4144
>>>>>>> 016b1ed (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool)
4245

tasks.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,16 @@ def pytest(context, pattern=None, label=None):
199199
exec_cmd = " && ".join([doc_test_cmd, pytest_cmd, coverage_cmd])
200200
run_command(context, exec_cmd)
201201

202+
doc_test_cmd = "pytest -vv --doctest-modules netutils/"
203+
pytest_cmd = "coverage run --source=netutils -m pytest"
204+
if pattern:
205+
pytest_cmd += "".join([f" -k {_pattern}" for _pattern in pattern])
206+
if label:
207+
pytest_cmd += "".join([f" {_label}" for _label in label])
208+
coverage_cmd = "coverage report"
209+
exec_cmd = " && ".join([doc_test_cmd, pytest_cmd, coverage_cmd])
210+
run_command(context, exec_cmd)
211+
202212

203213
@task(aliases=("a",))
204214
def autoformat(context):

0 commit comments

Comments
 (0)