-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature-pr-test
- Loading branch information
Showing
83 changed files
with
772 additions
and
361 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,8 +20,17 @@ jobs: | |
- id: git-checkout | ||
name: Checkout | ||
uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
- name: Install uv | ||
run: pip install uv | ||
- id: build-and-publish | ||
name: Build and publish to pypi | ||
uses: JRubics/[email protected] | ||
with: | ||
pypi_token: ${{ secrets.PYPI_TOKEN }} | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} | ||
TWINE_NON_INTERACTIVE: "true" | ||
run: | | ||
uvx --from build pyproject-build | ||
uvx twine upload dist/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,48 @@ | ||
[tool.poetry] | ||
authors = ["Tobias Genannt <[email protected]>"] | ||
[project] | ||
name = "netbox-initializers" | ||
authors = [{ name = "Tobias Genannt", email = "[email protected]" }] | ||
classifiers = [ | ||
"Framework :: Django", | ||
"Environment :: Plugins", | ||
"Topic :: System :: Networking", | ||
"Topic :: System :: Systems Administration" | ||
"Topic :: System :: Systems Administration", | ||
] | ||
description = "Load initial data into Netbox" | ||
license = "Apache-2.0" | ||
name = "netbox-initializers" | ||
readme = "README.md" | ||
repository = "https://github.com/tobiasge/netbox-initializers" | ||
version = "3.7.2" | ||
license = "Apache-2.0" | ||
dynamic = ["version"] | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.8" | ||
"ruamel.yaml" = "0.18.6" | ||
requires-python = ">=3.10" | ||
dependencies = ["ruamel-yaml>=0.18.10"] | ||
|
||
[build-system] | ||
build-backend = "poetry.core.masonry.api" | ||
requires = ["poetry-core"] | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[tool.black] | ||
line_length = 100 | ||
target-version = ['py310'] | ||
[tool.hatch.version] | ||
path = "src/netbox_initializers/version.py" | ||
|
||
[tool.isort] | ||
line_length = 100 | ||
multi_line_output = 3 | ||
profile = "black" | ||
[tool.uv] | ||
dev-dependencies = ["ruff==0.9.1"] | ||
|
||
[tool.ruff] | ||
line-length = 100 | ||
target-version = "py311" | ||
|
||
[tool.ruff.lint] | ||
extend-select = ["I", "PL", "W191", "W291", "W292", "W293"] | ||
ignore = ["PLR0912", "PLR0915"] | ||
|
||
[tool.ruff.lint.isort] | ||
section-order = [ | ||
"future", | ||
"standard-library", | ||
"third-party", | ||
"first-party", | ||
"local-folder", | ||
] | ||
|
||
[tool.pylint.format] | ||
max-line-length = "100" | ||
[tool.ruff.format] | ||
docstring-code-format = true | ||
docstring-code-line-length = "dynamic" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
from netbox.plugins import PluginConfig | ||
|
||
from netbox_initializers.version import VERSION | ||
|
||
|
||
class NetBoxInitializersConfig(PluginConfig): | ||
name = "netbox_initializers" | ||
verbose_name = "NetBox Initializers" | ||
description = "Load initial data into Netbox" | ||
version = "3.7.2" | ||
version = VERSION | ||
base_url = "initializers" | ||
min_version = "3.7.0" | ||
max_version = "3.7.99" | ||
min_version = "4.2.0" | ||
max_version = "4.2.99" | ||
|
||
|
||
config = NetBoxInitializersConfig |
Oops, something went wrong.