powercli 0.3.7__tar.gz → 0.3.8__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 (36) hide show
  1. {powercli-0.3.7 → powercli-0.3.8}/PKG-INFO +4 -4
  2. {powercli-0.3.7 → powercli-0.3.8}/README.md +1 -1
  3. {powercli-0.3.7 → powercli-0.3.8}/pyproject.toml +10 -4
  4. {powercli-0.3.7 → powercli-0.3.8}/src/cli/commands/runner.py +3 -2
  5. {powercli-0.3.7 → powercli-0.3.8}/src/cli/input.py +2 -2
  6. {powercli-0.3.7 → powercli-0.3.8}/src/cli/output/progress.py +6 -1
  7. {powercli-0.3.7 → powercli-0.3.8}/src/powercli.egg-info/PKG-INFO +4 -4
  8. {powercli-0.3.7 → powercli-0.3.8}/src/powercli.egg-info/requires.txt +1 -1
  9. {powercli-0.3.7 → powercli-0.3.8}/LICENSE +0 -0
  10. {powercli-0.3.7 → powercli-0.3.8}/setup.cfg +0 -0
  11. {powercli-0.3.7 → powercli-0.3.8}/src/cli/__init__.py +0 -0
  12. {powercli-0.3.7 → powercli-0.3.8}/src/cli/cli/__init__.py +0 -0
  13. {powercli-0.3.7 → powercli-0.3.8}/src/cli/cli/entry_point.py +0 -0
  14. {powercli-0.3.7 → powercli-0.3.8}/src/cli/commands/__init__.py +0 -0
  15. {powercli-0.3.7 → powercli-0.3.8}/src/cli/commands/commands.py +0 -0
  16. {powercli-0.3.7 → powercli-0.3.8}/src/cli/commands/open_.py +0 -0
  17. {powercli-0.3.7 → powercli-0.3.8}/src/cli/commands/run.py +0 -0
  18. {powercli-0.3.7 → powercli-0.3.8}/src/cli/models/__init__.py +0 -0
  19. {powercli-0.3.7 → powercli-0.3.8}/src/cli/models/models.py +0 -0
  20. {powercli-0.3.7 → powercli-0.3.8}/src/cli/output/__init__.py +0 -0
  21. {powercli-0.3.7 → powercli-0.3.8}/src/cli/output/console.py +0 -0
  22. {powercli-0.3.7 → powercli-0.3.8}/src/cli/output/message.py +0 -0
  23. {powercli-0.3.7 → powercli-0.3.8}/src/cli/output/rich.py +0 -0
  24. {powercli-0.3.7 → powercli-0.3.8}/src/cli/output/status.py +0 -0
  25. {powercli-0.3.7 → powercli-0.3.8}/src/cli/py.typed +0 -0
  26. {powercli-0.3.7 → powercli-0.3.8}/src/powercli.egg-info/SOURCES.txt +0 -0
  27. {powercli-0.3.7 → powercli-0.3.8}/src/powercli.egg-info/dependency_links.txt +0 -0
  28. {powercli-0.3.7 → powercli-0.3.8}/src/powercli.egg-info/entry_points.txt +0 -0
  29. {powercli-0.3.7 → powercli-0.3.8}/src/powercli.egg-info/top_level.txt +0 -0
  30. {powercli-0.3.7 → powercli-0.3.8}/tests/test_cli_entry_point.py +0 -0
  31. {powercli-0.3.7 → powercli-0.3.8}/tests/test_input.py +0 -0
  32. {powercli-0.3.7 → powercli-0.3.8}/tests/test_message.py +0 -0
  33. {powercli-0.3.7 → powercli-0.3.8}/tests/test_output.py +0 -0
  34. {powercli-0.3.7 → powercli-0.3.8}/tests/test_progress.py +0 -0
  35. {powercli-0.3.7 → powercli-0.3.8}/tests/test_run.py +0 -0
  36. {powercli-0.3.7 → powercli-0.3.8}/tests/test_runner.py +0 -0
@@ -1,18 +1,18 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: powercli
3
- Version: 0.3.7
3
+ Version: 0.3.8
4
4
  Summary: High-level CLI interaction
5
5
  Author-email: Quinten Roets <qdr2104@columbia.edu>
6
6
  License-Expression: MIT
7
7
  Project-URL: Source Code, https://github.com/quintenroets/cli
8
- Requires-Python: <3.14,>=3.10
8
+ Requires-Python: >=3.10
9
9
  Description-Content-Type: text/markdown
10
10
  License-File: LICENSE
11
11
  Requires-Dist: pexpect<5,>=4.9.0
12
12
  Requires-Dist: rich<15,>=14.0.1
13
13
  Provides-Extra: dev
14
14
  Requires-Dist: hypothesis<7,>=6.97.1; extra == "dev"
15
- Requires-Dist: package-dev-tools<1,>=0.7.1; extra == "dev"
15
+ Requires-Dist: package-dev-tools<1,>=0.8.0; extra == "dev"
16
16
  Requires-Dist: package-dev-utils<1,>=0.1.6; extra == "dev"
17
17
  Requires-Dist: superpathlib<3,>=2.0.2; extra == "dev"
18
18
  Dynamic: license-file
@@ -20,7 +20,7 @@ Dynamic: license-file
20
20
  # PowerCLI
21
21
  [![PyPI version](https://badge.fury.io/py/powercli.svg)](https://badge.fury.io/py/powercli)
22
22
  ![PyPI downloads](https://img.shields.io/pypi/dm/powercli)
23
- ![Python version](https://img.shields.io/badge/python-3.10--3.13-brightgreen)
23
+ ![Python version](https://img.shields.io/badge/python-3.10+-brightgreen)
24
24
  ![Operating system](https://img.shields.io/badge/os-linux%20%7c%20macOS%20%7c%20windows-brightgreen)
25
25
  ![Coverage](https://img.shields.io/badge/coverage-100%25-brightgreen)
26
26
 
@@ -1,7 +1,7 @@
1
1
  # PowerCLI
2
2
  [![PyPI version](https://badge.fury.io/py/powercli.svg)](https://badge.fury.io/py/powercli)
3
3
  ![PyPI downloads](https://img.shields.io/pypi/dm/powercli)
4
- ![Python version](https://img.shields.io/badge/python-3.10--3.13-brightgreen)
4
+ ![Python version](https://img.shields.io/badge/python-3.10+-brightgreen)
5
5
  ![Operating system](https://img.shields.io/badge/os-linux%20%7c%20macOS%20%7c%20windows-brightgreen)
6
6
  ![Coverage](https://img.shields.io/badge/coverage-100%25-brightgreen)
7
7
 
@@ -1,11 +1,11 @@
1
1
  [project]
2
2
  name = "powercli"
3
- version = "0.3.7"
3
+ version = "0.3.8"
4
4
  description = "High-level CLI interaction"
5
5
  authors = [{name = "Quinten Roets", email = "qdr2104@columbia.edu"}]
6
6
  license = "MIT"
7
7
  readme = "README.md"
8
- requires-python = ">=3.10, <3.14"
8
+ requires-python = ">=3.10"
9
9
  dependencies = [
10
10
  "pexpect >=4.9.0, <5",
11
11
  "rich >=14.0.1, <15",
@@ -14,7 +14,7 @@ dependencies = [
14
14
  [project.optional-dependencies]
15
15
  dev = [
16
16
  "hypothesis >=6.97.1, <7",
17
- "package-dev-tools >=0.7.1, <1",
17
+ "package-dev-tools >=0.8.0, <1",
18
18
  "package-dev-utils >=0.1.6, <1",
19
19
  "superpathlib >=2.0.2, <3",
20
20
  ]
@@ -58,7 +58,13 @@ fix = true
58
58
  select = ["ALL"]
59
59
  ignore = [
60
60
  "ANN401", # annotated with Any
61
- "D", # docstrings
61
+ "D", # docstrings
62
+ "D1", # missing docstrings
63
+ "D200", # one-line docstring
64
+ "D203", # conflicts with D211
65
+ "D205", # blank line between summary and description
66
+ "D212", # conflicts with D213
67
+ "D401", # imperative first line
62
68
  "G004", # logging f-string
63
69
  "S101", # assert used
64
70
  ]
@@ -54,7 +54,7 @@ class Runner(Generic[T1]):
54
54
  return command_preparer.run()
55
55
 
56
56
  def capture_tty_output(self) -> str:
57
- import tempfile
57
+ import tempfile # noqa: PLC0415
58
58
 
59
59
  with tempfile.TemporaryFile() as untyped_log_file:
60
60
  log_file = typing.cast("io.TextIOWrapper", untyped_log_file)
@@ -63,7 +63,7 @@ class Runner(Generic[T1]):
63
63
  return log_file.read()
64
64
 
65
65
  def run_in_tty(self, log_file: io.TextIOWrapper) -> None:
66
- import pexpect
66
+ import pexpect # noqa: PLC0415
67
67
 
68
68
  command, *args = self.command_parts
69
69
  child = pexpect.spawn(command, args, timeout=None, logfile=log_file)
@@ -81,6 +81,7 @@ class Runner(Generic[T1]):
81
81
 
82
82
  def run(
83
83
  self,
84
+ *,
84
85
  capture_output: bool | None = None,
85
86
  ) -> subprocess.CompletedProcess[T1]:
86
87
  if capture_output is None:
@@ -13,12 +13,12 @@ def ask(question: str) -> str:
13
13
 
14
14
 
15
15
  def prompt(*args: Any, **kwargs: Any) -> str:
16
- from rich.prompt import Prompt
16
+ from rich.prompt import Prompt # noqa: PLC0415
17
17
 
18
18
  return Prompt.ask(*args, **kwargs)
19
19
 
20
20
 
21
21
  def confirm(*args: Any, **kwargs: Any) -> bool:
22
- from rich.prompt import Confirm
22
+ from rich.prompt import Confirm # noqa: PLC0415
23
23
 
24
24
  return Confirm.ask(*args, **kwargs)
@@ -19,7 +19,12 @@ class ProgressManager:
19
19
 
20
20
  @cached_property
21
21
  def progress(self) -> Progress:
22
- from rich.progress import BarColumn, Progress, TextColumn, TimeRemainingColumn
22
+ from rich.progress import ( # noqa: PLC0415
23
+ BarColumn,
24
+ Progress,
25
+ TextColumn,
26
+ TimeRemainingColumn,
27
+ )
23
28
 
24
29
  column_message = (
25
30
  "[progress.completed]{task.completed}/[progress.total]"
@@ -1,18 +1,18 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: powercli
3
- Version: 0.3.7
3
+ Version: 0.3.8
4
4
  Summary: High-level CLI interaction
5
5
  Author-email: Quinten Roets <qdr2104@columbia.edu>
6
6
  License-Expression: MIT
7
7
  Project-URL: Source Code, https://github.com/quintenroets/cli
8
- Requires-Python: <3.14,>=3.10
8
+ Requires-Python: >=3.10
9
9
  Description-Content-Type: text/markdown
10
10
  License-File: LICENSE
11
11
  Requires-Dist: pexpect<5,>=4.9.0
12
12
  Requires-Dist: rich<15,>=14.0.1
13
13
  Provides-Extra: dev
14
14
  Requires-Dist: hypothesis<7,>=6.97.1; extra == "dev"
15
- Requires-Dist: package-dev-tools<1,>=0.7.1; extra == "dev"
15
+ Requires-Dist: package-dev-tools<1,>=0.8.0; extra == "dev"
16
16
  Requires-Dist: package-dev-utils<1,>=0.1.6; extra == "dev"
17
17
  Requires-Dist: superpathlib<3,>=2.0.2; extra == "dev"
18
18
  Dynamic: license-file
@@ -20,7 +20,7 @@ Dynamic: license-file
20
20
  # PowerCLI
21
21
  [![PyPI version](https://badge.fury.io/py/powercli.svg)](https://badge.fury.io/py/powercli)
22
22
  ![PyPI downloads](https://img.shields.io/pypi/dm/powercli)
23
- ![Python version](https://img.shields.io/badge/python-3.10--3.13-brightgreen)
23
+ ![Python version](https://img.shields.io/badge/python-3.10+-brightgreen)
24
24
  ![Operating system](https://img.shields.io/badge/os-linux%20%7c%20macOS%20%7c%20windows-brightgreen)
25
25
  ![Coverage](https://img.shields.io/badge/coverage-100%25-brightgreen)
26
26
 
@@ -3,6 +3,6 @@ rich<15,>=14.0.1
3
3
 
4
4
  [dev]
5
5
  hypothesis<7,>=6.97.1
6
- package-dev-tools<1,>=0.7.1
6
+ package-dev-tools<1,>=0.8.0
7
7
  package-dev-utils<1,>=0.1.6
8
8
  superpathlib<3,>=2.0.2
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes