Skip to content

Commit 60e4573

Browse files
fix(PluginPackager): wrong output path
1 parent 6abba45 commit 60e4573

5 files changed

Lines changed: 13 additions & 11 deletions

File tree

.github/workflows/python-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
environment:
5252
name: pypi
5353
# OPTIONAL: uncomment and update to include your PyPI project URL in the deployment status:
54-
url: https://pypi.org/project/class-widgets-stubs/
54+
url: https://pypi.org/project/class-widgets-sdk/
5555
#
5656
# ALTERNATIVE: if your GitHub Release name is the PyPI project version string
5757
# ALTERNATIVE: exactly, uncomment the following line instead:

ClassWidgets/SDK/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import sys
55
from typing import TYPE_CHECKING
66

7-
__version__ = '0.1.0'
7+
__version__ = '0.1.1'
88
__author__ = 'Class Widgets Official'
99

1010

ClassWidgets/SDK/tools/packager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def pack(self, output_path: Optional[Path] = None, file_format: str = 'cwplugin'
6464
suffix = f".{file_format.lower().lstrip('.')}"
6565
# output_name = f"{plugin_id}_{version}{suffix}"
6666
output_name = f"{plugin_id}{suffix}"
67-
output_path = self.source_dir.parent / output_name
67+
output_path = self.source_dir / output_name
6868

6969
output_path = Path(output_path).resolve()
7070

example.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,17 @@
44

55

66
class ExamplePlugin(CW2Plugin):
7+
# def on_load(self):
8+
# super().on_load()
9+
# print(self.api.ui.register_settings_page(
10+
# title='Settings',
11+
# qml_path=os.path.join(os.path.dirname(__file__), 'settings.qml'),
12+
# plugin=self,
13+
# ))
714
def on_load(self):
8-
super().on_load()
9-
print(self.api.ui.register_settings_page(
10-
title='Settings',
11-
qml_path=os.path.join(os.path.dirname(__file__), 'settings.qml'),
12-
plugin=self,
13-
))
15+
print("Example plugin loaded")
1416

1517

1618
if __name__ == '__main__':
17-
plugin = ExamplePlugin(PluginAPI(None))
19+
plugin = ExamplePlugin(PluginAPI(1))
1820
plugin.on_load()

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "Class-Widgets-SDK"
7-
version = "0.1.0"
7+
version = "0.1.1"
88
description = "Class Widgets 2 Plugin SDK Development tools and type stubs"
99
readme = "README.md"
1010
requires-python = ">=3.9"

0 commit comments

Comments
 (0)