Skip to content

Commit 4510736

Browse files
committed
finecode_extension_api v0.2.0
1 parent b93df1c commit 4510736

2 files changed

Lines changed: 6 additions & 8 deletions

File tree

finecode_extension_api/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[project]
22
name = "finecode-extension-api"
3-
version = "0.1.3"
3+
version = "0.2.0"
44
description = ""
55
authors = [{ name = "Vladyslav Hnatiuk", email = "aders1234@gmail.com" }]
66
readme = "README.md"
77
requires-python = ">=3.11, < 3.14"
88
dependencies = ["typing-extensions (>=4.12.2,<5.0.0)"]
99

1010
[dependency-groups]
11-
dev_workspace = ["finecode==0.2.6.dev14+g790c37afd.d20250821"]
11+
dev_workspace = ["finecode==0.3.0"]
1212
dev_no_runtime = ["finecode_dev_common_preset==0.1.*"]
1313

1414
[tool.finecode]

finecode_extension_api/src/finecode_extension_api/actions/build.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class BuildRunPayload(code_action.RunActionPayload):
1717
# packages can have different layouts. Use service (TODO) to get package source
1818
# directory path and avoid need to handle all possible cases by yourself.
1919
package_root_path: pathlib.Path
20-
build_type: typing.Literal['release'] | typing.Literal['debug'] = 'release'
20+
build_type: typing.Literal["release"] | typing.Literal["debug"] = "release"
2121
# TODO: entrypoint
2222
# TODO: package type
2323
# TODO: target platform? (including version etc)
@@ -44,7 +44,7 @@ def update(self, other: code_action.RunActionResult) -> None:
4444
return
4545

4646
def to_text(self) -> str | textstyler.StyledText:
47-
return ''
47+
return ""
4848

4949

5050
# general build action: any type of project should be built: library(pure and not pure python), application(both pure distributed as python package and application transformed to executable)
@@ -56,9 +56,7 @@ def to_text(self) -> str | textstyler.StyledText:
5656
# 5. Application packaged to executable with pyinstaller or similar tool.
5757
#
5858
# Customization examples:
59-
# - Recognize constructs(syntax, imports) supported only by higher versions of python and replace them by alternatives from older python. One universal wheel will become version-specific wheel.
59+
# - Recognize constructs(syntax, imports) supported only by higher versions of python and replace them by alternatives from older python. One universal wheel will become version-specific wheel.
6060
# - the same could be applied for platform-specific functionalities
6161
# - optimize implementation
62-
type BuildAction = code_action.Action[
63-
BuildRunPayload, BuildRunContext, BuildRunResult
64-
]
62+
type BuildAction = code_action.Action[BuildRunPayload, BuildRunContext, BuildRunResult]

0 commit comments

Comments
 (0)