-
Notifications
You must be signed in to change notification settings - Fork 8
/
compile_and_prepare_for_upload_notes.txt
54 lines (46 loc) · 1.86 KB
/
compile_and_prepare_for_upload_notes.txt
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
43
44
45
46
47
48
49
50
51
52
53
54
# ----------- file format and encoding -------------
- windows line endings (CR LF)
- only utf-8 in all code
# ----------- icons -------------
- icons should be 22x22 px
- set paths to icons in resources.qrc
- compile resources.qrc (i.e. update resources.py):
$ cd ~/pythoncode/qgis_plugins/midvatten && pyrcc5 -o resources.py resources.qrc
# ----------- Qt ui ------------
- keep all ui forms in a subfolder ui which also contains an empty file __init__.py
- use direct load of qt ui, _without_ pyuic4 compilation (https://github.com/jkall/qgis-midvatten-plugin/issues/63) which is the case for:
- calc_aveflow_dialog
- calc_lvl_dialog
- calibr_logger_dialog
- customplotdialog
- secplotdockwidget_ui
- midvsettingsdock.ui
- for ui where direct load is not possible, compile new ui-files (i.e. create corresponding py files):
$ cd ~/pythoncode/qgis_plugins/midvatten/ui && pyuic4 -xo myui.py myui.ui
# ----------- Translations -------------
cd path/to/midvatten/plugin/
Update pro with pythonfiles:
find . -iname "*.py" | sort | sed 's:^:./:g' | sed 's:$: \\:g'
Skip files:
* */__init__.py,
* ././tools/tests/*
* ././tools/utils/util_translate.py
* ././resources.py
* ././plugin_zip_and_upload.py
And ui-files:
find ui -maxdepth 1 -iname "*.ui" | sort | sed 's:^:./:g' | sed 's:$: \\:g'
pylupdate5 -verbose midvatten.pro
# Translate strings using QtLinguist.
lrelease i18n/midvatten_*.ts
# ----------- Tests -------------
cd path/to/midvatten/plugin/
nosetests -vv --with-doctest --nocapture
# ---------- Metadata -----------
- Update the file metadata.txt by changing version=Version 1.3.13 to the new number.
- Add the changelog for the new version number in metadata.txt
# ---------- prepare for upload to qgis plugin repo ---------------
make a zipped archive of midvatten folder, excluding:
- *.pyc
- gitignore file
- .git folder
- html files in subfolder reports