From 52d25ad0195ba9171113f35d94dff929b21c4dfa Mon Sep 17 00:00:00 2001 From: Bruno Alla Date: Thu, 7 Dec 2023 12:29:02 +0000 Subject: [PATCH] Fix bug in create_django_issue Parsing doesn't work for classifiers that only include the Django major version, e.g.: ``'Framework :: Django :: 3'` We need a '.' in the 4th part of the classifier to be able to parse it: ``'Framework :: Django :: 3.2'` --- scripts/create_django_issue.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/create_django_issue.py b/scripts/create_django_issue.py index 236a126f..f9ff7654 100644 --- a/scripts/create_django_issue.py +++ b/scripts/create_django_issue.py @@ -212,7 +212,7 @@ class GitHubManager: for classifier in package_info["info"]["classifiers"]: # Usually in the form of "Framework :: Django :: 3.2" tokens = classifier.split(" ") - if len(tokens) >= 5 and tokens[2].lower() == "django": + if len(tokens) >= 5 and tokens[2].lower() == "django" and "." in tokens[4]: version = DjVersion.parse(tokens[4]) if len(version) == 2: supported_dj_versions.append(version)