File tree Expand file tree Collapse file tree 3 files changed +14
-13
lines changed
Expand file tree Collapse file tree 3 files changed +14
-13
lines changed Original file line number Diff line number Diff line change 1313from profile_manager .gui .mdl_profiles import ProfileListModel
1414from profile_manager .gui .name_profile_dialog import NameProfileDialog
1515from profile_manager .gui .utils import data_sources_as_tree , plugins_as_items
16+ from profile_manager .qdt_export .models import QDTProfileInfos
1617from profile_manager .qdt_export .profile_export import (
17- QDTProfileInfos ,
1818 export_profile_for_qdt ,
1919 get_qdt_profile_infos_from_file ,
2020)
Original file line number Diff line number Diff line change 1+ from dataclasses import dataclass
2+
3+
4+ @dataclass
5+ class QDTProfileInfos :
6+ """Store informations for QDT profile creation"""
7+
8+ description : str = ""
9+ email : str = ""
10+ version : str = ""
11+ qgis_min_version : str = ""
12+ qgis_max_version : str = ""
Original file line number Diff line number Diff line change 11import dataclasses
22import json
3- from dataclasses import dataclass
43from pathlib import Path
54from shutil import copytree , rmtree
65from typing import Any , Dict
1110 get_profile_plugin_list_information ,
1211 qgis_profiles_path ,
1312)
13+ from profile_manager .qdt_export .models import QDTProfileInfos
1414
1515QDT_PROFILE_SCHEMA = "https://raw.githubusercontent.com/qgis-deployment/qgis-deployment-toolbelt-cli/main/docs/schemas/profile/qgis_profile.json"
1616
1717
18- @dataclass
19- class QDTProfileInfos :
20- """Store informations for QDT profile creation"""
21-
22- description : str = ""
23- email : str = ""
24- version : str = ""
25- qgis_min_version : str = ""
26- qgis_max_version : str = ""
27-
28-
2918def get_qdt_profile_infos_from_file (profile_file : Path ) -> QDTProfileInfos :
3019 """Get QDT Profile informations from a profile.json file
3120 File must exists
You can’t perform that action at this time.
0 commit comments