From 03cf61f0b096d9c0ced3267bf82cfb8175d6a9e8 Mon Sep 17 00:00:00 2001 From: Leon Wright Date: Mon, 26 Apr 2021 16:02:37 +0800 Subject: [PATCH 1/4] chore: Release to publish automatically --- .github/workflows/release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 79ec115..4d00edf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,6 +30,7 @@ jobs: with: repo_token: "${{ secrets.GITHUB_TOKEN }}" prerelease: false + draft: false files: | LICENSE.txt dist/*.tar.gz From 0668437d33a4aca6df6a2fc2029bd8d06dfcf5f4 Mon Sep 17 00:00:00 2001 From: Leon Wright Date: Mon, 26 Apr 2021 16:03:11 +0800 Subject: [PATCH 2/4] chore: Bump version and fix author/repo information --- filament_scale_enhanced/__init__.py | 6 +++--- filament_scale_enhanced/fse_version.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/filament_scale_enhanced/__init__.py b/filament_scale_enhanced/__init__.py index e1dc9be..a4d8ac8 100644 --- a/filament_scale_enhanced/__init__.py +++ b/filament_scale_enhanced/__init__.py @@ -72,12 +72,12 @@ def get_update_information(self): # version check: github repository type="github_release", - user="dieki-n", - repo="OctoPrint-Filament-scale", + user="techman83", + repo="Filament-Scale-Enhanced", current=self._plugin_version, # update method: pip - pip="https://github.com/dieki-n/OctoPrint-Filament-scale/archive/{target_version}.zip" + pip="https://github.com/techman83/Filament-Scale-Enhanced/releases/download/v{target_version}/Filament_Scale_Enhanced-{target_version}.tar.gz" # pylint: disable=line-too-long ) ) diff --git a/filament_scale_enhanced/fse_version.py b/filament_scale_enhanced/fse_version.py index 91ee717..0bcc5d9 100644 --- a/filament_scale_enhanced/fse_version.py +++ b/filament_scale_enhanced/fse_version.py @@ -1 +1 @@ -VERSION = "0.2.1" +VERSION = "0.2.2" From 11b7a01d420f2ec2b6c14ba0c4a47c759b0e3f9a Mon Sep 17 00:00:00 2001 From: Leon Wright Date: Mon, 26 Apr 2021 16:03:45 +0800 Subject: [PATCH 3/4] fix: use existing identifier for automatic change between plugins --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 4f28a1b..7431dda 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ import sys sys.exit(-1) -plugin_identifier = "filament_scale_enhanced" +plugin_identifier = "filament_scale" plugin_package = "filament_scale_enhanced" plugin_name = "Filament Scale Enhanced" plugin_version = __version__ From 7e5b525e4af6f48a9bff98ecc7de25e34c3d24e7 Mon Sep 17 00:00:00 2001 From: Leon Wright Date: Mon, 26 Apr 2021 16:09:50 +0800 Subject: [PATCH 4/4] fix: Ignore line length in update information --- filament_scale_enhanced/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/filament_scale_enhanced/__init__.py b/filament_scale_enhanced/__init__.py index a4d8ac8..f4fe06b 100644 --- a/filament_scale_enhanced/__init__.py +++ b/filament_scale_enhanced/__init__.py @@ -60,6 +60,7 @@ def check_weight(self): self._plugin_manager.send_plugin_message(self._identifier, v) self.hx.power_down() + # pylint: disable=line-too-long def get_update_information(self): # Define the configuration for your plugin to use with the # Software Update Plugin here. @@ -77,7 +78,7 @@ def get_update_information(self): current=self._plugin_version, # update method: pip - pip="https://github.com/techman83/Filament-Scale-Enhanced/releases/download/v{target_version}/Filament_Scale_Enhanced-{target_version}.tar.gz" # pylint: disable=line-too-long + pip="https://github.com/techman83/Filament-Scale-Enhanced/releases/download/v{target_version}/Filament_Scale_Enhanced-{target_version}.tar.gz" # noqa: E501 ) )