qgis-plugin-dev-tools 0.7.0__py3-none-any.whl → 0.8.0__py3-none-any.whl
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.
- qgis_plugin_dev_tools/__init__.py +1 -1
- qgis_plugin_dev_tools/cli/__init__.py +2 -0
- qgis_plugin_dev_tools/config/dotenv.py +7 -1
- qgis_plugin_dev_tools/start/__init__.py +2 -0
- qgis_plugin_dev_tools/start/config.py +2 -0
- qgis_plugin_dev_tools/start/launch.py +12 -0
- {qgis_plugin_dev_tools-0.7.0.dist-info → qgis_plugin_dev_tools-0.8.0.dist-info}/METADATA +8 -1
- {qgis_plugin_dev_tools-0.7.0.dist-info → qgis_plugin_dev_tools-0.8.0.dist-info}/RECORD +12 -12
- {qgis_plugin_dev_tools-0.7.0.dist-info → qgis_plugin_dev_tools-0.8.0.dist-info}/WHEEL +1 -1
- {qgis_plugin_dev_tools-0.7.0.dist-info → qgis_plugin_dev_tools-0.8.0.dist-info}/LICENSE +0 -0
- {qgis_plugin_dev_tools-0.7.0.dist-info → qgis_plugin_dev_tools-0.8.0.dist-info}/entry_points.txt +0 -0
- {qgis_plugin_dev_tools-0.7.0.dist-info → qgis_plugin_dev_tools-0.8.0.dist-info}/top_level.txt +0 -0
|
@@ -54,6 +54,8 @@ def start(dotenv_file_paths: list[Path]) -> None:
|
|
|
54
54
|
DevelopmentModeConfig(
|
|
55
55
|
qgis_executable_path=dotenv_config.QGIS_EXECUTABLE_PATH,
|
|
56
56
|
profile_name=dotenv_config.DEVELOPMENT_PROFILE_NAME,
|
|
57
|
+
locale=dotenv_config.QGIS_LOCALE,
|
|
58
|
+
ui_ini=dotenv_config.QGIS_GUI_INI,
|
|
57
59
|
runtime_environment=dotenv_config.runtime_environment,
|
|
58
60
|
runtime_library_paths=[Path(p) for p in sys.path],
|
|
59
61
|
plugin_package_path=dev_tools_config.plugin_package_path,
|
|
@@ -34,14 +34,18 @@ class DotenvConfig:
|
|
|
34
34
|
QGIS_EXECUTABLE_PATH: Path
|
|
35
35
|
DEBUGGER_LIBRARY: Optional[str]
|
|
36
36
|
DEVELOPMENT_PROFILE_NAME: Optional[str]
|
|
37
|
+
QGIS_LOCALE: Optional[str]
|
|
38
|
+
QGIS_GUI_INI: Optional[str]
|
|
37
39
|
runtime_environment: dict[str, str]
|
|
38
40
|
|
|
39
|
-
def __init__(
|
|
41
|
+
def __init__( # noqa: PLR0913
|
|
40
42
|
self,
|
|
41
43
|
*,
|
|
42
44
|
QGIS_EXECUTABLE_PATH: str, # noqa: N803
|
|
43
45
|
DEBUGGER_LIBRARY: Optional[str] = None, # noqa: N803
|
|
44
46
|
DEVELOPMENT_PROFILE_NAME: Optional[str] = None, # noqa: N803
|
|
47
|
+
QGIS_LOCALE: Optional[str] = None, # noqa: N803
|
|
48
|
+
QGIS_GUI_INI: Optional[str] = None, # noqa: N803
|
|
45
49
|
**other_vars: str,
|
|
46
50
|
) -> None:
|
|
47
51
|
self.QGIS_EXECUTABLE_PATH = Path(QGIS_EXECUTABLE_PATH)
|
|
@@ -51,6 +55,8 @@ class DotenvConfig:
|
|
|
51
55
|
)
|
|
52
56
|
self.DEBUGGER_LIBRARY = DEBUGGER_LIBRARY
|
|
53
57
|
self.DEVELOPMENT_PROFILE_NAME = DEVELOPMENT_PROFILE_NAME
|
|
58
|
+
self.QGIS_LOCALE = QGIS_LOCALE
|
|
59
|
+
self.QGIS_GUI_INI = QGIS_GUI_INI
|
|
54
60
|
self.runtime_environment = other_vars
|
|
55
61
|
|
|
56
62
|
|
|
@@ -42,6 +42,8 @@ def launch_development_qgis(
|
|
|
42
42
|
development_mode_config.qgis_executable_path,
|
|
43
43
|
bootstrap_file_path,
|
|
44
44
|
development_mode_config.profile_name,
|
|
45
|
+
development_mode_config.locale,
|
|
46
|
+
development_mode_config.ui_ini,
|
|
45
47
|
)
|
|
46
48
|
|
|
47
49
|
LOGGER.info("waiting for qgis to connect")
|
|
@@ -26,6 +26,8 @@ from typing import Optional
|
|
|
26
26
|
class DevelopmentModeConfig:
|
|
27
27
|
qgis_executable_path: Path
|
|
28
28
|
profile_name: Optional[str]
|
|
29
|
+
locale: Optional[str]
|
|
30
|
+
ui_ini: Optional[str]
|
|
29
31
|
runtime_environment: dict[str, str]
|
|
30
32
|
runtime_library_paths: list[Path]
|
|
31
33
|
plugin_package_path: Path
|
|
@@ -29,6 +29,8 @@ def launch_qgis_with_bootstrap_script(
|
|
|
29
29
|
qgis_executable_path: Path,
|
|
30
30
|
bootstrap_script_path: Path,
|
|
31
31
|
profile_name: Optional[str],
|
|
32
|
+
locale: Optional[str],
|
|
33
|
+
ui_ini: Optional[str],
|
|
32
34
|
) -> None:
|
|
33
35
|
args = [
|
|
34
36
|
str(qgis_executable_path),
|
|
@@ -42,6 +44,16 @@ def launch_qgis_with_bootstrap_script(
|
|
|
42
44
|
else:
|
|
43
45
|
LOGGER.info("using default profile name")
|
|
44
46
|
|
|
47
|
+
if locale:
|
|
48
|
+
LOGGER.info("using locale name %s", locale)
|
|
49
|
+
args.extend(["--lang", locale])
|
|
50
|
+
else:
|
|
51
|
+
LOGGER.info("using default locale")
|
|
52
|
+
|
|
53
|
+
if ui_ini:
|
|
54
|
+
LOGGER.info("using ui ini file from path %s", ui_ini)
|
|
55
|
+
args.extend(["--customizationfile", ui_ini])
|
|
56
|
+
|
|
45
57
|
LOGGER.debug("launch command args %s", args)
|
|
46
58
|
|
|
47
59
|
process = Popen(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: qgis-plugin-dev-tools
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.8.0
|
|
4
4
|
Summary: QGIS plugin development and packaging tools, which make managing runtime dependencies easy.
|
|
5
5
|
Home-page: https://github.com/nlsfi/qgis-plugin-dev-tools
|
|
6
6
|
Author: National Land Survey of Finland
|
|
@@ -113,6 +113,8 @@ By default config is read from `pyproject.toml` and runtime config from `.env` i
|
|
|
113
113
|
QGIS_EXECUTABLE_PATH= # path to qgis-bin/qgis-bin-ltr or .exe equivalents, necessary
|
|
114
114
|
# DEBUGGER_LIBRARY= # debugpy/pydevd to start a debugger on init, library must be installed to the environment
|
|
115
115
|
# DEVELOPMENT_PROFILE_NAME= # name of the profile that qgis is launched with, otherwise uses default
|
|
116
|
+
# QGIS_LOCALE= # locale code of QGIS, otherwise uses default
|
|
117
|
+
# QGIS_GUI_INI= # path to ini file containing QGIS UI customizations
|
|
116
118
|
|
|
117
119
|
# any other variables are added to the runtime QGIS environment
|
|
118
120
|
# SOMETHING=something
|
|
@@ -165,6 +167,10 @@ All notable changes to this project will be documented in this file.
|
|
|
165
167
|
|
|
166
168
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
167
169
|
|
|
170
|
+
## [0.8.0] - 2024-08-23
|
|
171
|
+
|
|
172
|
+
- Feat: Add locale and ui ini options to be able to further customize development environment
|
|
173
|
+
|
|
168
174
|
## [0.7.0] - 2024-05-21
|
|
169
175
|
|
|
170
176
|
- Fix: Bundle contents by parsing pep-compliant distribution file catalog instead of possibly missing tool-specific top-level.txt
|
|
@@ -233,3 +239,4 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
233
239
|
[0.6.1]: https://github.com/nlsfi/qgis-plugin-dev-tools/releases/tag/v0.6.1
|
|
234
240
|
[0.6.2]: https://github.com/nlsfi/qgis-plugin-dev-tools/releases/tag/v0.6.2
|
|
235
241
|
[0.7.0]: https://github.com/nlsfi/qgis-plugin-dev-tools/releases/tag/v0.7.0
|
|
242
|
+
[0.8.0]: https://github.com/nlsfi/qgis-plugin-dev-tools/releases/tag/v0.8.0
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
qgis_plugin_dev_tools/__init__.py,sha256=
|
|
1
|
+
qgis_plugin_dev_tools/__init__.py,sha256=EyLJdeFZiG9GjOkxlKxhB9yZDouz8kylbW5tBwmPCo4,1064
|
|
2
2
|
qgis_plugin_dev_tools/__main__.py,sha256=EqC7agwIoIKbMeOPrcpDWGAQmsaO_oFc0OkIxlowzmA,900
|
|
3
3
|
qgis_plugin_dev_tools/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
qgis_plugin_dev_tools/build/__init__.py,sha256=RbPVZeH29y8efqZRO0dmnH1ArzRvhcpOj9Ka60plX8c,3514
|
|
@@ -7,22 +7,22 @@ qgis_plugin_dev_tools/build/distribution.py,sha256=ST2h-YeVh8HWeDURhXoG_Rba9Zha1
|
|
|
7
7
|
qgis_plugin_dev_tools/build/metadata.py,sha256=rDKRDmvgJxsrlEWKnHNfq3gqOQxClgtNUeeKIIYyMos,1429
|
|
8
8
|
qgis_plugin_dev_tools/build/packaging.py,sha256=ShLrWY_tGlf9orj865MzuET8VRJTpODgb1CPNvISosc,6714
|
|
9
9
|
qgis_plugin_dev_tools/build/rewrite_imports.py,sha256=YZ3ORvm_7Gf6tBKqjqzp-BR-Q_CoIbIh7MlxRZIfPQA,5945
|
|
10
|
-
qgis_plugin_dev_tools/cli/__init__.py,sha256=
|
|
10
|
+
qgis_plugin_dev_tools/cli/__init__.py,sha256=qv0rEGKSUpk9oskNZC0X-bqiZy715XKDWQS0YBloqWI,6230
|
|
11
11
|
qgis_plugin_dev_tools/config/__init__.py,sha256=7l7Iyjst-pqLobiAO2bKLvkQFLVWoq4O_rny9lQvHp8,4678
|
|
12
|
-
qgis_plugin_dev_tools/config/dotenv.py,sha256=
|
|
12
|
+
qgis_plugin_dev_tools/config/dotenv.py,sha256=CmqPAIPCwRFS5gMuCePZuNAMwsjggCoXejA1Fpq5k8c,2647
|
|
13
13
|
qgis_plugin_dev_tools/config/pyproject.py,sha256=QvhZIk4QQezKSmTm28IG_lHBIO59CUQmAUQNB78Gxa4,2383
|
|
14
14
|
qgis_plugin_dev_tools/publish/__init__.py,sha256=PB0bUWl6vjDSlqPm92hw2Vtn1A3sqymm3pWgkWsPCOI,2081
|
|
15
|
-
qgis_plugin_dev_tools/start/__init__.py,sha256=
|
|
16
|
-
qgis_plugin_dev_tools/start/config.py,sha256=
|
|
15
|
+
qgis_plugin_dev_tools/start/__init__.py,sha256=9eBCJnpLjE7bll2R_YljiTFj9Bq0NqaFGPOKC7DG274,2181
|
|
16
|
+
qgis_plugin_dev_tools/start/config.py,sha256=n8MaHsY-21LVcNnxwTrg9k8Wo2jb03nCKta6OB9dN3s,1326
|
|
17
17
|
qgis_plugin_dev_tools/start/daemon_server.py,sha256=1i0MWQ0NnbBKZzV6OdT2BZaDEqcIx29ABCIJPorECkg,1845
|
|
18
|
-
qgis_plugin_dev_tools/start/launch.py,sha256=
|
|
18
|
+
qgis_plugin_dev_tools/start/launch.py,sha256=Lqvb7ISTnwV8K1AEVM34q5oUV3OYDsjfRTYMUva6EgE,1959
|
|
19
19
|
qgis_plugin_dev_tools/start/bootstrap/__init__.py,sha256=4FoIYBxXM7zgyaTM4gz5fGD99kYaaqEm-LwBj3Fbuks,2750
|
|
20
20
|
qgis_plugin_dev_tools/start/bootstrap/template.py,sha256=KV2EgHSMxKzA7wbKaxYwPnn6c1f7D2Yrd1Qq_Huh6y0,12432
|
|
21
21
|
qgis_plugin_dev_tools/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
22
22
|
qgis_plugin_dev_tools/utils/distributions.py,sha256=Q2jZT44Iw8LIBNrf1X2thfCLiKu9yiu7joj0Pdxk-Oc,3215
|
|
23
|
-
qgis_plugin_dev_tools-0.
|
|
24
|
-
qgis_plugin_dev_tools-0.
|
|
25
|
-
qgis_plugin_dev_tools-0.
|
|
26
|
-
qgis_plugin_dev_tools-0.
|
|
27
|
-
qgis_plugin_dev_tools-0.
|
|
28
|
-
qgis_plugin_dev_tools-0.
|
|
23
|
+
qgis_plugin_dev_tools-0.8.0.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
24
|
+
qgis_plugin_dev_tools-0.8.0.dist-info/METADATA,sha256=AwVTjaFDZk27lJbFbpOXmLmmk0kaXPuMMKPKbBe_IF4,10783
|
|
25
|
+
qgis_plugin_dev_tools-0.8.0.dist-info/WHEEL,sha256=Mdi9PDNwEZptOjTlUcAth7XJDFtKrHYaQMPulZeBCiQ,91
|
|
26
|
+
qgis_plugin_dev_tools-0.8.0.dist-info/entry_points.txt,sha256=RwM8y7cN8cRk003jpw-psB4DvifC5foZKSi04IDRBVw,109
|
|
27
|
+
qgis_plugin_dev_tools-0.8.0.dist-info/top_level.txt,sha256=JjwWwRniudLz30UtQJgmIQDeS3HgU5VBgDlKYJhz-nQ,22
|
|
28
|
+
qgis_plugin_dev_tools-0.8.0.dist-info/RECORD,,
|
|
File without changes
|
{qgis_plugin_dev_tools-0.7.0.dist-info → qgis_plugin_dev_tools-0.8.0.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{qgis_plugin_dev_tools-0.7.0.dist-info → qgis_plugin_dev_tools-0.8.0.dist-info}/top_level.txt
RENAMED
|
File without changes
|