Skip to content

Commit 92af3ee

Browse files
committed
Release v2.0.2
1 parent 57b7076 commit 92af3ee

File tree

4 files changed

+18
-2
lines changed

4 files changed

+18
-2
lines changed

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
## [Unreleased]
99

1010

11+
## [2.0.2] - 2024-11-11
12+
13+
### Fixed
14+
- Renamed license file to `LICENSE` and included it in the generated zip for publishing in main QGIS plugins portal
15+
16+
1117
## [2.0.1] - 2024-11-11
1218

1319
### Fixed
@@ -147,7 +153,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
147153
### Added
148154
- First stable release
149155

150-
[unreleased]: https://github.com/ricardogsilva/qgisconefor/compare/v2.0.1...main
156+
[unreleased]: https://github.com/ricardogsilva/qgisconefor/compare/v2.0.2...main
157+
[2.0.2]: https://github.com/ricardogsilva/qgisconefor/compare/v2.0.1...v2.0.2
151158
[2.0.1]: https://github.com/ricardogsilva/qgisconefor/compare/v2.0.0...v2.0.1
152159
[2.0.0]: https://github.com/ricardogsilva/qgisconefor/compare/v2.0.0-rc9...v2.0.0
153160
[2.0.0-rc9]: https://github.com/ricardogsilva/qgisconefor/compare/v2.0.0-rc8...v2.0.0-rc9
File renamed without changes.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "qgisconefor"
3-
version = "2.0.1"
3+
version = "2.0.2"
44
description = "A QGIS plugin to integrate with the Conefor landscape conectivity analysis software."
55
authors = ["Ricardo Garcia Silva <[email protected]>"]
66
readme = "README.md"

src/plugindev/pluginadmin.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ def build(
9393
print("Could not copy icon")
9494
compile_resources(output_dir)
9595
generate_metadata(context, output_dir)
96+
copy_license(output_dir)
9697
return output_dir
9798

9899

@@ -125,6 +126,14 @@ def copy_source_files(
125126
handler(str(child.resolve()), str(target_path))
126127

127128

129+
def copy_license(output_dir: Path):
130+
output_dir.mkdir(parents=True, exist_ok=True)
131+
license_file_name = "LICENSE"
132+
license_path = LOCAL_ROOT_DIR / license_file_name
133+
target_path = output_dir / license_file_name
134+
shutil.copy(license_path, target_path)
135+
136+
128137
@app.command()
129138
def compile_resources(
130139
output_dir: typing.Optional[Path] = LOCAL_ROOT_DIR / "build/temp",

0 commit comments

Comments
 (0)