q2rad 0.1.187__tar.gz → 0.1.189__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.187
3
+ Version: 0.1.189
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.187"
3
+ version = "0.1.189"
4
4
  description = "RAD - database, GUI, reports"
5
5
  authors = ["Andrei Puchko <andrei.puchko@gmx.de>"]
6
6
  readme = "README.md"
@@ -717,15 +717,16 @@ class Q2RadApp(Q2App):
717
717
  latest_version, current_version = self.get_package_versions(package)
718
718
  if self.db_logic is not None and package not in q2_modules:
719
719
  pkg_ver = get("packages", f"package_name='{package}'", "package_version", q2_db=self.db_logic)
720
- try:
721
- latest_version = version.parse(pkg_ver)
722
- except Exception as error:
723
- q2mess(
724
- f"Error parsing version for <b>{package}</b>:"
725
- f"<br> {error}<br>"
726
- f"<b>{package}</b> packages update interrupted"
727
- )
728
- continue
720
+ if pkg_ver != "":
721
+ try:
722
+ latest_version = version.parse(pkg_ver)
723
+ except Exception as error:
724
+ q2mess(
725
+ f"Error parsing version for <b>{package}</b>:"
726
+ f"<br> {error}<br>"
727
+ f"<b>{package}</b> packages update interrupted"
728
+ )
729
+ continue
729
730
  self.process_events()
730
731
  if force or latest_version != current_version and latest_version:
731
732
  try:
@@ -801,7 +802,7 @@ class Q2RadApp(Q2App):
801
802
  def pip_runner():
802
803
  trm = Q2Terminal(callback=print)
803
804
  trm.run(
804
- f'&"{sys.executable.replace("w.exe", ".exe")}" -m pip install '
805
+ f'"{sys.executable.replace("w.exe", ".exe")}" -m pip install '
805
806
  f"--upgrade --no-cache-dir {package}=={latest_version}"
806
807
  )
807
808
  trm.close()
@@ -814,7 +815,7 @@ class Q2RadApp(Q2App):
814
815
 
815
816
  def pip_runner():
816
817
  trm = Q2Terminal(callback=print)
817
- trm.run(f'&"{sys.executable.replace("w.exe", ".exe")}" -m pip uninstall -y {package}')
818
+ trm.run(f'"{sys.executable.replace("w.exe", ".exe")}" -m pip uninstall -y {package}')
818
819
  trm.close()
819
820
 
820
821
  q2working(pip_runner, _("Uninstalling package %s...") % package)
@@ -873,20 +874,21 @@ class Q2RadApp(Q2App):
873
874
  if self.db_logic is not None and package not in q2_modules:
874
875
  pkg_ver = get("packages", f"package_name='{package}'", "package_version", q2_db=self.db_logic)
875
876
  pkg_ver = pkg_ver if pkg_ver else "99999"
876
- try:
877
- if current_version is None:
878
- pass
879
- elif version.parse(current_version) < version.parse(pkg_ver):
880
- pass
881
- elif version.parse(latest_version) > version.parse(pkg_ver):
877
+ if pkg_ver != "":
878
+ try:
879
+ if current_version is None:
880
+ pass
881
+ elif version.parse(current_version) < version.parse(pkg_ver):
882
+ pass
883
+ elif version.parse(latest_version) > version.parse(pkg_ver):
884
+ continue
885
+ except Exception as error:
886
+ q2mess(
887
+ f"Error зparsing version for <b>{package}</b>:"
888
+ f"<br> {error}<br>"
889
+ f"<b>{package}</b> packages update skipped"
890
+ )
882
891
  continue
883
- except Exception as error:
884
- q2mess(
885
- f"Error зparsing version for <b>{package}</b>:"
886
- f"<br> {error}<br>"
887
- f"<b>{package}</b> packages update skipped"
888
- )
889
- continue
890
892
  if latest_version != current_version and latest_version:
891
893
  list_2_upgrade_message.append(f"<b>{package}</b>: {current_version} > {latest_version}")
892
894
  list_2_upgrade.append(package)
@@ -0,0 +1 @@
1
+ __version__ = "0.1.189"
@@ -1 +0,0 @@
1
- __version__ = "0.1.187"
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