flinventory 0.6.0__tar.gz → 0.6.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 (24) hide show
  1. {flinventory-0.6.0 → flinventory-0.6.1}/PKG-INFO +1 -1
  2. {flinventory-0.6.0 → flinventory-0.6.1}/flinventory/generate_labels.py +1 -8
  3. {flinventory-0.6.0 → flinventory-0.6.1}/flinventory/signprinter_latex.py +1 -0
  4. {flinventory-0.6.0 → flinventory-0.6.1}/pyproject.toml +1 -1
  5. {flinventory-0.6.0 → flinventory-0.6.1}/LICENSE +0 -0
  6. {flinventory-0.6.0 → flinventory-0.6.1}/README.md +0 -0
  7. {flinventory-0.6.0 → flinventory-0.6.1}/flinventory/__init__.py +0 -0
  8. {flinventory-0.6.0 → flinventory-0.6.1}/flinventory/__main__.py +0 -0
  9. {flinventory-0.6.0 → flinventory-0.6.1}/flinventory/box.py +0 -0
  10. {flinventory-0.6.0 → flinventory-0.6.1}/flinventory/constant.py +0 -0
  11. {flinventory-0.6.0 → flinventory-0.6.1}/flinventory/datacleanup.py +0 -0
  12. {flinventory-0.6.0 → flinventory-0.6.1}/flinventory/defaulted_data.py +0 -0
  13. {flinventory-0.6.0 → flinventory-0.6.1}/flinventory/inventory_io.py +0 -0
  14. {flinventory-0.6.0 → flinventory-0.6.1}/flinventory/location.py +0 -0
  15. {flinventory-0.6.0 → flinventory-0.6.1}/flinventory/sign.py +0 -0
  16. {flinventory-0.6.0 → flinventory-0.6.1}/flinventory/thing.py +0 -0
  17. {flinventory-0.6.0 → flinventory-0.6.1}/flinventory/thingtemplate_latex/.gitignore +0 -0
  18. {flinventory-0.6.0 → flinventory-0.6.1}/flinventory/thingtemplate_latex/dummyImage.jpg +0 -0
  19. {flinventory-0.6.0 → flinventory-0.6.1}/flinventory/thingtemplate_latex/sign.tex +0 -0
  20. {flinventory-0.6.0 → flinventory-0.6.1}/flinventory/thingtemplate_latex/signlist-footer.tex +0 -0
  21. {flinventory-0.6.0 → flinventory-0.6.1}/flinventory/thingtemplate_latex/signlist-header.tex +0 -0
  22. {flinventory-0.6.0 → flinventory-0.6.1}/flinventory/thingtemplate_latex/signs-example.tex +0 -0
  23. {flinventory-0.6.0 → flinventory-0.6.1}/tests/__init__.py +0 -0
  24. {flinventory-0.6.0 → flinventory-0.6.1}/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.0
3
+ Version: 0.6.1
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,10 +176,7 @@ def generate_labels(options: argparse.Namespace):
176
176
  Args:
177
177
  options: command line options given
178
178
  """
179
- try:
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,
@@ -100,6 +100,7 @@ class SignPrinterLaTeX:
100
100
  # pylint: disable-next=unbalanced-tuple-unpacking
101
101
  self.pre, self.sign, self.post = self._read_templates()
102
102
  self.output_dir = paths.output_dir
103
+ os.makedirs(self.output_dir, exist_ok=True)
103
104
  self.signs_file = paths.output_signs_latex
104
105
  self.logger = logging.getLogger(__name__)
105
106
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "flinventory"
3
- version = "0.6.0"
3
+ version = "0.6.1"
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