q2rad 0.1.204__tar.gz → 0.1.205__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of q2rad might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: q2rad
3
- Version: 0.1.204
3
+ Version: 0.1.205
4
4
  Summary: RAD - database, GUI, reports
5
5
  Author: Andrei Puchko
6
6
  Author-email: andrei.puchko@gmx.de
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "q2rad"
3
- version = "0.1.204"
3
+ version = "0.1.205"
4
4
  description = "RAD - database, GUI, reports"
5
5
  authors = ["Andrei Puchko <andrei.puchko@gmx.de>"]
6
6
  readme = "README.md"
@@ -75,6 +75,7 @@ import subprocess
75
75
  import shutil
76
76
  import pkgutil
77
77
  import pkg_resources
78
+ from importlib.metadata import version
78
79
  import logging
79
80
  import traceback
80
81
 
@@ -704,7 +705,7 @@ class Q2RadApp(Q2App):
704
705
  installed_packages = [x.name for x in pkgutil.iter_modules()]
705
706
  if package in installed_packages:
706
707
  try:
707
- current_version = pkg_resources.get_distribution(package).version
708
+ current_version = version(package)
708
709
  except Exception as error:
709
710
  _logger.error(f"Error checking version of {package}: {error}")
710
711
  current_version = None
@@ -0,0 +1 @@
1
+ __version__ = "0.1.205"
@@ -1 +0,0 @@
1
- __version__ = "0.1.204"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes