tacklebox-cli 0.2.3__tar.gz → 0.2.5__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,10 +1,10 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tacklebox-cli
3
- Version: 0.2.3
3
+ Version: 0.2.5
4
4
  Summary: A small collection of CLI utilities.
5
5
  Project-URL: Homepage, https://c.csw.im/cswimr/tacklebox
6
6
  Project-URL: Issues, https://c.csw.im/cswimr/tacklebox/issues
7
- Project-URL: source_archive, https://c.csw.im/cswimr/tacklebox/archive/8ceb07a90c4a6b025ba2e21597cee489c78156c6.tar.gz
7
+ Project-URL: source_archive, https://c.csw.im/cswimr/tacklebox/archive/5b62637e5d3dc489d40003c023e2493415a35c2f.tar.gz
8
8
  Author-email: cswimr <seaswimmerthefsh@gmail.com>
9
9
  License: The MIT License (MIT)
10
10
  =====================
@@ -34,11 +34,10 @@ License: The MIT License (MIT)
34
34
  License-File: LICENSE.md
35
35
  Classifier: License :: OSI Approved :: MIT License
36
36
  Classifier: Programming Language :: Python
37
- Classifier: Programming Language :: Python :: 3.10
38
37
  Classifier: Programming Language :: Python :: 3.11
39
38
  Classifier: Programming Language :: Python :: 3.12
40
39
  Classifier: Programming Language :: Python :: 3.13
41
- Requires-Python: >=3.10
40
+ Requires-Python: >=3.11
42
41
  Requires-Dist: desktop-notifier>=6.1.0
43
42
  Requires-Dist: platformdirs>=4.3.0
44
43
  Requires-Dist: zipline-py[cli]>=0.27.0
@@ -3,12 +3,11 @@ name = "tacklebox-cli"
3
3
  description = "A small collection of CLI utilities."
4
4
  authors = [{ name = "cswimr", email = "seaswimmerthefsh@gmail.com" }]
5
5
  readme = "README.md"
6
- requires-python = ">=3.10"
6
+ requires-python = ">=3.11"
7
7
  license = { file = "LICENSE.md" }
8
8
  classifiers = [
9
9
  "License :: OSI Approved :: MIT License",
10
10
  "Programming Language :: Python",
11
- "Programming Language :: Python :: 3.10",
12
11
  "Programming Language :: Python :: 3.11",
13
12
  "Programming Language :: Python :: 3.12",
14
13
  "Programming Language :: Python :: 3.13",
@@ -262,7 +262,7 @@ def copy(
262
262
  if copy_command:
263
263
  command = copy_command.split(" ")
264
264
 
265
- if use_tooling(ClipboardMode.COPY, command, verbose, data):
265
+ if use_tooling(ClipboardMode.COPY, command, verbose, data)[0]:
266
266
  return
267
267
 
268
268
  if verbose:
@@ -5,7 +5,7 @@ import subprocess
5
5
  import sys
6
6
  import tempfile
7
7
  from datetime import datetime, timezone
8
- from enum import Enum, IntEnum
8
+ from enum import IntEnum, StrEnum
9
9
  from pathlib import Path
10
10
  from shutil import which
11
11
  from typing import Annotated
@@ -50,7 +50,7 @@ def _read_spectacle_config() -> tuple[str, VideoFormat]:
50
50
  if not path.exists():
51
51
  return "png", VideoFormat.WEBM
52
52
 
53
- config = configparser.ConfigParser()
53
+ config = configparser.ConfigParser(strict=False)
54
54
  config.read(path)
55
55
 
56
56
  preferred_image_format = config.get("ImageSave", "preferredImageFormat", fallback="png").lower()
@@ -60,7 +60,7 @@ def _read_spectacle_config() -> tuple[str, VideoFormat]:
60
60
  return preferred_image_format, preferred_video_format
61
61
 
62
62
 
63
- class SpectacleMode(str, Enum):
63
+ class SpectacleMode(StrEnum):
64
64
  REGION = "region"
65
65
  DESKTOP = "desktop"
66
66
  MONITOR = "monitor"
@@ -73,7 +73,7 @@ class SpectacleMode(str, Enum):
73
73
  """Generate autocompletion strings for Typer."""
74
74
  completions: list[tuple[str, str] | str] = []
75
75
  for mode in SpectacleMode:
76
- if mode.value.startswith(incomplete):
76
+ if mode.startswith(incomplete):
77
77
  completions.append((mode, mode.completion_string) if mode.completion_string else mode)
78
78
  return completions
79
79
 
@@ -17,5 +17,5 @@ __version__: str
17
17
  __version_tuple__: VERSION_TUPLE
18
18
  version_tuple: VERSION_TUPLE
19
19
 
20
- __version__ = version = '0.2.3'
21
- __version_tuple__ = version_tuple = (0, 2, 3)
20
+ __version__ = version = '0.2.5'
21
+ __version_tuple__ = version_tuple = (0, 2, 5)
File without changes
File without changes
File without changes