icplot 0.3.1__tar.gz → 0.3.3__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 (83) hide show
  1. {icplot-0.3.1/src/icplot.egg-info → icplot-0.3.3}/PKG-INFO +1 -1
  2. {icplot-0.3.1 → icplot-0.3.3}/pyproject.toml +1 -1
  3. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/renderer/formats/plantuml.py +3 -0
  4. {icplot-0.3.1 → icplot-0.3.3/src/icplot.egg-info}/PKG-INFO +1 -1
  5. {icplot-0.3.1 → icplot-0.3.3}/src/icplot.egg-info/SOURCES.txt +1 -0
  6. icplot-0.3.3/test/test_puml.py +24 -0
  7. {icplot-0.3.1 → icplot-0.3.3}/test/test_tex.py +2 -4
  8. {icplot-0.3.1 → icplot-0.3.3}/LICENSE +0 -0
  9. {icplot-0.3.1 → icplot-0.3.3}/README.md +0 -0
  10. {icplot-0.3.1 → icplot-0.3.3}/setup.cfg +0 -0
  11. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/__init__.py +0 -0
  12. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/charts/__init__.py +0 -0
  13. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/charts/gantt.py +0 -0
  14. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/charts/tree.py +0 -0
  15. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/converter/__init__.py +0 -0
  16. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/converter/cli.py +0 -0
  17. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/converter/convert.py +0 -0
  18. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/converter/image.py +0 -0
  19. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/geometry/__init__.py +0 -0
  20. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/geometry/base.py +0 -0
  21. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/geometry/mesh/__init__.py +0 -0
  22. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/geometry/mesh/cell.py +0 -0
  23. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/geometry/mesh/edge.py +0 -0
  24. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/geometry/mesh/mesh.py +0 -0
  25. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/geometry/mesh/openfoam/__init__.py +0 -0
  26. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/geometry/mesh/openfoam/blockmesh.py +0 -0
  27. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/geometry/mesh/openfoam/foamfile.py +0 -0
  28. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/geometry/mesh/openfoam/polymesh.py +0 -0
  29. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/geometry/mesh/operations.py +0 -0
  30. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/geometry/mesh/shapes.py +0 -0
  31. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/geometry/mesh/vertex.py +0 -0
  32. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/geometry/mesh/vtk.py +0 -0
  33. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/geometry/operations.py +0 -0
  34. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/geometry/shapes.py +0 -0
  35. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/geometry/transform.py +0 -0
  36. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/graph/__init__.py +0 -0
  37. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/graph/axis.py +0 -0
  38. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/graph/plot.py +0 -0
  39. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/graph/plot_group.py +0 -0
  40. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/graph/series.py +0 -0
  41. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/main_cli.py +0 -0
  42. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/py.typed +0 -0
  43. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/renderer/__init__.py +0 -0
  44. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/renderer/charts/pgfgantt.py +0 -0
  45. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/renderer/charts/svggantt.py +0 -0
  46. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/renderer/cli.py +0 -0
  47. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/renderer/config.py +0 -0
  48. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/renderer/formats/__init__.py +0 -0
  49. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/renderer/formats/mermaid.py +0 -0
  50. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/renderer/formats/tex.py +0 -0
  51. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/renderer/graph/__init__.py +0 -0
  52. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/renderer/graph/color.py +0 -0
  53. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/renderer/graph/matplotlib.py +0 -0
  54. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/renderer/graph/mpl.py +0 -0
  55. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/renderer/graph/renderer.py +0 -0
  56. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/renderer/graph/vtk.py +0 -0
  57. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/renderer/render.py +0 -0
  58. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/renderer/scene/cairo.py +0 -0
  59. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/renderer/video.py +0 -0
  60. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/scene.py +0 -0
  61. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/theme/__init__.py +0 -0
  62. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/theme/cli.py +0 -0
  63. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/theme/color.py +0 -0
  64. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/theme/templates/puml.j2 +0 -0
  65. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/theme/templates/tikz.j2 +0 -0
  66. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/theme/theme.json +0 -0
  67. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/theme/theme.py +0 -0
  68. {icplot-0.3.1 → icplot-0.3.3}/src/icplot/theme/theme_generator.py +0 -0
  69. {icplot-0.3.1 → icplot-0.3.3}/src/icplot.egg-info/dependency_links.txt +0 -0
  70. {icplot-0.3.1 → icplot-0.3.3}/src/icplot.egg-info/entry_points.txt +0 -0
  71. {icplot-0.3.1 → icplot-0.3.3}/src/icplot.egg-info/requires.txt +0 -0
  72. {icplot-0.3.1 → icplot-0.3.3}/src/icplot.egg-info/top_level.txt +0 -0
  73. {icplot-0.3.1 → icplot-0.3.3}/test/test_cairo.py +0 -0
  74. {icplot-0.3.1 → icplot-0.3.3}/test/test_gantt_chart.py +0 -0
  75. {icplot-0.3.1 → icplot-0.3.3}/test/test_geometry.py +0 -0
  76. {icplot-0.3.1 → icplot-0.3.3}/test/test_image.py +0 -0
  77. {icplot-0.3.1 → icplot-0.3.3}/test/test_line_plots.py +0 -0
  78. {icplot-0.3.1 → icplot-0.3.3}/test/test_mermaid.py +0 -0
  79. {icplot-0.3.1 → icplot-0.3.3}/test/test_meshing.py +0 -0
  80. {icplot-0.3.1 → icplot-0.3.3}/test/test_openfoam.py +0 -0
  81. {icplot-0.3.1 → icplot-0.3.3}/test/test_plot_group.py +0 -0
  82. {icplot-0.3.1 → icplot-0.3.3}/test/test_polymesh.py +0 -0
  83. {icplot-0.3.1 → icplot-0.3.3}/test/test_tree.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: icplot
3
- Version: 0.3.1
3
+ Version: 0.3.3
4
4
  Summary: Utilities for generating plots and graphics for technical reports.
5
5
  Author-email: "James Grogan, Irish Centre for High End Computing" <james.grogan@ichec.ie>
6
6
  Project-URL: Repository, https://git.ichec.ie/performance/toolshed/icplot
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "icplot"
3
- version = "0.3.1"
3
+ version = "0.3.3"
4
4
  authors = [
5
5
  { name="James Grogan, Irish Centre for High End Computing", email="james.grogan@ichec.ie" },
6
6
  ]
@@ -24,6 +24,9 @@ def render(ctx: RenderContext):
24
24
  logger.info("Rendering: %s -> %s", ctx.source, ctx.output_type)
25
25
 
26
26
  cmd = ["plantuml", f"-t{ctx.output_type}"]
27
+ if ctx.output_dir:
28
+ ctx.output_dir.mkdir(exist_ok=True, parents=True)
29
+ cmd.extend(["-o", str(ctx.output_dir)])
27
30
  if ctx.config.plantuml.config_path:
28
31
  cmd.extend(["-config", str(ctx.config.plantuml.config_path.resolve())])
29
32
  cmd.append(str(ctx.source))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: icplot
3
- Version: 0.3.1
3
+ Version: 0.3.3
4
4
  Summary: Utilities for generating plots and graphics for technical reports.
5
5
  Author-email: "James Grogan, Irish Centre for High End Computing" <james.grogan@ichec.ie>
6
6
  Project-URL: Repository, https://git.ichec.ie/performance/toolshed/icplot
@@ -76,5 +76,6 @@ test/test_meshing.py
76
76
  test/test_openfoam.py
77
77
  test/test_plot_group.py
78
78
  test/test_polymesh.py
79
+ test/test_puml.py
79
80
  test/test_tex.py
80
81
  test/test_tree.py
@@ -0,0 +1,24 @@
1
+ import shutil
2
+
3
+ from iccore.test_utils import get_test_data_dir, get_test_output_dir
4
+
5
+ from icplot.renderer.config import RenderConfig, RenderContext
6
+ from icplot.renderer.formats import plantuml
7
+
8
+
9
+ def test_puml():
10
+
11
+ data_dir = get_test_data_dir()
12
+ build_dir = get_test_output_dir()
13
+
14
+ render_ctx = RenderContext(
15
+ config=RenderConfig(),
16
+ source=data_dir / "test.puml",
17
+ output_type="png",
18
+ output_dir=get_test_output_dir(),
19
+ build_dir=get_test_output_dir(),
20
+ )
21
+
22
+ plantuml.render(render_ctx)
23
+
24
+ shutil.rmtree(build_dir)
@@ -1,9 +1,8 @@
1
1
  import shutil
2
- from pathlib import Path
3
2
 
4
3
  from iccore.test_utils import get_test_data_dir, get_test_output_dir
5
4
 
6
- from icplot.renderer.config import MermaidConfig, RenderConfig, RenderContext
5
+ from icplot.renderer.config import RenderConfig, RenderContext
7
6
  from icplot.renderer.formats import tex
8
7
 
9
8
 
@@ -11,11 +10,10 @@ def test_tex():
11
10
 
12
11
  data_dir = get_test_data_dir()
13
12
  build_dir = get_test_output_dir()
14
- source = data_dir / "test.tex"
15
13
 
16
14
  render_ctx = RenderContext(
17
15
  config=RenderConfig(),
18
- source=get_test_data_dir() / "test.tex",
16
+ source=data_dir / "test.tex",
19
17
  output_type="png",
20
18
  output_dir=get_test_output_dir(),
21
19
  build_dir=get_test_output_dir(),
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes