icplot 0.0.2__tar.gz → 0.0.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: icplot
3
- Version: 0.0.2
3
+ Version: 0.0.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.0.2"
3
+ version = "0.0.3"
4
4
  authors = [
5
5
  { name="James Grogan, Irish Centre for High End Computing", email="james.grogan@ichec.ie" },
6
6
  ]
@@ -90,7 +90,7 @@ commands =
90
90
  mypy {posargs:src test}
91
91
 
92
92
  [testenv:docs]
93
- changedir = doc
93
+ changedir = docs
94
94
  deps = sphinx
95
95
  commands = sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
96
96
  """
@@ -11,19 +11,16 @@ logger = logging.getLogger(__name__)
11
11
 
12
12
 
13
13
  class TexInterface:
14
+ def __init__(self, build_dir: Path | None, output_dir: Path | None):
14
15
 
15
- def __init__(self, build_dir: Path, output_dir: Path):
16
-
17
- if not build_dir.is_absolute():
18
- build_dir = Path(os.getcwd()) / build_dir
19
-
16
+ if build_dir:
17
+ self.build_dir: Path = build_dir.resolve()
18
+ else:
19
+ self.build_dir = Path()
20
20
  if not output_dir:
21
- output_dir = build_dir
22
-
23
- if not output_dir.is_absolute():
24
- output_dir = Path(os.getcwd()) / output_dir
25
- self.build_dir = build_dir
26
- self.output_dir = output_dir
21
+ self.output_dir: Path = self.build_dir
22
+ else:
23
+ self.output_dir = output_dir.resolve()
27
24
  self.build_engine = "pdflatex"
28
25
 
29
26
  def build_pdf(self, source_path: Path, build_dir: Path):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: icplot
3
- Version: 0.0.2
3
+ Version: 0.0.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
@@ -26,3 +26,5 @@ def test_gantt_chart():
26
26
  output_path = Path(os.getcwd()) / "gantt.svg"
27
27
 
28
28
  gantt.plot(output_path)
29
+
30
+ output_path.unlink()
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes