-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from NRCan/dev
small bug fixes and initial review updates
- Loading branch information
Showing
31 changed files
with
1,429 additions
and
205 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# CanCurve development | ||
|
||
## Installation | ||
Typically, development should employ a virtual environment with pyqgis bindings. | ||
We usually develop to target the most recent QGIS LTR. | ||
Some additional packages for testing are specified in `./requirements.txt` | ||
|
||
### PYTHONPATH | ||
only the source directory should be included (`./CanCurve` not `./CanCurve/cancurve`) | ||
|
||
## Tests | ||
pytests are in `./tests` | ||
|
||
## Compiling | ||
the only compiling typically requied is when the qt `resources.qrc` file is changed. This needs to be ported to a python module (typically using `pyrcc5 -o resources.py resources.qrc` as in `./dev_tools/plug_compile.bat`) | ||
|
||
|
||
|
||
## Deploying Plugin | ||
|
||
### Active Development | ||
Typically a `dev` QGIS profile is maintained with a custom `QGIS_PLUGINPATH` pointed to the project source directory. This facilitates plugin updating with the `plugin reload` (ie no real deployment) | ||
|
||
### Pre-Release testing | ||
Pre-release testing (and full deployment) employ a zip of the plugin directory (see `./dev_tools/plug_zip.bat`): | ||
1) remove all `__pychace__` | ||
2) zip/archive the plugin directory | ||
|
||
This zip file can then be distributed using a git-hub release (upload the zip file to the github release... NOT the git repo tracking) | ||
|
||
|
||
### Full QGIS Repository release | ||
- [ ] create the plugin zip as above | ||
|
||
- [ ] in git-hub, create a new release tag (e.g., v1.2.0), summarize new features for developers. upload the zip file. | ||
|
||
- [ ] login to [plugins.qgis.org](https://plugins.qgis.org/accounts/login/?next=/plugins/my) using the CanFlood credentials (ask Nicky). Navigate to **Upload a plugin** and select the zip file. | ||
|
||
- [ ] In QGIS, refresh the repository and ensure that the new version is available (may take ~10mins for the version to be available). Upgrade and check that it works. | ||
|
||
- [ ] notify project team | ||
|
||
## Developing an Update | ||
|
||
the dev branch is where new features and fixes are collected and tested before release. The following should be executed on the dev branch in preparation for pushing to the main branch: | ||
|
||
- [ ] add/update documentation where applicable | ||
|
||
- [ ] backwards merge master into dev to capture any upstream changes (these should be minor and limited to documentation tweaks as all development is done on the dev branch) | ||
|
||
- [ ] ensure the version tag is updated on `.\cancurve\__init__.py` | ||
|
||
- [ ] update the README.md to summarize any new features for users | ||
|
||
- [ ] similarly update cancurve\metadata.txt | ||
|
||
- [ ] execute all tests. investigate warnings. fix errors. | ||
|
||
- [ ] perform a 'person test' by having a non-developer follow relevant tutorials. investigate warnings and fix errors. | ||
|
||
- [ ] Once these tests are complete **and passing**, a pull request should be completed and the dev branch merged into the main. | ||
|
||
- [ ] Follow the above **Deploying Plugin/Full QGIS Repository Release** on the main branch |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,38 @@ | ||
varName_core,varName_ui,varName_canflood,type,required_core,required_canflood,default_canflood,widgetName,case1,case2 | ||
,,tag,str,FALSE,TRUE,?,,test_case1,test_case2 | ||
,,location,str,FALSE,FALSE,?,,, | ||
,,date,str,FALSE,FALSE,?,,, | ||
,,source,str,FALSE,FALSE,?,,, | ||
,currency,impact_units,str,FALSE,TRUE,$CAD,currency_ComboBox,, | ||
,costBasis,impact_var,str,FALSE,FALSE,damage,costBasis_ComboBox,, | ||
,,exposure_units,str,FALSE,FALSE,m,comboBox_tab3dataInput_expoUnits,, | ||
,,exposure_var,str,FALSE,FALSE,flood depth above floor,,, | ||
,,scale_var,str,FALSE,FALSE,building footprint,,, | ||
bldg_layout,buildingLayout,,str,TRUE,FALSE,,buildingLayout_ComboBox,default,default | ||
,basementHeight,,float,FALSE,FALSE,,basementHeight_DoubleSpinBox,1.8,2.1 | ||
,basementHeightUnits,,str,FALSE,FALSE,,basementHeightUnits_ComboBox,m,m | ||
basement_height_m,,,float,TRUE,FALSE,,,1.8,2.1 | ||
,sizeOrAreaValue,,float,FALSE,FALSE,,sizeOrAreaValue_DoubleSpinBox,232.1,232.2 | ||
,sizeOrAreaUnits,scale_units,str,FALSE,FALSE,m2,sizeOrAreaUnits_ComboBox,m2,m2 | ||
scale_value_m2,,,float,TRUE,FALSE,,,232.1,232.2 | ||
,,exposure,str,FALSE,TRUE,impact,,, | ||
,occupancyClassification,,str,FALSE,FALSE,,occupancyClassification_ComboBox,, | ||
,subClassification,,str,FALSE,FALSE,,subClassification_ComboBox,, | ||
,storeys,,str,FALSE,FALSE,,storeys_ComboBox,, | ||
,heatingType,,str,FALSE,FALSE,,heatingType_ComboBox,, | ||
,coolingType,,str,FALSE,FALSE,,coolingType_ComboBox,, | ||
,garageType,,str,FALSE,FALSE,,garageType_ComboBox,, | ||
,garageSize,,str,FALSE,FALSE,,garageSize_ComboBox,, | ||
,buildingLayout,,str,FALSE,FALSE,,buildingLayout_ComboBox,, | ||
,foundationType,,str,FALSE,FALSE,,foundationType_ComboBox,, | ||
,qualityOfBuildingMaterials,,str,FALSE,FALSE,,qualityOfBuildingMaterials_ComboBox,, | ||
,provinceTerritory,,str,FALSE,FALSE,,provinceTerritory_ComboBox,, | ||
,taxesIncluded,,str,FALSE,FALSE,,taxesIncluded_ComboBox,, | ||
,priceListSource,,str,,,,,, | ||
,country,,str,,,,,, | ||
,BathroomCount,,int,,,,,, | ||
,pricingDate,,str,,,,,, | ||
,BedroomCount,,int,,,,,, | ||
,basementFinish,,str,,,,,, | ||
,createdBy,,str,,,,,, | ||
,locationCityTownRegion,,str,,,,,, | ||
,yearOfBuildingConstruction,,int,,,,,, | ||
varName_core,varName_ui,varName_canflood,type,required_core,required_canflood,default_canflood,widgetName,case1,case2,case3 | ||
,,tag,str,FALSE,TRUE,?,,test_case1,test_case2,heather_0509 | ||
,,location,str,FALSE,FALSE,?,,,, | ||
,,date,str,FALSE,FALSE,?,,,, | ||
,,source,str,FALSE,FALSE,?,,,, | ||
,currency,impact_units,str,FALSE,TRUE,$CAD,currency_ComboBox,,, | ||
,costBasis,impact_var,str,FALSE,FALSE,damage,costBasis_ComboBox,,,Depreciated Costs | ||
,,exposure_units,str,FALSE,FALSE,m,comboBox_tab3dataInput_expoUnits,,, | ||
,,exposure_var,str,FALSE,FALSE,flood depth above floor,,,, | ||
,,scale_var,str,FALSE,FALSE,building footprint,,,, | ||
bldg_layout,buildingLayout,,str,TRUE,FALSE,,buildingLayout_ComboBox,default,default,default | ||
,basementHeight,,float,FALSE,FALSE,,basementHeight_DoubleSpinBox,1.8,2.1,0 | ||
,basementHeightUnits,,str,FALSE,FALSE,,basementHeightUnits_ComboBox,m,m,m | ||
basement_height_m,,,float,TRUE,FALSE,,,1.8,2.1,0 | ||
,sizeOrAreaValue,,float,FALSE,FALSE,,sizeOrAreaValue_DoubleSpinBox,232.1,232.2,344 | ||
,sizeOrAreaUnits,scale_units,str,FALSE,FALSE,m2,sizeOrAreaUnits_ComboBox,m2,m2,m2 | ||
scale_value_m2,,,float,TRUE,FALSE,,,232.1,232.2,344 | ||
,,exposure,str,FALSE,TRUE,impact,,,, | ||
,occupancyClassification,,str,FALSE,FALSE,,occupancyClassification_ComboBox,,,Commercial | ||
,subClassification,,str,FALSE,FALSE,,subClassification_ComboBox,,,Construction | ||
,storeys,,str,FALSE,FALSE,,storeys_ComboBox,,,1 | ||
,BedroomCount,,int,FALSE,FALSE,,BedroomCount_QSpinBox,,,0 | ||
,BathroomCount,,float,FALSE,FALSE,,BathroomCount_DoubleSpinBox,,,1 | ||
,heatingType,,str,FALSE,FALSE,,heatingType_ComboBox,,,Forced Air - Gas | ||
,coolingType,,str,FALSE,FALSE,,coolingType_ComboBox,,,Central air | ||
,garageType,,str,FALSE,FALSE,,garageType_ComboBox,,,None | ||
,garageSize,,str,FALSE,FALSE,,garageSize_ComboBox,,, | ||
,foundationType,,str,FALSE,FALSE,,foundationType_ComboBox,,,other | ||
,qualityOfBuildingMaterials,,str,FALSE,FALSE,,qualityOfBuildingMaterials_ComboBox,,,Average | ||
,taxesIncluded,,str,FALSE,FALSE,,taxesIncluded_ComboBox,,, | ||
,priceListSource,,str,FALSE,FALSE,,priceListSource_LineEdit,,,exactimate | ||
,country,,str,FALSE,FALSE,Canada,country_ComboBox,,,Canada | ||
,provinceTerritory,,str,FALSE,FALSE,,provinceTerritory_ComboBox,,,ON | ||
,pricingDate,,str,FALSE,FALSE,,,,, | ||
,basementFinish,,float,FALSE,FALSE,,basementFinish_DoubleSpinBox,,,100 | ||
,createdBy,,str,FALSE,FALSE,,createdBy_LineEdit,,,hmcgrath | ||
,locationCityTownRegion,,str,FALSE,FALSE,,,,, | ||
,yearOfBuildingConstruction,,int,FALSE,FALSE,,yearOfBuildingConstruction_SpinBox,,,2500 |
Oops, something went wrong.