Skip to content

Commit

Permalink
Merge pull request #6523 from ales-erjavec/fixes/parse-version
Browse files Browse the repository at this point in the history
[FIX] config: Replace and fix use of pkg_resources.parse_version
  • Loading branch information
janezd authored Jul 25, 2023
2 parents 50df82a + 25065f2 commit 49dc3fd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Orange/canvas/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

from typing import Dict, Any, Optional, Iterable, List

import packaging.version
import pkg_resources
import requests

Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 49dc3fd

Please sign in to comment.