-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(bindgen): Use __version__ for Python JS package version
- Loading branch information
Showing
3 changed files
with
8 additions
and
3 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
packages/compress-stringify/python/itkwasm-compress-stringify-emscripten/.gitignore
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 @@ | ||
dist/ |
4 changes: 3 additions & 1 deletion
4
...on/itkwasm-compress-stringify-emscripten/itkwasm_compress_stringify_emscripten/pyodide.py
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,4 +1,6 @@ | ||
from itkwasm.pyodide import JsPackageConfig, JsPackage | ||
|
||
default_config = JsPackageConfig("https://cdn.jsdelivr.net/npm/@itk-wasm/[email protected]/dist/bundles/compress-stringify.js") | ||
from ._version import __version__ | ||
|
||
default_config = JsPackageConfig(f"https://cdn.jsdelivr.net/npm/@itk-wasm/compress-stringify@{__version__}/dist/bundles/compress-stringify.js") | ||
js_package = JsPackage(default_config) |
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