Skip to content

Commit c6993ae

Browse files
committed
moves to vcf-sdk and bumps docker python version to 3.14
1 parent a66dc2c commit c6993ae

5 files changed

Lines changed: 47 additions & 9 deletions

File tree

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
FROM python:3.13-slim AS builder
1+
FROM python:3.14-slim AS builder
22

33
COPY requirements.txt .
44

55
ARG VENV=/opt/netbox-sync/venv
66

77
# Install dependencies
8-
RUN apt-get update && apt-get install -y --no-install-recommends git gcc libc-dev && \
8+
RUN apt-get update && \
99
rm -rf /var/lib/apt/lists/* && \
1010
python3 -m venv $VENV && \
1111
$VENV/bin/python3 -m pip install --upgrade pip && \
1212
$VENV/bin/pip install -r requirements.txt && \
13-
$VENV/bin/pip install --upgrade git+https://github.com/vmware/vsphere-automation-sdk-python.git && \
13+
$VENV/bin/pip install --upgrade vcf-sdk && \
1414
find $VENV -type d -name "__pycache__" -print0 | xargs -0 -n1 rm -rf
1515

16-
FROM python:3.13-slim AS netbox-sync
16+
FROM python:3.14-slim AS netbox-sync
1717

1818
ARG VENV=/opt/netbox-sync/venv
1919

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ pip3 install -r requirements.txt || pip install -r requirements.txt
6767
```
6868

6969
### VMware tag sync (if necessary)
70-
The `vsphere-automation-sdk` must be installed if tags should be synced from vCenter to NetBox
70+
The `vcf-sdk` must be installed if tags should be synced from vCenter to NetBox
7171
* assuming we are still in an activated virtual env
7272
```shell
73-
pip install --upgrade git+https://github.com/vmware/vsphere-automation-sdk-python.git
73+
pip install --upgrade vcf-sdk
7474
```
7575

7676
## NetBox API token

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ license-files = ["LICENSE.txt"]
1111
requires-python = ">=3.13"
1212
dependencies = [
1313
"aiodns>=4.0.0",
14+
"hcloud>=2.20.0",
1415
"packaging>=26.2",
1516
"pyvmomi==9.1.0.0",
1617
"pyyaml>=6.0.3",

requirements.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@ aiodns==4.0.0
22
certifi==2026.1.4
33
cffi==2.0.0
44
charset-normalizer==3.4.4
5+
hcloud==2.20.0
56
idna==3.11
67
packaging==26.2
78
pycares==5.0.1
89
pycparser==3.0
10+
python-dateutil==2.9.0.post0
911
pyvmomi==9.1.0.0
1012
pyyaml==6.0.3
1113
requests==2.34.1
1214
setuptools==82.0.1
1315
six==1.17.0
14-
urllib3==2.6.3
15-
wheel==0.47.0
16-
hcloud==2.17.0
16+
urllib3==2.7.0
17+
wheel==0.47.0

uv.lock

Lines changed: 36 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)