Skip to content

Commit 76f2f2c

Browse files
authored
Merge pull request #91 from netbox-community/feat/prepare-for-4-2
Updates for NetBox v4.2.x
2 parents 1ad436d + f2086d9 commit 76f2f2c

File tree

7 files changed

+10
-7
lines changed

7 files changed

+10
-7
lines changed

.github/workflows/pub-pypi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@main
13-
- name: Set up Python 3.7
13+
- name: Set up Python 3.12
1414
uses: actions/setup-python@v1
1515
with:
16-
python-version: 3.7
16+
python-version: 3.12
1717
- name: Install pypa/build
1818
run: >-
1919
python -m

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PYTHON_VER?=3.12
2-
NETBOX_VER?=v4.0.2
2+
NETBOX_VER?=v4.2.1
33

44
NAME=netbox-qrcode
55

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ This plugin depends on [qrcode](https://github.com/lincolnloop/python-qrcode) an
1515
| 0.0.11 | 3.7.x | 3.7.x |
1616
| 0.0.14 | 4.0.x | v4.0.11 |
1717
| 0.0.15 | 4.1.x | v4.1.6 |
18+
| 0.0.16 | 4.2.x | v4.2.1 |
1819

1920

2021
## Installation

develop/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ARG python_ver=3.12
22
FROM python:${python_ver}
33

4-
ARG netbox_ver=master
4+
ARG netbox_ver=v4.2.1
55
ENV PYTHONUNBUFFERED 1
66

77
RUN mkdir -p /opt
@@ -23,6 +23,6 @@ WORKDIR /source
2323
COPY . /source
2424

2525
#RUN pip install -r requirements.txt
26-
RUN python setup.py develop
26+
RUN python -m pip install -e .
2727

2828
WORKDIR /opt/netbox/netbox/

develop/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ services:
3333
- ../netbox_qrcode:/source/netbox_qrcode
3434
tty: true
3535
postgres:
36-
image: postgres:12
36+
image: postgres:16
3737
env_file: dev.env
3838
volumes:
3939
- pgdata_netbox_qrcode:/var/lib/postgresql/data

netbox_qrcode/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ class QRCodeConfig(PluginConfig):
1010
author = 'Nikolay Yuzefovich'
1111
author_email = 'mgk.kolek@gmail.com'
1212
required_settings = []
13+
min_version = '4.2.0'
14+
max_version = '4.2.99'
1315
default_settings = {
1416
'with_text': True,
1517
'text_fields': ['name', 'serial'],

netbox_qrcode/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.0.15"
1+
__version__ = "0.0.16"

0 commit comments

Comments
 (0)