predictygraph 0.3.0__tar.gz → 0.3.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 (62) hide show
  1. {predictygraph-0.3.0 → predictygraph-0.3.1}/PKG-INFO +2 -1
  2. {predictygraph-0.3.0 → predictygraph-0.3.1}/README.md +1 -0
  3. {predictygraph-0.3.0 → predictygraph-0.3.1}/pyproject.toml +1 -1
  4. {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/theme.py +1 -1
  5. {predictygraph-0.3.0 → predictygraph-0.3.1}/tests/test_stack.py +8 -0
  6. {predictygraph-0.3.0 → predictygraph-0.3.1}/LICENSE +0 -0
  7. {predictygraph-0.3.0 → predictygraph-0.3.1}/NOTICE +0 -0
  8. {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/__init__.py +0 -0
  9. {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/__main__.py +0 -0
  10. {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/anim.py +0 -0
  11. {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/cli.py +0 -0
  12. {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/default.css +0 -0
  13. {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/fonts/Carlito-Bold.ttf +0 -0
  14. {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/fonts/Carlito-Regular.ttf +0 -0
  15. {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/fonts/DejaVuSans-Bold.ttf +0 -0
  16. {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/fonts/DejaVuSans.ttf +0 -0
  17. {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/fonts/LiberationMono-Bold.ttf +0 -0
  18. {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/fonts/LiberationMono-Regular.ttf +0 -0
  19. {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/fonts/LiberationSans-Bold.ttf +0 -0
  20. {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/fonts/LiberationSans-Regular.ttf +0 -0
  21. {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/fonts/LiberationSerif-Bold.ttf +0 -0
  22. {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/fonts/LiberationSerif-Regular.ttf +0 -0
  23. {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/fonts/licenses/Bitstream-Vera.txt +0 -0
  24. {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/fonts/licenses/OFL-1.1.txt +0 -0
  25. {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/fonts/licenses/README.md +0 -0
  26. {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/fonts.py +0 -0
  27. {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/ir.py +0 -0
  28. {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/layout.py +0 -0
  29. {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/model.py +0 -0
  30. {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/parser.py +0 -0
  31. {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/render/__init__.py +0 -0
  32. {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/render/apng.py +0 -0
  33. {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/render/svg.py +0 -0
  34. {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/route.py +0 -0
  35. {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/safe.py +0 -0
  36. {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/scene.py +0 -0
  37. {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/style.py +0 -0
  38. {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/styleutil.py +0 -0
  39. {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/text.py +0 -0
  40. {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/themes/catppuccin-frappe.toml +0 -0
  41. {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/themes/catppuccin-latte.toml +0 -0
  42. {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/themes/catppuccin-macchiato.toml +0 -0
  43. {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/themes/catppuccin-mocha.toml +0 -0
  44. {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/themes/default.toml +0 -0
  45. {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/themes/dracula.toml +0 -0
  46. {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/themes/github-light.toml +0 -0
  47. {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/themes/gruvbox-dark.toml +0 -0
  48. {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/themes/hami.toml +0 -0
  49. {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/themes/nord.toml +0 -0
  50. {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/themes/solarized-dark.toml +0 -0
  51. {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/themes/solarized-light.toml +0 -0
  52. {predictygraph-0.3.0 → predictygraph-0.3.1}/src/predictygraph/themes/trunkline.toml +0 -0
  53. {predictygraph-0.3.0 → predictygraph-0.3.1}/tests/test_annotations.py +0 -0
  54. {predictygraph-0.3.0 → predictygraph-0.3.1}/tests/test_blocks.py +0 -0
  55. {predictygraph-0.3.0 → predictygraph-0.3.1}/tests/test_diagonal.py +0 -0
  56. {predictygraph-0.3.0 → predictygraph-0.3.1}/tests/test_fixes.py +0 -0
  57. {predictygraph-0.3.0 → predictygraph-0.3.1}/tests/test_hardening.py +0 -0
  58. {predictygraph-0.3.0 → predictygraph-0.3.1}/tests/test_predictygraph.py +0 -0
  59. {predictygraph-0.3.0 → predictygraph-0.3.1}/tests/test_routing.py +0 -0
  60. {predictygraph-0.3.0 → predictygraph-0.3.1}/tests/test_scene.py +0 -0
  61. {predictygraph-0.3.0 → predictygraph-0.3.1}/tests/test_targets.py +0 -0
  62. {predictygraph-0.3.0 → predictygraph-0.3.1}/tests/test_trunkline.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: predictygraph
3
- Version: 0.3.0
3
+ Version: 0.3.1
4
4
  Summary: Predictable graphs: a readable, CSS-styled diagram DSL with per-group layouts, rendered to SVG/APNG
5
5
  Author-Email: Reza Jelveh <git@jelveh.me>
6
6
  License: Apache-2.0
@@ -24,6 +24,7 @@ SPDX-License-Identifier: Apache-2.0
24
24
  plain-CSS styling, and static or animated SVG/APNG output (no browser).
25
25
  Spec: [docs/SPEC.md](docs/SPEC.md). Docs: [predictygraph.github.io](https://predictygraph.github.io/).
26
26
  Editor support: [tree-sitter-pdg](https://github.com/predictygraph/tree-sitter-pdg).
27
+ In the browser: [predictygraph-js](https://github.com/predictygraph/predictygraph-js).
27
28
  Rendered examples and the gallery: [predictygraph.github.io](https://predictygraph.github.io/). This repo keeps
28
29
  only `.pdg` sources; images live in the docs repo (git-lfs).
29
30
 
@@ -10,6 +10,7 @@ SPDX-License-Identifier: Apache-2.0
10
10
  plain-CSS styling, and static or animated SVG/APNG output (no browser).
11
11
  Spec: [docs/SPEC.md](docs/SPEC.md). Docs: [predictygraph.github.io](https://predictygraph.github.io/).
12
12
  Editor support: [tree-sitter-pdg](https://github.com/predictygraph/tree-sitter-pdg).
13
+ In the browser: [predictygraph-js](https://github.com/predictygraph/predictygraph-js).
13
14
  Rendered examples and the gallery: [predictygraph.github.io](https://predictygraph.github.io/). This repo keeps
14
15
  only `.pdg` sources; images live in the docs repo (git-lfs).
15
16
 
@@ -12,7 +12,7 @@ dependencies = [
12
12
  ]
13
13
  requires-python = ">=3.11"
14
14
  readme = "README.md"
15
- version = "0.3.0"
15
+ version = "0.3.1"
16
16
 
17
17
  [project.license]
18
18
  text = "Apache-2.0"
@@ -62,7 +62,7 @@ def load_theme(name: str, base_dir: str = ".", _seen=()) -> dict:
62
62
  if data["extends"] in _seen:
63
63
  raise ThemeError(f"{path}: extends cycle")
64
64
  parent = load_theme(data["extends"], str(path.parent), _seen + (name,))
65
- for sect in ("palette", "roles", "shape"):
65
+ for sect in ("palette", "roles", "shape", "seaborn"): # [seaborn]: chart settings for decktile, unused here
66
66
  parent.setdefault(sect, {}).update(data.get(sect, {}))
67
67
  if "css" in data: # extra rules stack: parent's first, then the child's
68
68
  parent["css"] = parent.get("css", "") + "\n" + data["css"]
@@ -95,3 +95,11 @@ def test_align_x_keeps_gaps_by_moving_neighbours():
95
95
 
96
96
  assert abs(gap(doc) - gap(plain)) < 0.01 # b moved with a: the label still fits
97
97
  assert doc.items["a"].ax > plain.items["a"].ax
98
+
99
+
100
+ def test_extends_merges_seaborn_section(tmp_path):
101
+ from predictygraph.theme import load_theme
102
+
103
+ (tmp_path / "brand.toml").write_text('schema = 1\nextends = "hami"\n[seaborn]\npalette = ["blue"]\n')
104
+ t = load_theme("brand.toml", str(tmp_path))
105
+ assert t["seaborn"] == {"palette": ["blue"]} and t["palette"]["green"] == "#16a34a"
File without changes
File without changes