Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Python 3.12 in tests and other lists #601

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/ISSUE_TEMPLATE/bug_report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ body:
attributes:
label: pynetbox version
description: What version of pynetbox are you currently running?
placeholder: v7.1.0
placeholder: v7.3.3
validations:
required: true
- type: input
attributes:
label: NetBox version
description: What version of NetBox are you currently running?
placeholder: v3.6.0
placeholder: v3.7.0
validations:
required: true
- type: dropdown
Expand All @@ -30,6 +30,7 @@ body:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
validations:
required: true
- type: textarea
Expand All @@ -42,7 +43,7 @@ body:
while adequately illustrating the issue. For example:
```python
>>> import pynetbox
>>> nb = pynebox.api('https://netbox.example.com', token='my-token')
>>> nb = pynetbox.api('https://netbox.example.com', token='my-token')

```
Note: **do not utilize the demo instance** for replicating suspected bugs,
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/py3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.8", "3.9", "3.10", "3.11"]
netbox: ["3.3", "3.4", "3.5", "3.6", "3.7"]
python: ["3.8", "3.9", "3.10", "3.11", "3.12"]
netbox: ["3.4", "3.5", "3.6", "3.7"]

steps:
- uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions pynetbox/core/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
See the License for the specific language governing permissions and
limitations under the License.
"""

import requests

from pynetbox.core.query import Request
Expand Down
1 change: 1 addition & 0 deletions pynetbox/core/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
See the License for the specific language governing permissions and
limitations under the License.
"""

from pynetbox.core.endpoint import Endpoint
from pynetbox.core.query import Request
from pynetbox.models import (
Expand Down
1 change: 1 addition & 0 deletions pynetbox/core/endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
See the License for the specific language governing permissions and
limitations under the License.
"""

from pynetbox.core.query import Request, RequestError
from pynetbox.core.response import Record, RecordSet

Expand Down
1 change: 1 addition & 0 deletions pynetbox/core/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
See the License for the specific language governing permissions and
limitations under the License.
"""

import concurrent.futures as cf
import json
from packaging import version
Expand Down
1 change: 1 addition & 0 deletions pynetbox/core/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
See the License for the specific language governing permissions and
limitations under the License.
"""

import copy
from collections import OrderedDict

Expand Down
1 change: 1 addition & 0 deletions pynetbox/models/circuits.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
See the License for the specific language governing permissions and
limitations under the License.
"""

from pynetbox.core.response import Record


Expand Down
1 change: 1 addition & 0 deletions pynetbox/models/dcim.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
See the License for the specific language governing permissions and
limitations under the License.
"""

from urllib.parse import urlsplit

from pynetbox.core.query import Request
Expand Down
1 change: 1 addition & 0 deletions pynetbox/models/extras.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
See the License for the specific language governing permissions and
limitations under the License.
"""

from pynetbox.core.response import Record, JsonField


Expand Down
1 change: 1 addition & 0 deletions pynetbox/models/ipam.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
See the License for the specific language governing permissions and
limitations under the License.
"""

from pynetbox.core.response import Record
from pynetbox.core.endpoint import DetailEndpoint

Expand Down
1 change: 1 addition & 0 deletions pynetbox/models/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
See the License for the specific language governing permissions and
limitations under the License.
"""

from pynetbox.core.response import Record, JsonField


Expand Down
1 change: 1 addition & 0 deletions pynetbox/models/virtualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
See the License for the specific language governing permissions and
limitations under the License.
"""

from pynetbox.core.response import Record, JsonField
from pynetbox.models.ipam import IpAddresses

Expand Down
1 change: 1 addition & 0 deletions pynetbox/models/wireless.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
See the License for the specific language governing permissions and
limitations under the License.
"""

from pynetbox.core.response import Record


Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
)
Loading