-
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.
- Loading branch information
Showing
8 changed files
with
156 additions
and
22 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,26 @@ | ||
name: Semantic Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-24.04 | ||
concurrency: release | ||
permissions: | ||
id-token: write | ||
contents: write | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Python Semantic Release | ||
uses: python-semantic-release/[email protected] | ||
with: | ||
# Note: This token expires July 2025 | ||
# See: https://python-semantic-release.readthedocs.io/en/latest/index.html#index-creating-vcs-releases | ||
github_token: ${{ secrets.GH_TOKEN_FOR_SEMANTIC_CI_RELEASE }} |
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,2 @@ | ||
# Need to use system python to access QGIS libraries | ||
python system |
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,3 +1,5 @@ | ||
__version__ = "0.1.0" | ||
|
||
import logging | ||
|
||
from .plugin import OFDSDedupPlugin | ||
|
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 |
---|---|---|
|
@@ -10,3 +10,4 @@ mypy>=1.8,<2 | |
PyQt5-stubs | ||
qgis-stubs | ||
pip-tools | ||
python-semantic-release |
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
name=OFDS Consolidation Tool | ||
description=A tool to consolidate multiple data sets formatted using the Open Fibre Data Standard | ||
about=A tool to consolidate multiple data sets formatted using the Open Fibre Data Standard | ||
version=0.1 | ||
version=0.1.0 | ||
qgisMinimumVersion=3.28 | ||
author=ODSC | ||
[email protected] | ||
|
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 |
---|---|---|
|
@@ -4,29 +4,25 @@ version = "0.1.0" | |
requires-python = ">=3.8" | ||
|
||
authors = [ | ||
{name = "ODSC", email = "[email protected]"} | ||
{ name = "ODSC", email = "[email protected]" } | ||
] | ||
description = "A tool to consolidate multiple fibre network datasets formatted using the Open Fibre Data Standard" | ||
readme = "README.md" | ||
license = {file = "LICENSE"} | ||
license = { file = "LICENSE" } | ||
keywords = ["open", "fibre", "data", "standard", "ofds", "consolidation", "tool", "gis", "qgis"] | ||
|
||
# See: https://pypi.org/classifiers/ | ||
classifiers = [ | ||
# Development Status | ||
"Development Status :: 2 - Pre-Alpha", | ||
|
||
"Development Status :: 3 - Alpha", | ||
# Environment | ||
"Environment :: Plugins", | ||
|
||
# Indicate who your project is intended for | ||
"Intended Audience :: Telecommunications Industry", | ||
"Topic :: Desktop Environment", | ||
"Topic :: Scientific/Engineering :: GIS", | ||
|
||
# License | ||
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)", | ||
|
||
# Specify the Python versions you support here. | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.8", | ||
|
@@ -46,7 +42,7 @@ testpaths = [ | |
|
||
[tool.black] | ||
line-length = 88 | ||
force-exclude = "gui.py" # gui.py is generated by pyuic5, so don't format it | ||
force-exclude = "gui(_style)?.py" # gui.py is generated by pyuic5, so don't format it | ||
|
||
[tool.isort] | ||
# https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html#isort | ||
|
@@ -60,5 +56,64 @@ warn_unused_configs = true | |
check_untyped_defs = true | ||
exclude = [ | ||
"gui.py", | ||
"gui_style.py", | ||
"_lib/jellyfish/_jellyfish.py", | ||
] | ||
] | ||
|
||
[tool.semantic_release] | ||
assets = [] | ||
build_command_env = [] | ||
commit_message = "{version}\n\nAutomatically generated by python-semantic-release" | ||
commit_parser = "angular" | ||
logging_use_named_masks = false | ||
major_on_zero = true | ||
allow_zero_version = true | ||
no_git_verify = false | ||
tag_format = "v{version}" | ||
version_variables = ["__init__.py:__version__"] | ||
toml_variables = ["metadata.txt:general.version"] | ||
|
||
[tool.semantic_release.branches.main] | ||
match = '(main|master)' | ||
prerelease_token = "rc" | ||
prerelease = false | ||
|
||
[tool.semantic_release.changelog] | ||
template_dir = "templates" | ||
changelog_file = "CHANGELOG.md" | ||
exclude_commit_patterns = [] | ||
|
||
[tool.semantic_release.changelog.environment] | ||
block_start_string = "{%" | ||
block_end_string = "%}" | ||
variable_start_string = "{{" | ||
variable_end_string = "}}" | ||
comment_start_string = "{#" | ||
comment_end_string = "#}" | ||
trim_blocks = false | ||
lstrip_blocks = false | ||
newline_sequence = "\n" | ||
keep_trailing_newline = false | ||
extensions = [] | ||
autoescape = true | ||
|
||
[tool.semantic_release.commit_author] | ||
env = "GIT_COMMIT_AUTHOR" | ||
default = "semantic-release <semantic-release>" | ||
|
||
[tool.semantic_release.commit_parser_options] | ||
allowed_tags = ["build", "chore", "ci", "docs", "feat", "fix", "perf", "style", "refactor", "test"] | ||
minor_tags = ["feat"] | ||
patch_tags = ["fix", "perf"] | ||
default_bump_level = 0 | ||
|
||
[tool.semantic_release.remote] | ||
name = "origin" | ||
type = "github" | ||
ignore_token_for_push = false | ||
insecure = false | ||
|
||
[tool.semantic_release.publish] | ||
dist_glob_patterns = ["dist/*"] | ||
upload_to_vcs_release = false # TODO: create release zip | ||
|