Skip to content

Commit

Permalink
Release v2.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardogsilva committed Nov 11, 2024
1 parent 57b7076 commit 92af3ee
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]


## [2.0.2] - 2024-11-11

### Fixed
- Renamed license file to `LICENSE` and included it in the generated zip for publishing in main QGIS plugins portal


## [2.0.1] - 2024-11-11

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

[unreleased]: https://github.com/ricardogsilva/qgisconefor/compare/v2.0.1...main
[unreleased]: https://github.com/ricardogsilva/qgisconefor/compare/v2.0.2...main
[2.0.2]: https://github.com/ricardogsilva/qgisconefor/compare/v2.0.1...v2.0.2
[2.0.1]: https://github.com/ricardogsilva/qgisconefor/compare/v2.0.0...v2.0.1
[2.0.0]: https://github.com/ricardogsilva/qgisconefor/compare/v2.0.0-rc9...v2.0.0
[2.0.0-rc9]: https://github.com/ricardogsilva/qgisconefor/compare/v2.0.0-rc8...v2.0.0-rc9
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "qgisconefor"
version = "2.0.1"
version = "2.0.2"
description = "A QGIS plugin to integrate with the Conefor landscape conectivity analysis software."
authors = ["Ricardo Garcia Silva <[email protected]>"]
readme = "README.md"
Expand Down
9 changes: 9 additions & 0 deletions src/plugindev/pluginadmin.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ def build(
print("Could not copy icon")
compile_resources(output_dir)
generate_metadata(context, output_dir)
copy_license(output_dir)
return output_dir


Expand Down Expand Up @@ -125,6 +126,14 @@ def copy_source_files(
handler(str(child.resolve()), str(target_path))


def copy_license(output_dir: Path):
output_dir.mkdir(parents=True, exist_ok=True)
license_file_name = "LICENSE"
license_path = LOCAL_ROOT_DIR / license_file_name
target_path = output_dir / license_file_name
shutil.copy(license_path, target_path)


@app.command()
def compile_resources(
output_dir: typing.Optional[Path] = LOCAL_ROOT_DIR / "build/temp",
Expand Down

0 comments on commit 92af3ee

Please sign in to comment.