flinventory 0.6.12__tar.gz → 0.6.14__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 (24) hide show
  1. {flinventory-0.6.12 → flinventory-0.6.14}/PKG-INFO +1 -1
  2. {flinventory-0.6.12 → flinventory-0.6.14}/flinventory/constant.py +1 -0
  3. {flinventory-0.6.12 → flinventory-0.6.14}/flinventory/location.py +3 -1
  4. {flinventory-0.6.12 → flinventory-0.6.14}/flinventory/signprinter_latex.py +4 -2
  5. {flinventory-0.6.12 → flinventory-0.6.14}/pyproject.toml +1 -1
  6. {flinventory-0.6.12 → flinventory-0.6.14}/LICENSE +0 -0
  7. {flinventory-0.6.12 → flinventory-0.6.14}/README.md +0 -0
  8. {flinventory-0.6.12 → flinventory-0.6.14}/flinventory/__init__.py +0 -0
  9. {flinventory-0.6.12 → flinventory-0.6.14}/flinventory/__main__.py +0 -0
  10. {flinventory-0.6.12 → flinventory-0.6.14}/flinventory/box.py +0 -0
  11. {flinventory-0.6.12 → flinventory-0.6.14}/flinventory/datacleanup.py +0 -0
  12. {flinventory-0.6.12 → flinventory-0.6.14}/flinventory/defaulted_data.py +0 -0
  13. {flinventory-0.6.12 → flinventory-0.6.14}/flinventory/generate_labels.py +0 -0
  14. {flinventory-0.6.12 → flinventory-0.6.14}/flinventory/inventory_io.py +0 -0
  15. {flinventory-0.6.12 → flinventory-0.6.14}/flinventory/sign.py +0 -0
  16. {flinventory-0.6.12 → flinventory-0.6.14}/flinventory/thing.py +0 -0
  17. {flinventory-0.6.12 → flinventory-0.6.14}/flinventory/thingtemplate_latex/.gitignore +0 -0
  18. {flinventory-0.6.12 → flinventory-0.6.14}/flinventory/thingtemplate_latex/dummyImage.jpg +0 -0
  19. {flinventory-0.6.12 → flinventory-0.6.14}/flinventory/thingtemplate_latex/sign.tex +0 -0
  20. {flinventory-0.6.12 → flinventory-0.6.14}/flinventory/thingtemplate_latex/signlist-footer.tex +0 -0
  21. {flinventory-0.6.12 → flinventory-0.6.14}/flinventory/thingtemplate_latex/signlist-header.tex +0 -0
  22. {flinventory-0.6.12 → flinventory-0.6.14}/flinventory/thingtemplate_latex/signs-example.tex +0 -0
  23. {flinventory-0.6.12 → flinventory-0.6.14}/tests/__init__.py +0 -0
  24. {flinventory-0.6.12 → flinventory-0.6.14}/tests/test_defaulted_data.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: flinventory
3
- Version: 0.6.12
3
+ Version: 0.6.14
4
4
  Summary: An inventory system for self-help repair shops
5
5
  Author-Email: flukx <flinventory-flukx@612211124.xyz>
6
6
  License: GPL3
@@ -176,6 +176,7 @@ class Options:
176
176
 
177
177
  for simple_option, default, data_type in (
178
178
  ("separator", "-", str),
179
+ ("long_separator", " - ", str),
179
180
  ("length_unit", "cm", str),
180
181
  ("sign_max_height", 28, (int, float)),
181
182
  ("sign_max_width", 18, (int, float)),
@@ -318,7 +318,9 @@ class Location(dict[str, Value]):
318
318
  @property
319
319
  def long_name(self):
320
320
  """Get the string representation with names."""
321
- return self.options.separator.join(str(level.name) for level in self._levels)
321
+ return self.options.long_separator.join(
322
+ str(level.name) for level in self._levels
323
+ )
322
324
 
323
325
  @property
324
326
  def schema(self) -> Schema:
@@ -600,8 +600,10 @@ class SignPrinterLaTeX:
600
600
  encoding="utf-8",
601
601
  ) as stderr_file:
602
602
  stderr_file.write(latex.stderr)
603
- pdf_file = os.path.splitext(self.signs_file)[0] + ".pdf"
604
- assert os.path.isfile(pdf_file)
603
+ pdf_file = os.path.join(
604
+ self.output_dir, os.path.splitext(self.signs_file)[0] + ".pdf"
605
+ )
606
+ assert os.path.isfile(pdf_file), f"{pdf_file} was not created (yet)"
605
607
  return pdf_file
606
608
 
607
609
  def create_sign_svg(self, thing: BoxedThing) -> Optional[str]:
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "flinventory"
3
- version = "0.6.12"
3
+ version = "0.6.14"
4
4
  description = "An inventory system for self-help repair shops"
5
5
  authors = [
6
6
  { name = "flukx", email = "flinventory-flukx@612211124.xyz" },
File without changes
File without changes