Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 0.9.0 prep #136

Merged
merged 81 commits into from
Sep 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
734b8bd
0.7.0-beta.0 release
mzbroch Sep 14, 2022
2444cb6
Merge pull request #63 from nautobot/mzb-beta-release
mzbroch Sep 14, 2022
0329224
Bump oauthlib from 3.2.0 to 3.2.1
dependabot[bot] Sep 17, 2022
78e3348
Make CI nautobot version match default invoke nautobot version
glennmatthews Sep 19, 2022
8feba5e
Make CI nautobot version match default invoke nautobot version
glennmatthews Sep 19, 2022
a6f0184
Merge pull request #64 from nautobot/dependabot/pip/oauthlib-3.2.1
glennmatthews Sep 19, 2022
70bc304
Fix signals for post_migrate_create_statuses
mzbroch Sep 19, 2022
7b525f3
Merge pull request #65 from nautobot/mzb-signals
mzbroch Sep 20, 2022
490d456
0.7.0-beta.1 release
mzbroch Sep 20, 2022
6a93142
Merge pull request #66 from nautobot/mzb-1.4develop
mzbroch Sep 20, 2022
9c66c67
Bump certifi from 2022.6.15 to 2022.12.7 (#69)
dependabot[bot] Dec 9, 2022
509cabb
Changed extends 'base.html' to extends 'generic/object_list.html' in …
briddo Jan 20, 2023
7b7b1ec
Added .idea/ to .gitignore
briddo Jan 20, 2023
dd9b2e4
Revert "Added .idea/ to .gitignore"
briddo Jan 24, 2023
bc97895
Revert "Changed extends 'base.html' to extends 'generic/object_list.h…
briddo Jan 24, 2023
5109e9f
CODEOWNERS update (#85)
mzbroch Feb 13, 2023
cb1cc1c
Development updates
mzbroch Mar 16, 2023
378d0a6
Fixing for black and flake8 compliance
mzbroch Mar 16, 2023
429233b
chore: Ignore static files in git
snaselj Mar 17, 2023
c4b6513
fix: Set minimal Nautobot version to 1.5.4
snaselj Mar 17, 2023
518c5b0
fix: Skip tests on disabled routes
snaselj Mar 17, 2023
d947c0c
fix: Align CI with the template
snaselj Mar 17, 2023
a904285
fix: pylint invalid import
snaselj Mar 17, 2023
4c1ab9a
fix: `TESTING` used before defined
snaselj Mar 17, 2023
fa2de0c
chore: Align tasks with the template
snaselj Mar 17, 2023
e089cc2
chore: Temporary enable upstream tests on push
snaselj Mar 17, 2023
fc4db53
fix: Skip not implemented `test_notes`
snaselj Mar 17, 2023
4f2781f
fix: Missing `relationships` in API responses
snaselj Mar 17, 2023
9758fd2
fix: Skip list view tests for Nautobot < 1.5.12
snaselj Mar 17, 2023
b03a41c
chore: Do not trigger upstream tests on push
snaselj Mar 17, 2023
5e32a0b
fix: Add mkdocs to invoke and ci
snaselj Mar 21, 2023
7da35ce
Merge pull request #90 from nautobot/mzb-upstream
mzbroch Mar 22, 2023
815dae2
Existing docs migrated to new structure
cmsirbu Dec 13, 2022
dbcca69
Updating poetry.lock
Mar 23, 2023
6367bb3
fix: update version to correct format in pyproject.toml
mzbroch Mar 29, 2023
da66231
Merge pull request #73 from nautobot/cmsirbu-docs-reorg
mzbroch Mar 29, 2023
ed3fba7
fix: allow read/write for extra attributes from API
mzbroch May 10, 2023
d9ed3c4
unittest: Disable peer endpoint update/create testcase.
mzbroch May 15, 2023
c9de322
Merge pull request #99 from nautobot/mzb-extraattrs
mzbroch May 15, 2023
afcb05d
release: version 0.7.0
mzbroch May 16, 2023
fea3103
Merge pull request #101 from nautobot/develop-0.7.0
mzbroch May 16, 2023
b3657ec
release: version 0.7.0
mzbroch May 16, 2023
9ea1bb3
Merge pull request #102 from nautobot/develop-0.7.0
mzbroch May 16, 2023
088f801
release: version 0.7.0 - updating gh token
mzbroch May 16, 2023
313725d
Merge pull request #103 from nautobot/develop-0.7.0
mzbroch May 16, 2023
1463203
fix:
mzbroch May 17, 2023
2c80873
change: remove role and enabled from brief fields in PeerGroupTemplat…
mzbroch May 18, 2023
798081a
change: add RelationshipModelSerializerMixin for PeerGroupTemplate an…
mzbroch May 18, 2023
97194cf
change: add PeerGroupTemplateAPITestCase
mzbroch May 18, 2023
5f8b199
Merge pull request #104 from nautobot/develop-mzb-serializers
mzbroch May 18, 2023
f205f65
release: 0.7.1
mzbroch May 19, 2023
20ba088
Merge pull request #105 from nautobot/develop-0.7.1
mzbroch May 19, 2023
cc9bcb2
Migrate to viewsets
whitej6 Mar 14, 2023
2029f4a
unittest fix
mzbroch Jun 14, 2023
e1eb00d
Updating CSVModelForm to CustomFieldModelCSVForm in forms
mzbroch Jun 22, 2023
c6ad7c9
#96 Migration cleanup
mzbroch Jun 22, 2023
c4dc1dd
Adding status check for BGP Routing Instance
mzbroch Jun 22, 2023
23adfbe
Merge pull request #96 from nautobot/mzb-jwhite-viewset
mzbroch Jun 22, 2023
902dd91
Device Role and Peer Endpoint Role filters for Peering model
mzbroch Jul 24, 2023
a8e39bc
Disable endpoint ordering in Peering table until fixed
mzbroch Jul 24, 2023
64383d1
Disable peering ordering in Peering table until fixed
mzbroch Jul 24, 2023
d6119b0
Fixing black.
mzbroch Jul 24, 2023
92fd761
Merge pull request #116 from nautobot/develop-fix-orderable
mzbroch Aug 10, 2023
3185312
Adding unit tests for Peering model filters
mzbroch Aug 11, 2023
a508c79
Fix missing status field in BGP Routing Instance form
mzbroch Aug 11, 2023
9c05bf6
Merge pull request #120 from nautobot/develop-119
mzbroch Aug 11, 2023
e1f277c
Merge pull request #114 from nautobot/develop-filters
mzbroch Aug 11, 2023
7024de1
Remove enforcement for ASN's provider
mzbroch Aug 18, 2023
b923c54
Fix unit test for API Peer Endpoint model
mzbroch Aug 18, 2023
a098c43
Merge pull request #123 from nautobot/develop-122
mzbroch Aug 24, 2023
9d4175f
Dropping Python 3.7
mzbroch Aug 24, 2023
62c05cd
Fixing pylint issues after pylint upgrade
mzbroch Aug 24, 2023
47ebdd0
Adding python 3.11 into CI matrix
mzbroch Aug 24, 2023
7473845
Merge pull request #124 from nautobot/develop-drop-py37
mzbroch Aug 24, 2023
082a4b5
Release 0.8.0
mzbroch Aug 24, 2023
2cb9e19
Merge pull request #125 from nautobot/develop-0.8.0
mzbroch Aug 24, 2023
c56acb2
Pin mkdocstrings-python to 1.4.0 to have compatibility with griffe
mzbroch Aug 24, 2023
fcdedf7
Merge pull request #126 from nautobot/develop-0.8.0
mzbroch Aug 24, 2023
50a033b
PeerGroupAddressFamily and PeerEndpointAddressFamily (#132)
glennmatthews Sep 27, 2023
ebb02e6
Bump version and update release note
glennmatthews Sep 27, 2023
eb60cde
Docs updates
glennmatthews Sep 27, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 15 additions & 5 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,26 @@
development/Dockerfile
development/docker-compose*.yml
development/*.env
*.env
environments/

# Python
**/*.pyc
**/*.pyo
**/__pycache__/
**/.pytest_cache/
**/.venv/

# Linting, etc.
.yamllint
.flake8
.bandit.yml
.pydocstyle.ini

# Other
docs/_build
FAQ.md
.git/
.gitignore
.github
tasks.py
LICENSE
**/*.log
**/.vscode/
invoke*.yml
tasks.py
9 changes: 7 additions & 2 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
[flake8]
# E501: Line length is enforced by Black, so flake8 doesn't need to check it
# F405: Star Imports for Nested Serializers (brief fields issue)
# W503: Black disagrees with this rule, as does PEP 8; Black wins
ignore = E501, F405, W503
ignore = E501, W503
exclude =
migrations,
__pycache__,
manage.py,
settings.py,
.venv
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Default owner(s) of all files in this repository
* @glennmatthews @carbonarok
* @glennmatthews @mzbroch
51 changes: 38 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
---
name: "CI"
concurrency: # Cancel any existing runs of this workflow for this same PR
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
on: # yamllint disable-line rule:truthy rule:comments
push:
branches:
Expand All @@ -21,7 +24,7 @@ jobs:
- name: "Check out repository code"
uses: "actions/checkout@v2"
- name: "Setup environment"
uses: "networktocode/gh-action-setup-poetry-environment@v2"
uses: "networktocode/gh-action-setup-poetry-environment@v4"
- name: "Linting: black"
run: "poetry run invoke black"
bandit:
Expand All @@ -32,7 +35,7 @@ jobs:
- name: "Check out repository code"
uses: "actions/checkout@v2"
- name: "Setup environment"
uses: "networktocode/gh-action-setup-poetry-environment@v2"
uses: "networktocode/gh-action-setup-poetry-environment@v4"
- name: "Linting: bandit"
run: "poetry run invoke bandit"
pydocstyle:
Expand All @@ -43,7 +46,7 @@ jobs:
- name: "Check out repository code"
uses: "actions/checkout@v2"
- name: "Setup environment"
uses: "networktocode/gh-action-setup-poetry-environment@v2"
uses: "networktocode/gh-action-setup-poetry-environment@v4"
- name: "Linting: pydocstyle"
run: "poetry run invoke pydocstyle"
flake8:
Expand All @@ -54,7 +57,7 @@ jobs:
- name: "Check out repository code"
uses: "actions/checkout@v2"
- name: "Setup environment"
uses: "networktocode/gh-action-setup-poetry-environment@v2"
uses: "networktocode/gh-action-setup-poetry-environment@v4"
- name: "Linting: flake8"
run: "poetry run invoke flake8"
yamllint:
Expand All @@ -65,7 +68,7 @@ jobs:
- name: "Check out repository code"
uses: "actions/checkout@v2"
- name: "Setup environment"
uses: "networktocode/gh-action-setup-poetry-environment@v2"
uses: "networktocode/gh-action-setup-poetry-environment@v4"
- name: "Linting: yamllint"
run: "poetry run invoke yamllint"
pylint:
Expand All @@ -79,16 +82,16 @@ jobs:
strategy:
fail-fast: true
matrix:
python-version: ["3.7"]
nautobot-version: ["1.3.3"]
python-version: ["3.8"]
nautobot-version: ["1.5.4"]
env:
INVOKE_NAUTOBOT_BGP_MODELS_PYTHON_VER: "${{ matrix.python-version }}"
INVOKE_NAUTOBOT_BGP_MODELS_NAUTOBOT_VER: "${{ matrix.nautobot-version }}"
steps:
- name: "Check out repository code"
uses: "actions/checkout@v2"
- name: "Setup environment"
uses: "networktocode/gh-action-setup-poetry-environment@v2"
uses: "networktocode/gh-action-setup-poetry-environment@v4"
- name: "Set up Docker Buildx"
id: "buildx"
uses: "docker/setup-buildx-action@v1"
Expand Down Expand Up @@ -116,9 +119,19 @@ jobs:
strategy:
fail-fast: true
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10", "3.11"]
db-backend: ["postgresql"]
nautobot-version: ["1.3.3", "stable"]
nautobot-version: ["stable"]
include:
- python-version: "3.10"
db-backend: "postgresql"
nautobot-version: "1.5.4"
- python-version: "3.8"
db-backend: "mysql"
nautobot-version: "1.5.4"
- python-version: "3.10"
db-backend: "mysql"
nautobot-version: "stable"
runs-on: "ubuntu-20.04"
env:
INVOKE_NAUTOBOT_BGP_MODELS_PYTHON_VER: "${{ matrix.python-version }}"
Expand All @@ -127,7 +140,7 @@ jobs:
- name: "Check out repository code"
uses: "actions/checkout@v2"
- name: "Setup environment"
uses: "networktocode/gh-action-setup-poetry-environment@v2"
uses: "networktocode/gh-action-setup-poetry-environment@v4"
- name: "Set up Docker Buildx"
id: "buildx"
uses: "docker/setup-buildx-action@v1"
Expand All @@ -147,6 +160,9 @@ jobs:
PYTHON_VER=${{ matrix.python-version }}
- name: "Copy credentials"
run: "cp development/creds.example.env development/creds.env"
- name: "Use Mysql invoke settings when needed"
run: "cp invoke.mysql.yml invoke.yml"
if: "matrix.db-backend == 'mysql'"
- name: "Run Tests"
run: "poetry run invoke unittest"
publish_gh:
Expand All @@ -168,6 +184,10 @@ jobs:
run: "echo RELEASE_VERSION=${GITHUB_REF:10} >> $GITHUB_ENV"
- name: "Run Poetry Version"
run: "poetry version $RELEASE_VERSION"
- name: "Install Dependencies (needed for mkdocs)"
run: "poetry install"
- name: "Build Documentation"
run: "poetry run mkdocs build --no-directory-urls --strict"
- name: "Run Poetry Build"
run: "poetry build"
- name: "Upload binaries to release"
Expand Down Expand Up @@ -197,6 +217,10 @@ jobs:
run: "echo RELEASE_VERSION=${GITHUB_REF:10} >> $GITHUB_ENV"
- name: "Run Poetry Version"
run: "poetry version $RELEASE_VERSION"
- name: "Install Dependencies (needed for mkdocs)"
run: "poetry install"
- name: "Build Documentation"
run: "poetry run mkdocs build --no-directory-urls --strict"
- name: "Run Poetry Build"
run: "poetry build"
- name: "Push to PyPI"
Expand All @@ -210,7 +234,7 @@ jobs:
- "publish_pypi"
runs-on: "ubuntu-20.04"
env:
SLACK_WEBHOOK_URL: "${{ '{{ secrets.SLACK_WEBHOOK_URL }}' }}"
SLACK_WEBHOOK_URL: "${{ secrets.SLACK_WEBHOOK_URL }}"
SLACK_MESSAGE: >-
*NOTIFICATION: NEW-RELEASE-PUBLISHED*\n
Repository: <${{ github.server_url }}/${{ github.repository }}|${{ github.repository }}>\n
Expand All @@ -220,11 +244,12 @@ jobs:
- name: "Send a notification to Slack"
# ENVs cannot be used directly in job.if. This is a workaround to check
# if SLACK_WEBHOOK_URL is present.
if: "${{ env.SLACK_WEBHOOK_URL != '' }}"
if: "env.SLACK_WEBHOOK_URL != ''"
uses: "slackapi/slack-github-action@v1.17.0"
with:
payload: |
{
"text": "${{ env.SLACK_MESSAGE }}",
"blocks": [
{
"type": "section",
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/upstream_testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
name: "Nautobot Upstream Monitor"

on: # yamllint disable-line rule:truthy rule:comments
schedule:
- cron: "0 4 */2 * *" # every other day at midnight

jobs:
upstream-test:
uses: "nautobot/nautobot/.github/workflows/plugin_upstream_testing_base.yml@develop"
with: # Below could potentially be collapsed into a single argument if a concrete relationship between both is enforced
invoke_context_name: "NAUTOBOT_BGP_MODELS"
plugin_name: "nautobot-bgp-models"
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,14 @@ fabric.properties

# Rando
creds.env
development/*.txt

# Invoke overrides
invoke.yml

# Docs
docs/README.md
docs/CHANGELOG.md
public

nautobot_bgp_models/static
22 changes: 22 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
# .readthedocs.yaml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Set the version of Python in the build environment.
build:
os: "ubuntu-22.04"
tools:
python: "3.10"

mkdocs:
configuration: "mkdocs.yml"
fail_on_warning: true

# Use our docs/requirements.txt during installation.
python:
install:
- requirements: "docs/requirements.txt"
1 change: 0 additions & 1 deletion CHANGELOG.md

This file was deleted.

12 changes: 0 additions & 12 deletions CONTRIBUTING.md

This file was deleted.

Loading
Loading