-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.py
executable file
·42 lines (36 loc) · 1.61 KB
/
build.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Gispo Ltd., hereby disclaims all copyright interest in the program Unfolded QGIS plugin
# Copyright (C) 2021 Gispo Ltd (https://www.gispo.fi/).
#
#
# This file is part of Unfolded QGIS plugin.
#
# Unfolded QGIS plugin is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# Unfolded QGIS plugin is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Unfolded QGIS plugin. If not, see <https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html>.
import glob
from qgis_plugin_tools.infrastructure.plugin_maker import PluginMaker
'''
#################################################
# Edit the following to match the plugin
#################################################
'''
py_files = [fil for fil in glob.glob("**/*.py", recursive=True) if "test/" not in fil]
locales = ['fi']
profile = 'default'
ui_files = list(glob.glob("**/*.ui", recursive=True))
resources = list(glob.glob("**/*.qrc", recursive=True))
extra_dirs = ["resources"]
compiled_resources = []
PluginMaker(py_files=py_files, ui_files=ui_files, resources=resources, extra_dirs=extra_dirs,
compiled_resources=compiled_resources, locales=locales, profile=profile)