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

Move to python 3.8 minimum #157

Closed
wants to merge 2 commits into from
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
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ about: Report a reproducible bug in the current release of nautobot-ssot
---

### Environment
* Python version: <!-- Example: 3.7.7 -->
* Python version: <!-- Example: 3.10.7 -->
* Nautobot version: <!-- Example: 1.0.3 -->
* nautobot-ssot version: <!-- Example: 1.0.0 -->

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,14 @@ jobs:
strategy:
fail-fast: true
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10", "3.11"]
db-backend: ["postgresql"]
nautobot-version: ["latest"]
include:
- python-version: "3.10"
db-backend: "postgresql"
nautobot-version: "1.5.13"
- python-version: "3.7"
- python-version: "3.8"
db-backend: "mysql"
nautobot-version: "1.5.13"
- python-version: "3.10"
Expand Down
4 changes: 2 additions & 2 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
mkdocs==1.4.2
mkdocs-material==9.0.11
mkdocstrings==0.20
mkdocstrings-python==0.8.3
mkdocstrings==0.22.0
mkdocstrings-python==1.3.0
mkdocs-version-annotations==1.0.0
2 changes: 1 addition & 1 deletion nautobot_ssot/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Meta:
model = SyncLogEntry
fields = ["sync", "action", "status", "synced_object_type"]

def search(self, queryset, _name, value): # pylint: disable=no-self-use
def search(self, queryset, _name, value):
"""String search of SyncLogEntry records."""
if not value.strip():
return queryset
Expand Down
4 changes: 2 additions & 2 deletions nautobot_ssot/integrations/aci/diffsync/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ def fex_id_from_dn(dn):

def tenant_from_dn(dn):
"""Match an ACI tenant in the Distiguished Name (DN)."""
pattern = "tn-(.+?)\/" # noqa: W605 # pylint: disable=anomalous-backslash-in-string
pattern = r"tn-(.+?)\/"
return re.search(pattern, dn).group().replace("tn-", "", 1).rstrip("/")


def ap_from_dn(dn):
"""Match an ACI Application Profile in the Distinguished Name (DN)."""
pattern = "ap-[A-Za-z0-9\-]+" # noqa: W605 # pylint: disable=anomalous-backslash-in-string
pattern = r"ap-[A-Za-z0-9\-]+"
return re.search(pattern, dn).group().replace("ap-", "", 1).rstrip("/")


Expand Down
2,463 changes: 1,352 additions & 1,111 deletions poetry.lock

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ classifiers = [
"Intended Audience :: Developers",
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
include = [
"LICENSE",
Expand All @@ -39,7 +40,7 @@ nautobot-device-lifecycle-mgmt = { version = "^1.0.2", optional = true }
oauthlib = { version = ">=3.1.0", optional = true }
packaging = ">=21.3, <24"
prometheus-client = "~0.14.1"
python = "^3.7"
python = "^3.8"
python-magic = { version = ">=0.4.15", optional = true }
pytz = { version = ">=2019.3", optional = true }
requests = { version = ">=2.21.0", optional = true }
Expand Down Expand Up @@ -72,8 +73,8 @@ mkdocs-material = "9.0.11"
# Render custom markdown for version added/changed/remove notes
mkdocs-version-annotations = "1.0.0"
# Automatic documentation from sources, for MkDocs
mkdocstrings = "0.20"
mkdocstrings-python = "0.8.3"
mkdocstrings = "0.22.0"
mkdocstrings-python = "1.3.0"
requests-mock = "^1.10.0"
parameterized = "^0.8.1"

Expand Down
Loading