Skip to content

Commit eee3caf

Browse files
committed
chore: πŸŽ‰ release version 1.0.0 and update react plugin structure
- Bumped version from 0.3.2 to 1.0.0. - Updated build system to use Hatchling instead of setuptools. - Refactored react plugin paths and styles, replacing main.js with index.iife.js. - Introduced new CSS for custom renders and removed deprecated styles. - Adjusted versioning in the main module and updated references to the new plugin structure.
1 parent 0a90c0b commit eee3caf

7 files changed

Lines changed: 3876 additions & 20 deletions

File tree

β€ŽMANIFEST.inβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
graft src
22
graft tests
33
prune **/__pycache__/
4-
prune src/react_plugin
4+
prune src/react_plugin*

β€Žpyproject.tomlβ€Ž

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "funcnodes-plotly"
3-
version = "0.3.2"
3+
version = "1.0.0"
44
description = ""
55
readme = "README.md"
66
classifiers = [
@@ -31,8 +31,8 @@ dev = [
3131
]
3232

3333
[build-system]
34-
requires = [ "setuptools>=42",]
35-
build-backend = "setuptools.build_meta"
34+
requires = ["hatchling"]
35+
build-backend = "hatchling.build"
3636

3737
[project.license]
3838
text = "AGPL-3.0"
@@ -44,8 +44,8 @@ source = "https://github.com/Linkdlab/funcnodes_plotly"
4444
tracker = "https://github.com/Linkdlab/funcnodes_plotly/issues"
4545
download = "https://pypi.org/project/funcnodes-plotly/#files"
4646

47-
[tool.setuptools.package-dir]
48-
"" = "src"
47+
[tool.hatch.build.targets.wheel]
48+
packages = ["src/funcnodes_plotly"]
4949

5050

5151
[tool.commitizen]
@@ -58,5 +58,3 @@ update_changelog_on_bump = true
5858
module = "funcnodes_plotly"
5959
shelf = "funcnodes_plotly:NODE_SHELF"
6060

61-
[tool.setuptools.packages.find]
62-
where = [ "src",]

β€Žsrc/funcnodes_plotly/__init__.pyβ€Ž

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ def figure_byte_encoder(figure: go.Figure, preview) -> fn.BytesEncdata:
8484
)
8585

8686
REACT_PLUGIN = {
87-
"module": os.path.join(os.path.dirname(__file__), "react_plugin", "main.js"),
88-
"css": [os.path.join(os.path.dirname(__file__), "react_plugin", "style.css")],
87+
"module": os.path.join(os.path.dirname(__file__), "react_plugin", "index.iife.js"),
88+
"css": [os.path.join(os.path.dirname(__file__), "react_plugin", "plugin-custom-renders.css")],
8989
}
9090

9191

92-
__version__ = "0.3.1"
92+
__version__ = "1.0.0"

β€Žsrc/funcnodes_plotly/react_plugin/index.iife.jsβ€Ž

Lines changed: 3866 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žsrc/funcnodes_plotly/react_plugin/main.jsβ€Ž

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.funcnodes_plotly_container{width:100%;height:100%;min-height:300px;min-width:300px}.dialogchildren .funcnodes_plotly_container{min-height:60vh}

β€Žsrc/funcnodes_plotly/react_plugin/style.cssβ€Ž

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
Β (0)