Skip to content

Commit f4ae8a4

Browse files
🚚 release (#31)
Signed-off-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com> Co-authored-by: Arthur Hanson <worldnomad@gmail.com>
1 parent 57b27e2 commit f4ae8a4

File tree

8 files changed

+151
-23
lines changed

8 files changed

+151
-23
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
name: ✨ Feature Request
3+
description: Propose a new Diode SDK Python feature or enhancement
4+
labels: ["enhancement", "status: needs triage"]
5+
body:
6+
- type: input
7+
attributes:
8+
label: Diode SDK Python version
9+
description: What version of Diode SDK Python are you currently running?
10+
placeholder: v0.4.0
11+
validations:
12+
required: true
13+
- type: dropdown
14+
attributes:
15+
label: Feature type
16+
options:
17+
- New ingestion entity type or new field of existing entity type
18+
- New functionality
19+
- Change to existing functionality
20+
validations:
21+
required: true
22+
- type: textarea
23+
attributes:
24+
label: Proposed feature or enhancement
25+
description: >
26+
Describe in detail the new feature or enhancement you are proposing. The more detail you provide here,
27+
the greater chance your proposal has of being discussed.
28+
validations:
29+
required: true
30+
- type: textarea
31+
attributes:
32+
label: Use case
33+
description: >
34+
Explain how adding this feature or enhancement would benefit Diode users. What need does it address?
35+
validations:
36+
required: true
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
name: 🐛 Bug Report
3+
description: Report a reproducible bug in the current release of Diode SDK Python
4+
labels: ["bug", "status: needs triage"]
5+
body:
6+
- type: input
7+
attributes:
8+
label: Diode SDK Python version
9+
description: What version of Diode SDK Python are you currently running?
10+
placeholder: v0.4.0
11+
validations:
12+
required: true
13+
- type: input
14+
attributes:
15+
label: Diode version
16+
description: What version of Diode are you currently running?
17+
placeholder: v0.6.0
18+
validations:
19+
required: true
20+
- type: input
21+
attributes:
22+
label: Diode NetBox Plugin version
23+
description: What version of Diode NetBox Plugin are you currently running?
24+
placeholder: v0.6.0
25+
validations:
26+
required: true
27+
- type: input
28+
attributes:
29+
label: NetBox version
30+
description: What version of NetBox are you currently running?
31+
placeholder: v4.1.3
32+
validations:
33+
required: true
34+
- type: textarea
35+
attributes:
36+
label: Steps to reproduce
37+
description: >
38+
Describe in detail the exact steps that someone else can take to reproduce this bug using given Diode SDK
39+
Python, Diode, Diode NetBox Plugin and NetBox versions.
40+
validations:
41+
required: true
42+
- type: textarea
43+
attributes:
44+
label: Expected behavior
45+
description: What did you expect to happen?
46+
validations:
47+
required: true
48+
- type: textarea
49+
attributes:
50+
label: Observed behavior
51+
description: What happened instead?
52+
validations:
53+
required: true
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
name: 📖 Documentation Change
3+
description: Suggest an addition or modification to the Diode SDK Python documentation
4+
labels: ["documentation", "status: needs triage"]
5+
body:
6+
- type: dropdown
7+
attributes:
8+
label: Change type
9+
description: What type of change are you proposing?
10+
options:
11+
- Addition
12+
- Correction
13+
- Removal
14+
- Cleanup (formatting, typos, etc.)
15+
validations:
16+
required: true
17+
- type: dropdown
18+
attributes:
19+
label: Area
20+
description: To what section of the documentation does this change primarily pertain?
21+
options:
22+
- Features
23+
- Installation/upgrade
24+
- Getting started
25+
- Configuration
26+
- Development
27+
- Other
28+
validations:
29+
required: true
30+
- type: textarea
31+
attributes:
32+
label: Proposed changes
33+
description: Describe the proposed changes and why they are necessary.
34+
validations:
35+
required: true

.github/ISSUE_TEMPLATE/config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
blank_issues_enabled: false

.github/workflows/release.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,18 @@ concurrency:
99
cancel-in-progress: false
1010

1111
env:
12-
GH_TOKEN: ${{ secrets.ORB_CI_GH_TOKEN }}
12+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1313
SEMANTIC_RELEASE_PACKAGE: ${{ github.repository }}
1414
PYTHON_RUNTIME_VERSION: "3.11"
1515
APP_NAME: diode-sdk-python
1616
PYTHON_PACKAGE_NAME: netboxlabs-diode-sdk
1717

18+
permissions:
19+
id-token: write
20+
contents: write
21+
issues: write
22+
pull-requests: write
23+
1824
jobs:
1925
get-python-package-name:
2026
name: Get Python package name
@@ -126,9 +132,6 @@ jobs:
126132
needs: [ get-python-package-name, get-next-version ]
127133
runs-on: ubuntu-latest
128134
timeout-minutes: 5
129-
permissions:
130-
id-token: write
131-
contents: read
132135
env:
133136
BUILD_VERSION: ${{ needs.get-next-version.outputs.new-release-version }}
134137
BUILD_TRACK: release

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pip install netboxlabs-diode-sdk
2626

2727
### Example
2828

29-
* `target` should be the address of the Diode service, e.g. `grpc://localhost:8081` for insecure connection
29+
* `target` should be the address of the Diode service, e.g. `grpc://localhost:8080/diode` for insecure connection
3030
or `grpcs://example.com` for secure connection.
3131

3232
```python
@@ -39,7 +39,7 @@ from netboxlabs.diode.sdk.ingester import (
3939

4040
def main():
4141
with DiodeClient(
42-
target="grpc://localhost:8081",
42+
target="grpc://localhost:8080/diode",
4343
app_name="my-test-app",
4444
app_version="0.0.1",
4545
) as client:

docs/entities.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ from netboxlabs.diode.sdk.ingester import (
3333

3434
def main():
3535
with DiodeClient(
36-
target="grpc://localhost:8081",
36+
target="grpc://localhost:8080/diode",
3737
app_name="my-test-app",
3838
app_version="0.0.1",
3939
) as client:
@@ -141,7 +141,7 @@ from netboxlabs.diode.sdk.ingester import (
141141

142142
def main():
143143
with DiodeClient(
144-
target="grpc://localhost:8081",
144+
target="grpc://localhost:8080/diode",
145145
app_name="my-test-app",
146146
app_version="0.0.1",
147147
) as client:
@@ -241,7 +241,7 @@ from netboxlabs.diode.sdk.ingester import (
241241

242242
def main():
243243
with DiodeClient(
244-
target="grpc://localhost:8081",
244+
target="grpc://localhost:8080/diode",
245245
app_name="my-test-app",
246246
app_version="0.0.1",
247247
) as client:
@@ -324,7 +324,7 @@ from netboxlabs.diode.sdk.ingester import (
324324

325325
def main():
326326
with DiodeClient(
327-
target="grpc://localhost:8081",
327+
target="grpc://localhost:8080/diode",
328328
app_name="my-test-app",
329329
app_version="0.0.1",
330330
) as client:
@@ -399,7 +399,7 @@ from netboxlabs.diode.sdk.ingester import (
399399

400400
def main():
401401
with DiodeClient(
402-
target="grpc://localhost:8081",
402+
target="grpc://localhost:8080/diode",
403403
app_name="my-test-app",
404404
app_version="0.0.1",
405405
) as client:
@@ -452,7 +452,7 @@ from netboxlabs.diode.sdk.ingester import (
452452

453453
def main():
454454
with DiodeClient(
455-
target="grpc://localhost:8081",
455+
target="grpc://localhost:8080/diode",
456456
app_name="my-test-app",
457457
app_version="0.0.1",
458458
) as client:
@@ -506,7 +506,7 @@ from netboxlabs.diode.sdk.ingester import (
506506

507507
def main():
508508
with DiodeClient(
509-
target="grpc://localhost:8081",
509+
target="grpc://localhost:8080/diode",
510510
app_name="my-test-app",
511511
app_version="0.0.1",
512512
) as client:
@@ -574,7 +574,7 @@ from netboxlabs.diode.sdk.ingester import (
574574

575575
def main():
576576
with DiodeClient(
577-
target="grpc://localhost:8081",
577+
target="grpc://localhost:8080/diode",
578578
app_name="my-test-app",
579579
app_version="0.0.1",
580580
) as client:
@@ -679,7 +679,7 @@ from netboxlabs.diode.sdk.ingester import (
679679

680680
def main():
681681
with DiodeClient(
682-
target="grpc://localhost:8081",
682+
target="grpc://localhost:8080/diode",
683683
app_name="my-test-app",
684684
app_version="0.0.1",
685685
) as client:
@@ -770,7 +770,7 @@ from netboxlabs.diode.sdk.ingester import (
770770

771771
def main():
772772
with DiodeClient(
773-
target="grpc://localhost:8081",
773+
target="grpc://localhost:8080/diode",
774774
app_name="my-test-app",
775775
app_version="0.0.1",
776776
) as client:
@@ -820,7 +820,7 @@ from netboxlabs.diode.sdk.ingester import (
820820

821821
def main():
822822
with DiodeClient(
823-
target="grpc://localhost:8081",
823+
target="grpc://localhost:8080/diode",
824824
app_name="my-test-app",
825825
app_version="0.0.1",
826826
) as client:
@@ -875,7 +875,7 @@ from netboxlabs.diode.sdk.ingester import (
875875

876876
def main():
877877
with DiodeClient(
878-
target="grpc://localhost:8081",
878+
target="grpc://localhost:8080/diode",
879879
app_name="my-test-app",
880880
app_version="0.0.1",
881881
) as client:
@@ -987,7 +987,7 @@ from netboxlabs.diode.sdk.ingester import (
987987

988988
def main():
989989
with DiodeClient(
990-
target="grpc://localhost:8081",
990+
target="grpc://localhost:8080/diode",
991991
app_name="my-test-app",
992992
app_version="0.0.1",
993993
) as client:
@@ -1137,7 +1137,7 @@ from netboxlabs.diode.sdk.ingester import (
11371137

11381138
def main():
11391139
with DiodeClient(
1140-
target="grpc://localhost:8081",
1140+
target="grpc://localhost:8080/diode",
11411141
app_name="my-test-app",
11421142
app_version="0.0.1",
11431143
) as client:
@@ -1289,7 +1289,7 @@ from netboxlabs.diode.sdk.ingester import (
12891289

12901290
def main():
12911291
with DiodeClient(
1292-
target="grpc://localhost:8081",
1292+
target="grpc://localhost:8080/diode",
12931293
app_name="my-test-app",
12941294
app_version="0.0.1",
12951295
) as client:

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ classifiers = [ # Optional
2525

2626
dependencies = [
2727
"certifi==2024.7.4",
28-
"grpcio==1.62.1",
29-
"grpcio-status==1.62.1",
28+
"grpcio==1.68.1",
29+
"grpcio-status==1.68.1",
3030
"sentry-sdk>=2.2.1",
3131
]
3232

0 commit comments

Comments
 (0)