Compare commits

...

7 commits

Author SHA1 Message Date
f414f8aa12 Fix CI
All checks were successful
CD / ci (push) Successful in 1m11s
CI / ci (push) Successful in 1m13s
2025-02-19 12:43:39 +01:00
a9c55489a6 Correctly assign project dependencies 2025-02-19 12:42:23 +01:00
449ec8dc27 Reorganise pyproject.toml 2025-02-19 12:41:34 +01:00
9a89280f6e Expose application as script 2025-02-19 12:38:18 +01:00
6619b63917 Rename root package name 2025-02-19 12:34:14 +01:00
3f99e77f5b Add dependencies 2025-02-19 12:25:34 +01:00
7593c27b00 Add CD 2025-02-19 12:21:57 +01:00
6 changed files with 42 additions and 7 deletions

View file

@ -0,0 +1,25 @@
name: CD
on:
push:
tags:
- '*'
jobs:
ci:
runs-on: docker
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.13'
cache: 'pip'
- run: pip install -r requirements.txt
- run: python3 -m build
- run: twine upload dist/*
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}

View file

@ -14,4 +14,4 @@ jobs:
- run: pip install -r requirements.txt - run: pip install -r requirements.txt
- run: pylint --max-line-length=120 app - run: pylint --max-line-length=120 pfsense_netbox_sync

View file

View file

@ -1,5 +1,7 @@
[build-system] [build-system]
requires = ["setuptools>=61.0"] requires = [
"setuptools>=61.0",
]
build-backend = "setuptools.build_meta" build-backend = "setuptools.build_meta"
[project] [project]
@ -15,10 +17,17 @@ classifiers = [
"Programming Language :: Python :: 3", "Programming Language :: Python :: 3",
"Operating System :: OS Independent", "Operating System :: OS Independent",
] ]
dependencies = [
[license] "pynetbox>=7.4",
file = 'LICENSE.txt' "requests>=2.32",
]
[project.urls] [project.urls]
Homepage = "https://git.creekorful.cloud/creekorful/pfsense-netbox-sync" Homepage = "https://git.creekorful.cloud/creekorful/pfsense-netbox-sync"
Issues = "https://git.creekorful.cloud/creekorful/pfsense-netbox-sync/issues" Issues = "https://git.creekorful.cloud/creekorful/pfsense-netbox-sync/issues"
[project.scripts]
pfnbsync = "pfsense_netbox_sync:main"
[license]
file = 'LICENSE.txt'

View file

@ -1,4 +1,5 @@
pynetbox==7.4.1 pynetbox==7.4.1
requests==2.32.3 requests==2.32.3
pylint==3.3.4 pylint==3.3.4
build==1.2.2.post1 build==1.2.2.post1
twine==6.1.0