oqtopus 0.1.20__tar.gz → 0.1.22__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.
Files changed (51) hide show
  1. {oqtopus-0.1.20 → oqtopus-0.1.22}/PKG-INFO +4 -4
  2. {oqtopus-0.1.20 → oqtopus-0.1.22}/oqtopus/gui/main_dialog.py +4 -2
  3. {oqtopus-0.1.20 → oqtopus-0.1.22}/oqtopus/gui/project_widget.py +18 -5
  4. {oqtopus-0.1.20 → oqtopus-0.1.22}/oqtopus/utils/plugin_utils.py +5 -2
  5. {oqtopus-0.1.20 → oqtopus-0.1.22}/oqtopus.egg-info/PKG-INFO +4 -4
  6. {oqtopus-0.1.20 → oqtopus-0.1.22}/oqtopus.egg-info/SOURCES.txt +1 -0
  7. {oqtopus-0.1.20 → oqtopus-0.1.22}/oqtopus.egg-info/requires.txt +3 -3
  8. {oqtopus-0.1.20 → oqtopus-0.1.22}/pyproject.toml +4 -9
  9. oqtopus-0.1.22/requirements.txt +6 -0
  10. {oqtopus-0.1.20 → oqtopus-0.1.22}/LICENSE +0 -0
  11. {oqtopus-0.1.20 → oqtopus-0.1.22}/README.md +0 -0
  12. {oqtopus-0.1.20 → oqtopus-0.1.22}/oqtopus/__init__.py +0 -0
  13. {oqtopus-0.1.20 → oqtopus-0.1.22}/oqtopus/core/module.py +0 -0
  14. {oqtopus-0.1.20 → oqtopus-0.1.22}/oqtopus/core/module_asset.py +0 -0
  15. {oqtopus-0.1.20 → oqtopus-0.1.22}/oqtopus/core/module_package.py +0 -0
  16. {oqtopus-0.1.20 → oqtopus-0.1.22}/oqtopus/core/modules_config.py +0 -0
  17. {oqtopus-0.1.20 → oqtopus-0.1.22}/oqtopus/core/package_prepare_task.py +0 -0
  18. {oqtopus-0.1.20 → oqtopus-0.1.22}/oqtopus/gui/__init__.py +0 -0
  19. {oqtopus-0.1.20 → oqtopus-0.1.22}/oqtopus/gui/about_dialog.py +0 -0
  20. {oqtopus-0.1.20 → oqtopus-0.1.22}/oqtopus/gui/database_connection_widget.py +0 -0
  21. {oqtopus-0.1.20 → oqtopus-0.1.22}/oqtopus/gui/database_create_dialog.py +0 -0
  22. {oqtopus-0.1.20 → oqtopus-0.1.22}/oqtopus/gui/database_duplicate_dialog.py +0 -0
  23. {oqtopus-0.1.20 → oqtopus-0.1.22}/oqtopus/gui/logs_widget.py +0 -0
  24. {oqtopus-0.1.20 → oqtopus-0.1.22}/oqtopus/gui/module_selection_widget.py +0 -0
  25. {oqtopus-0.1.20 → oqtopus-0.1.22}/oqtopus/gui/module_widget.py +0 -0
  26. {oqtopus-0.1.20 → oqtopus-0.1.22}/oqtopus/gui/parameters_groupbox.py +0 -0
  27. {oqtopus-0.1.20 → oqtopus-0.1.22}/oqtopus/gui/plugin_widget.py +0 -0
  28. {oqtopus-0.1.20 → oqtopus-0.1.22}/oqtopus/gui/settings_dialog.py +0 -0
  29. {oqtopus-0.1.20 → oqtopus-0.1.22}/oqtopus/oqtopus.py +0 -0
  30. {oqtopus-0.1.20 → oqtopus-0.1.22}/oqtopus/oqtopus_plugin.py +0 -0
  31. {oqtopus-0.1.20 → oqtopus-0.1.22}/oqtopus/ui/__init__.py +0 -0
  32. {oqtopus-0.1.20 → oqtopus-0.1.22}/oqtopus/ui/about_dialog.ui +0 -0
  33. {oqtopus-0.1.20 → oqtopus-0.1.22}/oqtopus/ui/database_connection_widget.ui +0 -0
  34. {oqtopus-0.1.20 → oqtopus-0.1.22}/oqtopus/ui/database_create_dialog.ui +0 -0
  35. {oqtopus-0.1.20 → oqtopus-0.1.22}/oqtopus/ui/database_duplicate_dialog.ui +0 -0
  36. {oqtopus-0.1.20 → oqtopus-0.1.22}/oqtopus/ui/logs_widget.ui +0 -0
  37. {oqtopus-0.1.20 → oqtopus-0.1.22}/oqtopus/ui/main_dialog.ui +0 -0
  38. {oqtopus-0.1.20 → oqtopus-0.1.22}/oqtopus/ui/module_selection_widget.ui +0 -0
  39. {oqtopus-0.1.20 → oqtopus-0.1.22}/oqtopus/ui/module_widget.ui +0 -0
  40. {oqtopus-0.1.20 → oqtopus-0.1.22}/oqtopus/ui/plugin_widget.ui +0 -0
  41. {oqtopus-0.1.20 → oqtopus-0.1.22}/oqtopus/ui/project_widget.ui +0 -0
  42. {oqtopus-0.1.20 → oqtopus-0.1.22}/oqtopus/ui/settings_dialog.ui +0 -0
  43. {oqtopus-0.1.20 → oqtopus-0.1.22}/oqtopus/utils/__init__.py +0 -0
  44. {oqtopus-0.1.20 → oqtopus-0.1.22}/oqtopus/utils/qt_utils.py +0 -0
  45. {oqtopus-0.1.20 → oqtopus-0.1.22}/oqtopus/utils/tmmtlogging.py +0 -0
  46. {oqtopus-0.1.20 → oqtopus-0.1.22}/oqtopus/utils/translation.py +0 -0
  47. {oqtopus-0.1.20 → oqtopus-0.1.22}/oqtopus.egg-info/dependency_links.txt +0 -0
  48. {oqtopus-0.1.20 → oqtopus-0.1.22}/oqtopus.egg-info/top_level.txt +0 -0
  49. {oqtopus-0.1.20 → oqtopus-0.1.22}/setup.cfg +0 -0
  50. {oqtopus-0.1.20 → oqtopus-0.1.22}/tests/__init__.py +0 -0
  51. {oqtopus-0.1.20 → oqtopus-0.1.22}/tests/test_plugin_load.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: oqtopus
3
- Version: 0.1.20
3
+ Version: 0.1.22
4
4
  Summary: A QGIS module manager
5
5
  Author-email: Damiano Lombardi <damiano@opengis.ch>
6
6
  License: GNU GENERAL PUBLIC LICENSE
@@ -346,9 +346,9 @@ License: GNU GENERAL PUBLIC LICENSE
346
346
  Requires-Python: >=3.8
347
347
  Description-Content-Type: text/markdown
348
348
  License-File: LICENSE
349
- Requires-Dist: pyyaml
350
- Requires-Dist: pgserviceparser<3.0.0,>=2.3.0
351
- Requires-Dist: pum<2.0.0,>=1.1.2
349
+ Requires-Dist: pgserviceparser<3.0.0,>=2.4.0
350
+ Requires-Dist: pum<2.0.0,>=1.1.13
351
+ Requires-Dist: PyYAML
352
352
  Requires-Dist: pydantic>=2.0
353
353
  Requires-Dist: psycopg<4.0.0,>=3.1.0
354
354
  Requires-Dist: requests<3.0.0,>=2.31.0
@@ -53,10 +53,12 @@ DIALOG_UI = PluginUtils.get_ui_class("main_dialog.ui")
53
53
 
54
54
  class MainDialog(QDialog, DIALOG_UI):
55
55
 
56
- def __init__(self, modules_config_path, parent=None):
56
+ def __init__(self, modules_config_path, about_dialog_cls=None, parent=None):
57
57
  QDialog.__init__(self, parent)
58
58
  self.setupUi(self)
59
59
 
60
+ self.__about_dialog_cls = about_dialog_cls or AboutDialog
61
+
60
62
  self.buttonBox.rejected.connect(self.__closeDialog)
61
63
  self.buttonBox.helpRequested.connect(self.__helpRequested)
62
64
 
@@ -136,7 +138,7 @@ class MainDialog(QDialog, DIALOG_UI):
136
138
  dlg.exec()
137
139
 
138
140
  def __show_about_dialog(self):
139
- dialog = AboutDialog(self)
141
+ dialog = self.__about_dialog_cls(self)
140
142
  dialog.exec()
141
143
 
142
144
  def __moduleSelection_loadingStarted(self):
@@ -27,12 +27,20 @@ class ProjectWidget(QWidget, DIALOG_UI):
27
27
 
28
28
  def setModulePackage(self, module_package: ModulePackage):
29
29
  self.__current_module_package = module_package
30
- self.__packagePrepareGetProjectFilename()
30
+ self.__updateProjectFilename()
31
31
 
32
32
  def setService(self, service):
33
33
  self.__current_service = service
34
+ self.__updateProjectFilename()
35
+
36
+ def __updateProjectFilename(self):
37
+
38
+ if self.__current_module_package is None:
39
+ self.project_info_label.setText(self.tr("No module package selected."))
40
+ QtUtils.setForegroundColor(self.project_info_label, PluginUtils.COLOR_WARNING)
41
+ QtUtils.setFontItalic(self.project_info_label, True)
42
+ return
34
43
 
35
- def __packagePrepareGetProjectFilename(self):
36
44
  asset_project = self.__current_module_package.asset_project
37
45
  if asset_project is None:
38
46
  self.project_info_label.setText(
@@ -73,9 +81,14 @@ class ProjectWidget(QWidget, DIALOG_UI):
73
81
 
74
82
  QtUtils.resetForegroundColor(self.project_info_label)
75
83
  QtUtils.setFontItalic(self.project_info_label, False)
76
- self.project_info_label.setText(
77
- f"<a href='file://{asset_project.package_dir}'>{asset_project.package_dir}</a>",
78
- )
84
+ if self.__current_service:
85
+ self.project_info_label.setText(
86
+ f"Project will use PG Service '{self.__current_service}' for database connection"
87
+ )
88
+ else:
89
+ self.project_info_label.setText(
90
+ "Project will use the default service. Please set a service in the database connection tab if you need a specific one."
91
+ )
79
92
 
80
93
  def __projectInstallClicked(self):
81
94
 
@@ -95,8 +95,11 @@ class PluginUtils:
95
95
  return ini_text.value("version")
96
96
 
97
97
  @staticmethod
98
- def init_logger():
99
- PluginUtils.logsDirectory = f"{PluginUtils.plugin_root_path()}/logs"
98
+ def init_logger(logs_directory=None):
99
+ if logs_directory is not None:
100
+ PluginUtils.logsDirectory = logs_directory
101
+ else:
102
+ PluginUtils.logsDirectory = f"{PluginUtils.plugin_root_path()}/logs"
100
103
 
101
104
  directory = QDir(PluginUtils.logsDirectory)
102
105
  if not directory.exists():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: oqtopus
3
- Version: 0.1.20
3
+ Version: 0.1.22
4
4
  Summary: A QGIS module manager
5
5
  Author-email: Damiano Lombardi <damiano@opengis.ch>
6
6
  License: GNU GENERAL PUBLIC LICENSE
@@ -346,9 +346,9 @@ License: GNU GENERAL PUBLIC LICENSE
346
346
  Requires-Python: >=3.8
347
347
  Description-Content-Type: text/markdown
348
348
  License-File: LICENSE
349
- Requires-Dist: pyyaml
350
- Requires-Dist: pgserviceparser<3.0.0,>=2.3.0
351
- Requires-Dist: pum<2.0.0,>=1.1.2
349
+ Requires-Dist: pgserviceparser<3.0.0,>=2.4.0
350
+ Requires-Dist: pum<2.0.0,>=1.1.13
351
+ Requires-Dist: PyYAML
352
352
  Requires-Dist: pydantic>=2.0
353
353
  Requires-Dist: psycopg<4.0.0,>=3.1.0
354
354
  Requires-Dist: requests<3.0.0,>=2.31.0
@@ -1,6 +1,7 @@
1
1
  LICENSE
2
2
  README.md
3
3
  pyproject.toml
4
+ requirements.txt
4
5
  oqtopus/__init__.py
5
6
  oqtopus/oqtopus.py
6
7
  oqtopus/oqtopus_plugin.py
@@ -1,6 +1,6 @@
1
- pyyaml
2
- pgserviceparser<3.0.0,>=2.3.0
3
- pum<2.0.0,>=1.1.2
1
+ pgserviceparser<3.0.0,>=2.4.0
2
+ pum<2.0.0,>=1.1.13
3
+ PyYAML
4
4
  pydantic>=2.0
5
5
  psycopg<4.0.0,>=3.1.0
6
6
  requests<3.0.0,>=2.31.0
@@ -8,21 +8,13 @@ build-backend = "setuptools.build_meta"
8
8
  [project]
9
9
  name = "oqtopus"
10
10
  description = "A QGIS module manager"
11
- dynamic = ["version"]
11
+ dynamic = ["version", "dependencies"]
12
12
  readme = "README.md"
13
13
  requires-python = ">=3.8"
14
14
  license = { file = "LICENSE" }
15
15
  authors = [
16
16
  { name="Damiano Lombardi", email="damiano@opengis.ch" }
17
17
  ]
18
- dependencies = [
19
- "pyyaml",
20
- "pgserviceparser>=2.3.0,<3.0.0",
21
- "pum>=1.1.2,<2.0.0",
22
- "pydantic>=2.0",
23
- "psycopg>=3.1.0,<4.0.0",
24
- "requests>=2.31.0,<3.0.0"
25
- ]
26
18
 
27
19
  [tool.setuptools.packages.find]
28
20
  where = ["."]
@@ -33,3 +25,6 @@ starting_version = "0.0.1"
33
25
 
34
26
  [tool.setuptools.package-data]
35
27
  "oqtopus" = ["**/*.ui"]
28
+
29
+ [tool.setuptools.dynamic]
30
+ dependencies = {file = ["requirements.txt"]}
@@ -0,0 +1,6 @@
1
+ pgserviceparser>=2.4.0,<3.0.0
2
+ pum>=1.1.13,<2.0.0
3
+ PyYAML
4
+ pydantic >=2.0
5
+ psycopg>=3.1.0,<4.0.0
6
+ requests>=2.31.0,<3.0.0
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes