From 25065f2bc945d7e266cc06f62ddccec7c1a219ec Mon Sep 17 00:00:00 2001 From: Ales Erjavec Date: Mon, 24 Jul 2023 16:19:32 +0200 Subject: [PATCH] config: Replace and fix use of pkg_resources.parse_version --- Orange/canvas/config.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Orange/canvas/config.py b/Orange/canvas/config.py index 031c5d3319a..fcef63a1b43 100644 --- a/Orange/canvas/config.py +++ b/Orange/canvas/config.py @@ -10,6 +10,7 @@ from typing import Dict, Any, Optional, Iterable, List +import packaging.version import pkg_resources import requests @@ -109,8 +110,8 @@ def splash_screen(): version = Config.ApplicationVersion if version: - version_parsed = pkg_resources.parse_version(version) - version_comp = version_parsed.version + version_parsed = packaging.version.Version(version) + version_comp = version_parsed.release version = ".".join(map(str, version_comp[:2])) size = 13 font = QFont("Helvetica")