qltool 0.2.1__tar.gz → 0.2.2__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,5 +1,5 @@
1
1
  [bumpversion]
2
- current_version = 0.2.1
2
+ current_version = 0.2.2
3
3
  commit = True
4
4
  tag = True
5
5
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: qltool
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: PRINT simple labels on ql700
5
5
  Requires-Python: >=3.12
6
6
  Requires-Dist: click>=8.2.1
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "qltool"
3
- version = "0.2.1"
3
+ version = "0.2.2"
4
4
  description = "PRINT simple labels on ql700"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.12"
@@ -24,6 +24,7 @@ import tempfile
24
24
  import sys
25
25
 
26
26
  import click
27
+ from importlib.metadata import version
27
28
  from importlib_resources import files, as_file
28
29
  from PIL import Image, ImageDraw, ImageFont
29
30
  # uv add Pillow
@@ -343,6 +344,7 @@ def make_bw_text_with_qr(lines,
343
344
 
344
345
  # --- CLI ---
345
346
  @click.command()
347
+ @click.version_option(version("qltool"), prog_name="qltool")
346
348
  @click.argument("lines", nargs=-1, required=True)
347
349
  @click.option("-p", "--print", "do_print", is_flag=True, default=False, help="Send to printer (calls ql570).")
348
350
  @click.option("-d", "--device", "device", default=None, help="Printer device (defaults to first /dev/usb/lp*).")
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes