flinventory 0.6.0__py3-none-any.whl → 0.6.2__py3-none-any.whl
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.
- flinventory/generate_labels.py +1 -8
- flinventory/signprinter_latex.py +11 -2
- {flinventory-0.6.0.dist-info → flinventory-0.6.2.dist-info}/METADATA +1 -1
- {flinventory-0.6.0.dist-info → flinventory-0.6.2.dist-info}/RECORD +7 -7
- {flinventory-0.6.0.dist-info → flinventory-0.6.2.dist-info}/WHEEL +0 -0
- {flinventory-0.6.0.dist-info → flinventory-0.6.2.dist-info}/entry_points.txt +0 -0
- {flinventory-0.6.0.dist-info → flinventory-0.6.2.dist-info}/licenses/LICENSE +0 -0
flinventory/generate_labels.py
CHANGED
@@ -176,10 +176,7 @@ def generate_labels(options: argparse.Namespace):
|
|
176
176
|
Args:
|
177
177
|
options: command line options given
|
178
178
|
"""
|
179
|
-
|
180
|
-
os.mkdir(options.output_dir)
|
181
|
-
except FileExistsError:
|
182
|
-
pass # everything fine
|
179
|
+
os.makedirs(options.output_dir, exist_ok=True)
|
183
180
|
logging.basicConfig(
|
184
181
|
filename=os.path.join(options.output_dir, options.logfile),
|
185
182
|
level=logging.DEBUG,
|
@@ -231,10 +228,6 @@ def generate_single_sign_svg(options: argparse.Namespace):
|
|
231
228
|
Args:
|
232
229
|
options: command line options given
|
233
230
|
"""
|
234
|
-
try:
|
235
|
-
os.mkdir(options.output_dir)
|
236
|
-
except FileExistsError:
|
237
|
-
pass # everything fine
|
238
231
|
logging.basicConfig(
|
239
232
|
filename=os.path.join(options.output_dir, options.logfile),
|
240
233
|
level=logging.DEBUG,
|
flinventory/signprinter_latex.py
CHANGED
@@ -23,6 +23,14 @@ TEMPLATE_POST = "signlist-footer.tex"
|
|
23
23
|
TEMPLATE_SIGN = "sign.tex"
|
24
24
|
DUMMY_IMAGE = "dummyImage.jpg"
|
25
25
|
AUX_DIR = "latexAux"
|
26
|
+
LATEXMK_OPTIONS = [
|
27
|
+
"latexmk",
|
28
|
+
f"-aux-directory={AUX_DIR}",
|
29
|
+
"-pdf",
|
30
|
+
"-interaction=nonstopmode",
|
31
|
+
"-f",
|
32
|
+
]
|
33
|
+
# only the tex file needs to be added to the list
|
26
34
|
|
27
35
|
UNIT = "cm" # todo: replace by length_unit in options, includes scaling the constants
|
28
36
|
# estimated by one example word
|
@@ -100,6 +108,7 @@ class SignPrinterLaTeX:
|
|
100
108
|
# pylint: disable-next=unbalanced-tuple-unpacking
|
101
109
|
self.pre, self.sign, self.post = self._read_templates()
|
102
110
|
self.output_dir = paths.output_dir
|
111
|
+
os.makedirs(self.output_dir, exist_ok=True)
|
103
112
|
self.signs_file = paths.output_signs_latex
|
104
113
|
self.logger = logging.getLogger(__name__)
|
105
114
|
|
@@ -480,7 +489,7 @@ class SignPrinterLaTeX:
|
|
480
489
|
"""Create a pdf and latex files with signs."""
|
481
490
|
self.save_signs_latex(things)
|
482
491
|
latex = subprocess.run(
|
483
|
-
[
|
492
|
+
LATEXMK_OPTIONS + [self.signs_file],
|
484
493
|
cwd=self.output_dir,
|
485
494
|
capture_output=True,
|
486
495
|
text=True,
|
@@ -521,7 +530,7 @@ class SignPrinterLaTeX:
|
|
521
530
|
with open(path_tex, mode="w") as file_tex_f:
|
522
531
|
file_tex_f.write(tex)
|
523
532
|
latex = subprocess.run(
|
524
|
-
[
|
533
|
+
LATEXMK_OPTIONS + [file_tex],
|
525
534
|
cwd=self.output_dir,
|
526
535
|
capture_output=True,
|
527
536
|
text=True,
|
@@ -1,18 +1,18 @@
|
|
1
|
-
flinventory-0.6.
|
2
|
-
flinventory-0.6.
|
3
|
-
flinventory-0.6.
|
4
|
-
flinventory-0.6.
|
1
|
+
flinventory-0.6.2.dist-info/METADATA,sha256=PjCZpsehLtUQo03okWh5i5_RGQLnGAxuiGtNCPiimS8,4907
|
2
|
+
flinventory-0.6.2.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
|
3
|
+
flinventory-0.6.2.dist-info/entry_points.txt,sha256=De3jjbHfy68_ZrwdjywlgrSUCn4QhqZGI0CJJt9S8_c,78
|
4
|
+
flinventory-0.6.2.dist-info/licenses/LICENSE,sha256=9c-AWlAEeFMmn1aODEfabsw2he-SpQeykurYw-KqSdw,34478
|
5
5
|
flinventory/__init__.py,sha256=0HTGxw9J-2KnbxQbzX6HH-Pztkp0BEjiHANhndfbtYM,270
|
6
6
|
flinventory/__main__.py,sha256=5U_RxWDlnhzlC98RaE8SkejjiYjv27OLdm5DPYgL4Gw,1295
|
7
7
|
flinventory/box.py,sha256=rk7yrAjVdxcrpvmTMt3jkMVOAoQNJfqoSig9U2S3yJ0,10480
|
8
8
|
flinventory/constant.py,sha256=pPNCwScLon_MOKL9_jjD_sxqB7Q2WW6rZqtrBl7SyWk,10283
|
9
9
|
flinventory/datacleanup.py,sha256=_CImmWJhq5uKz21jJQUqKYoQfbHEYA0000RyPRt5BI0,11363
|
10
10
|
flinventory/defaulted_data.py,sha256=KAy6V2KLcifLg7zHBFnx_eFLp31sCWih1Btp6cE0bQc,21585
|
11
|
-
flinventory/generate_labels.py,sha256=
|
11
|
+
flinventory/generate_labels.py,sha256=wjlyta9gowWOLvVfOVUQ8Ktpv3eg85JbAfDzI4Ok2V4,8476
|
12
12
|
flinventory/inventory_io.py,sha256=OWThcf9nzeZNqvNpzQiBhESQAnVXC7hUA8DEVzq-w-Y,12561
|
13
13
|
flinventory/location.py,sha256=UgJlbno16ipuFa4yUZK3SLrid70ACwE5He9Dd4P2SMU,16875
|
14
14
|
flinventory/sign.py,sha256=8G7fsne3Nsf8zZKKTUl40uWMNsWIv7FYV2KcqBR2MQI,5515
|
15
|
-
flinventory/signprinter_latex.py,sha256=
|
15
|
+
flinventory/signprinter_latex.py,sha256=L2UAneWO-QISiY9S41y9ZjH20LY_mV6b74E36TDLQM0,23054
|
16
16
|
flinventory/thing.py,sha256=86fXj3RwTbkCdVVWrbyO-VEW_e5lKJlV8PPt1Xf8ejY,5079
|
17
17
|
flinventory/thingtemplate_latex/.gitignore,sha256=DTF250Ttj8O2lxrQBwMNrQ73rWPvdwCytipfZSLFtlU,51
|
18
18
|
flinventory/thingtemplate_latex/dummyImage.jpg,sha256=bIBH5Lrxlr5qJ42nP1cpJXPRNGLOwyEuzwXFSvNwTSk,147857
|
@@ -20,4 +20,4 @@ flinventory/thingtemplate_latex/sign.tex,sha256=cVlOjImuS97Gf19MGW27HiP6Uw8JNnob
|
|
20
20
|
flinventory/thingtemplate_latex/signlist-footer.tex,sha256=LcZw5__h8SqgMmYxs5oLbXLaFTQlx_X5rtYnpxwUh9Y,14
|
21
21
|
flinventory/thingtemplate_latex/signlist-header.tex,sha256=F1J4aSPq6QO_Ved4Zn7-rytP1vDkdWTqjjtGJpe_FDg,297
|
22
22
|
flinventory/thingtemplate_latex/signs-example.tex,sha256=J6eCcPhP0Xklgn8xnSenDOvjzmc_NGmakWU4RGbeUtM,3090
|
23
|
-
flinventory-0.6.
|
23
|
+
flinventory-0.6.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|