plotui 0.5.0__tar.gz → 0.5.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. {plotui-0.5.0 → plotui-0.5.1}/Cargo.lock +9 -9
  2. {plotui-0.5.0 → plotui-0.5.1}/Cargo.toml +6 -6
  3. {plotui-0.5.0 → plotui-0.5.1}/PKG-INFO +1 -1
  4. {plotui-0.5.0 → plotui-0.5.1}/pyproject.toml +1 -1
  5. {plotui-0.5.0 → plotui-0.5.1}/python/plotui/_cli.py +10 -2
  6. {plotui-0.5.0 → plotui-0.5.1}/LICENSE +0 -0
  7. {plotui-0.5.0 → plotui-0.5.1}/README.md +0 -0
  8. {plotui-0.5.0 → plotui-0.5.1}/crates/plotui-bind/Cargo.toml +0 -0
  9. {plotui-0.5.0 → plotui-0.5.1}/crates/plotui-bind/README.md +0 -0
  10. {plotui-0.5.0 → plotui-0.5.1}/crates/plotui-bind/src/dot.rs +0 -0
  11. {plotui-0.5.0 → plotui-0.5.1}/crates/plotui-bind/src/lib.rs +0 -0
  12. {plotui-0.5.0 → plotui-0.5.1}/crates/plotui-core/Cargo.toml +0 -0
  13. {plotui-0.5.0 → plotui-0.5.1}/crates/plotui-core/README.md +0 -0
  14. {plotui-0.5.0 → plotui-0.5.1}/crates/plotui-core/fonts/MartianMono-OFL.txt +0 -0
  15. {plotui-0.5.0 → plotui-0.5.1}/crates/plotui-core/src/font.rs +0 -0
  16. {plotui-0.5.0 → plotui-0.5.1}/crates/plotui-core/src/glyphs.rs +0 -0
  17. {plotui-0.5.0 → plotui-0.5.1}/crates/plotui-core/src/layout.rs +0 -0
  18. {plotui-0.5.0 → plotui-0.5.1}/crates/plotui-core/src/lib.rs +0 -0
  19. {plotui-0.5.0 → plotui-0.5.1}/crates/plotui-core/src/marching.rs +0 -0
  20. {plotui-0.5.0 → plotui-0.5.1}/crates/plotui-core/src/ribbon.rs +0 -0
  21. {plotui-0.5.0 → plotui-0.5.1}/crates/plotui-core/src/ticks.rs +0 -0
  22. {plotui-0.5.0 → plotui-0.5.1}/crates/plotui-core/tests/input_map.rs +0 -0
  23. {plotui-0.5.0 → plotui-0.5.1}/crates/plotui-core/tests/pick_surface.rs +0 -0
  24. {plotui-0.5.0 → plotui-0.5.1}/crates/plotui-core/tests/render.rs +0 -0
  25. {plotui-0.5.0 → plotui-0.5.1}/crates/plotui-protocol/Cargo.toml +0 -0
  26. {plotui-0.5.0 → plotui-0.5.1}/crates/plotui-protocol/README.md +0 -0
  27. {plotui-0.5.0 → plotui-0.5.1}/crates/plotui-protocol/src/diacritics.rs +0 -0
  28. {plotui-0.5.0 → plotui-0.5.1}/crates/plotui-protocol/src/lib.rs +0 -0
  29. {plotui-0.5.0 → plotui-0.5.1}/crates/plotui-protocol/tests/protocol.rs +0 -0
  30. {plotui-0.5.0 → plotui-0.5.1}/crates/plotui-py/Cargo.toml +0 -0
  31. {plotui-0.5.0 → plotui-0.5.1}/crates/plotui-py/src/lib.rs +0 -0
  32. {plotui-0.5.0 → plotui-0.5.1}/crates/plotui-term/Cargo.toml +0 -0
  33. {plotui-0.5.0 → plotui-0.5.1}/crates/plotui-term/README.md +0 -0
  34. {plotui-0.5.0 → plotui-0.5.1}/crates/plotui-term/src/compose.rs +0 -0
  35. {plotui-0.5.0 → plotui-0.5.1}/crates/plotui-term/src/detect.rs +0 -0
  36. {plotui-0.5.0 → plotui-0.5.1}/crates/plotui-term/src/ids.rs +0 -0
  37. {plotui-0.5.0 → plotui-0.5.1}/crates/plotui-term/src/lib.rs +0 -0
  38. {plotui-0.5.0 → plotui-0.5.1}/crates/plotui-term/src/policy.rs +0 -0
  39. {plotui-0.5.0 → plotui-0.5.1}/crates/plotui-term/src/tmux.rs +0 -0
  40. {plotui-0.5.0 → plotui-0.5.1}/crates/plotui-term/tests/term.rs +0 -0
  41. {plotui-0.5.0 → plotui-0.5.1}/python/plotui/__init__.py +0 -0
  42. {plotui-0.5.0 → plotui-0.5.1}/python/plotui/textual.py +0 -0
@@ -1118,7 +1118,7 @@ checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
1118
1118
 
1119
1119
  [[package]]
1120
1120
  name = "plotui"
1121
- version = "0.5.0"
1121
+ version = "0.5.1"
1122
1122
  dependencies = [
1123
1123
  "clap",
1124
1124
  "crossterm",
@@ -1131,18 +1131,18 @@ dependencies = [
1131
1131
 
1132
1132
  [[package]]
1133
1133
  name = "plotui-bind"
1134
- version = "0.5.0"
1134
+ version = "0.5.1"
1135
1135
  dependencies = [
1136
1136
  "plotui-core",
1137
1137
  ]
1138
1138
 
1139
1139
  [[package]]
1140
1140
  name = "plotui-core"
1141
- version = "0.5.0"
1141
+ version = "0.5.1"
1142
1142
 
1143
1143
  [[package]]
1144
1144
  name = "plotui-ffi"
1145
- version = "0.5.0"
1145
+ version = "0.5.1"
1146
1146
  dependencies = [
1147
1147
  "cbindgen",
1148
1148
  "plotui-bind",
@@ -1153,7 +1153,7 @@ dependencies = [
1153
1153
 
1154
1154
  [[package]]
1155
1155
  name = "plotui-protocol"
1156
- version = "0.5.0"
1156
+ version = "0.5.1"
1157
1157
  dependencies = [
1158
1158
  "base64",
1159
1159
  "flate2",
@@ -1162,7 +1162,7 @@ dependencies = [
1162
1162
 
1163
1163
  [[package]]
1164
1164
  name = "plotui-py"
1165
- version = "0.5.0"
1165
+ version = "0.5.1"
1166
1166
  dependencies = [
1167
1167
  "numpy",
1168
1168
  "plotui-bind",
@@ -1174,7 +1174,7 @@ dependencies = [
1174
1174
 
1175
1175
  [[package]]
1176
1176
  name = "plotui-ratatui"
1177
- version = "0.5.0"
1177
+ version = "0.5.1"
1178
1178
  dependencies = [
1179
1179
  "crossterm",
1180
1180
  "plotui-core",
@@ -1185,7 +1185,7 @@ dependencies = [
1185
1185
 
1186
1186
  [[package]]
1187
1187
  name = "plotui-term"
1188
- version = "0.5.0"
1188
+ version = "0.5.1"
1189
1189
  dependencies = [
1190
1190
  "plotui-core",
1191
1191
  "plotui-protocol",
@@ -1194,7 +1194,7 @@ dependencies = [
1194
1194
 
1195
1195
  [[package]]
1196
1196
  name = "plotui-wasm"
1197
- version = "0.5.0"
1197
+ version = "0.5.1"
1198
1198
  dependencies = [
1199
1199
  "plotui-bind",
1200
1200
  "plotui-core",
@@ -3,7 +3,7 @@ resolver = "2"
3
3
  members = ["crates/plotui-core", "crates/plotui-protocol", "crates/plotui-term", "crates/plotui-bind", "crates/plotui-py"]
4
4
 
5
5
  [workspace.package]
6
- version = "0.5.0"
6
+ version = "0.5.1"
7
7
  edition = "2021"
8
8
  license = "MIT"
9
9
  repository = "https://github.com/sebaheg/plotui"
@@ -14,11 +14,11 @@ keywords = ["plot", "terminal", "tui", "kitty", "visualization"]
14
14
  categories = ["visualization", "command-line-utilities"]
15
15
 
16
16
  [workspace.dependencies]
17
- plotui-core = { version = "0.5.0", path = "crates/plotui-core" }
18
- plotui-protocol = { version = "0.5.0", path = "crates/plotui-protocol" }
19
- plotui-term = { version = "0.5.0", path = "crates/plotui-term" }
20
- plotui-bind = { version = "0.5.0", path = "crates/plotui-bind" }
21
- plotui-ratatui = { version = "0.5.0", path = "crates/plotui-ratatui" }
17
+ plotui-core = { version = "0.5.1", path = "crates/plotui-core" }
18
+ plotui-protocol = { version = "0.5.1", path = "crates/plotui-protocol" }
19
+ plotui-term = { version = "0.5.1", path = "crates/plotui-term" }
20
+ plotui-bind = { version = "0.5.1", path = "crates/plotui-bind" }
21
+ plotui-ratatui = { version = "0.5.1", path = "crates/plotui-ratatui" }
22
22
  ratatui = { version = "0.30", default-features = false }
23
23
  crossterm = "0.29"
24
24
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plotui
3
- Version: 0.5.0
3
+ Version: 0.5.1
4
4
  Requires-Dist: textual>=0.60 ; extra == 'textual'
5
5
  Provides-Extra: textual
6
6
  License-File: LICENSE
@@ -4,7 +4,7 @@ build-backend = "maturin"
4
4
 
5
5
  [project]
6
6
  name = "plotui"
7
- version = "0.5.0"
7
+ version = "0.5.1"
8
8
  description = "Interactive 2D/3D plots in the terminal — Plotly-style, for Textual, powered by a Rust core and the Kitty graphics protocol."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
@@ -1,6 +1,7 @@
1
1
  """The `plotui` console script: exec the bundled native CLI binary.
2
2
 
3
- Prebuilt wheels carry the compiled CLI at ``plotui/_bin/plotui``; this
3
+ Prebuilt wheels carry the compiled CLI at ``plotui/_bin/plotui`` (``.exe``
4
+ on Windows); this
4
5
  entry point replaces the Python process with it, so ``plotui`` on the
5
6
  command line *is* the native binary. Source builds don't bundle it.
6
7
  """
@@ -10,7 +11,8 @@ import sys
10
11
 
11
12
 
12
13
  def main() -> None:
13
- exe = os.path.join(os.path.dirname(__file__), "_bin", "plotui")
14
+ name = "plotui.exe" if sys.platform == "win32" else "plotui"
15
+ exe = os.path.join(os.path.dirname(__file__), "_bin", name)
14
16
  if not os.path.exists(exe):
15
17
  sys.stderr.write(
16
18
  "plotui: this install does not bundle the CLI (source builds don't).\n"
@@ -18,6 +20,12 @@ def main() -> None:
18
20
  )
19
21
  raise SystemExit(1)
20
22
  argv = [exe, *sys.argv[1:]]
23
+ if sys.platform == "win32":
24
+ # Windows has no exec: os.execv would spawn and detach, leaving the
25
+ # console to the shell while the CLI still reads it
26
+ import subprocess
27
+
28
+ raise SystemExit(subprocess.call(argv))
21
29
  try:
22
30
  os.execv(exe, argv)
23
31
  except PermissionError:
File without changes
File without changes
File without changes
File without changes