shellscripts 0.25.1__tar.gz → 0.25.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.
- {shellscripts-0.25.1/src/shellscripts.egg-info → shellscripts-0.25.2}/PKG-INFO +2 -2
- {shellscripts-0.25.1 → shellscripts-0.25.2}/README.md +1 -1
- {shellscripts-0.25.1 → shellscripts-0.25.2}/pyproject.toml +1 -1
- {shellscripts-0.25.1 → shellscripts-0.25.2}/src/shell_scripts/__init__.py +1 -1
- {shellscripts-0.25.1 → shellscripts-0.25.2}/src/shell_scripts/core.py +11 -5
- {shellscripts-0.25.1 → shellscripts-0.25.2}/src/shell_scripts/version_check.py +41 -12
- {shellscripts-0.25.1 → shellscripts-0.25.2/src/shellscripts.egg-info}/PKG-INFO +2 -2
- {shellscripts-0.25.1 → shellscripts-0.25.2}/tests/test_tst_014_pypi_version_source.py +13 -13
- {shellscripts-0.25.1 → shellscripts-0.25.2}/LICENSE +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/setup.cfg +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/src/shell_scripts/__main__.py +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/src/shell_scripts/commands/__init__.py +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/src/shell_scripts/commands/_dc_common.py +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/src/shell_scripts/commands/agy.py +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/src/shell_scripts/commands/bin_links.py +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/src/shell_scripts/commands/claude.py +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/src/shell_scripts/commands/clean.py +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/src/shell_scripts/commands/codex.py +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/src/shell_scripts/commands/copilot.py +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/src/shell_scripts/commands/dicom2jpg.py +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/src/shell_scripts/commands/dicomviewer.py +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/src/shell_scripts/commands/diff_cmd.py +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/src/shell_scripts/commands/doxygen_cmd.py +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/src/shell_scripts/commands/edit_cmd.py +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/src/shell_scripts/commands/gemini.py +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/src/shell_scripts/commands/kiro.py +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/src/shell_scripts/commands/opencode.py +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/src/shell_scripts/commands/pdf_crop.py +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/src/shell_scripts/commands/pdf_merge.py +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/src/shell_scripts/commands/pdf_split_by_format.py +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/src/shell_scripts/commands/pdf_split_by_toc.py +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/src/shell_scripts/commands/pdf_tiler_090.py +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/src/shell_scripts/commands/pdf_tiler_100.py +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/src/shell_scripts/commands/pdf_toc_clean.py +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/src/shell_scripts/commands/pi.py +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/src/shell_scripts/commands/req_cmd.py +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/src/shell_scripts/commands/tests_cmd.py +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/src/shell_scripts/commands/ubuntu_dark_theme.py +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/src/shell_scripts/commands/venv_cmd.py +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/src/shell_scripts/commands/video2h264.py +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/src/shell_scripts/commands/video2h265.py +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/src/shell_scripts/commands/view_cmd.py +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/src/shell_scripts/commands/vscode_cmd.py +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/src/shell_scripts/commands/vsinsider_cmd.py +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/src/shell_scripts/config.py +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/src/shell_scripts/utils.py +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/src/shellscripts.egg-info/SOURCES.txt +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/src/shellscripts.egg-info/dependency_links.txt +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/src/shellscripts.egg-info/entry_points.txt +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/src/shellscripts.egg-info/top_level.txt +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/tests/test_tst_001_002_core.py +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/tests/test_tst_004_bin_links_clean.py +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/tests/test_tst_005_cli_launchers.py +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/tests/test_tst_006_dc_common.py +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/tests/test_tst_007_pdf_commands.py +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/tests/test_tst_008_env_commands.py +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/tests/test_tst_010_req_cmd.py +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/tests/test_tst_011_video_commands.py +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/tests/test_tst_012_workflow_runtime.py +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/tests/test_tst_013_release_pypi_gating.py +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/tests/test_tst_015_pre_release_check.py +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/tests/test_tst_016_release_precheck_gating.py +0 -0
- {shellscripts-0.25.1 → shellscripts-0.25.2}/tests/test_tst_017_agy_command.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: shellscripts
|
|
3
|
-
Version: 0.25.
|
|
3
|
+
Version: 0.25.2
|
|
4
4
|
Summary: Execute useful shell scripts via an uvx-compatible CLI interface.
|
|
5
5
|
Author: Francesco Rolando
|
|
6
6
|
License-Expression: GPL-3.0-only
|
|
@@ -31,7 +31,7 @@ Dynamic: license-file
|
|
|
31
31
|
> * **No Support or Feature Requests:** Please **do not** open issues, bug reports, or feature requests. They will not be addressed or accepted at this stage of development.
|
|
32
32
|
> * **No Warranty:** This software is provided **"AS IS"**, without warranty of any kind, express or implied. You may use it strictly for **testing and evaluation purposes** at your own sole risk.
|
|
33
33
|
|
|
34
|
-
# s/shellScripts (0.25.
|
|
34
|
+
# s/shellScripts (0.25.2)
|
|
35
35
|
|
|
36
36
|
<p align="center">
|
|
37
37
|
<img src="https://img.shields.io/badge/python-3.11%2B-3776AB?style=flat-square&logo=python&logoColor=white" alt="Python 3.11+">
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
> * **No Support or Feature Requests:** Please **do not** open issues, bug reports, or feature requests. They will not be addressed or accepted at this stage of development.
|
|
11
11
|
> * **No Warranty:** This software is provided **"AS IS"**, without warranty of any kind, express or implied. You may use it strictly for **testing and evaluation purposes** at your own sole risk.
|
|
12
12
|
|
|
13
|
-
# s/shellScripts (0.25.
|
|
13
|
+
# s/shellScripts (0.25.2)
|
|
14
14
|
|
|
15
15
|
<p align="center">
|
|
16
16
|
<img src="https://img.shields.io/badge/python-3.11%2B-3776AB?style=flat-square&logo=python&logoColor=white" alt="Python 3.11+">
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
`--develop`/`--dev` upgrade selector, `--force` forced-reinstall selector),
|
|
7
7
|
runtime configuration bootstrap, and subcommand delegation to lazily imported
|
|
8
8
|
modules.
|
|
9
|
-
@satisfies PRJ-001, PRJ-002, PRJ-003, REQ-001, REQ-002, REQ-003, REQ-004, REQ-005, REQ-045, REQ-046, REQ-048, REQ-049, REQ-050, REQ-051, REQ-052, REQ-053, REQ-054, REQ-056, REQ-064, REQ-065, REQ-066, REQ-068, REQ-069, REQ-075, REQ-076, REQ-077, REQ-078, REQ-087, REQ-088, REQ-089, REQ-090
|
|
9
|
+
@satisfies PRJ-001, PRJ-002, PRJ-003, REQ-001, REQ-002, REQ-003, REQ-004, REQ-005, REQ-045, REQ-046, REQ-048, REQ-049, REQ-050, REQ-051, REQ-052, REQ-053, REQ-054, REQ-056, REQ-064, REQ-065, REQ-066, REQ-068, REQ-069, REQ-075, REQ-076, REQ-077, REQ-078, REQ-087, REQ-088, REQ-089, REQ-090, REQ-091
|
|
10
10
|
"""
|
|
11
11
|
|
|
12
12
|
import sys
|
|
@@ -18,7 +18,12 @@ from shell_scripts.config import (
|
|
|
18
18
|
load_runtime_config,
|
|
19
19
|
write_default_runtime_config,
|
|
20
20
|
)
|
|
21
|
-
from shell_scripts.version_check import
|
|
21
|
+
from shell_scripts.version_check import (
|
|
22
|
+
check_for_updates,
|
|
23
|
+
fetch_github_latest_release,
|
|
24
|
+
format_version_report_line,
|
|
25
|
+
print_remote_latest_versions,
|
|
26
|
+
)
|
|
22
27
|
from shell_scripts.commands import get_command
|
|
23
28
|
from shell_scripts.utils import (
|
|
24
29
|
capture_terminal_state,
|
|
@@ -278,7 +283,8 @@ def main():
|
|
|
278
283
|
|
|
279
284
|
@details Performs runtime OS detection, update check, runtime configuration
|
|
280
285
|
load, and argument dispatch through management flags (`--version` prints
|
|
281
|
-
installed plus PyPI/GitHub latest
|
|
286
|
+
the aligned three-line report with installed plus PyPI/GitHub latest
|
|
287
|
+
versions; `--upgrade` upgrades from PyPI
|
|
282
288
|
or, with `--develop`/`--dev`, from the latest GitHub release tag; `--force`
|
|
283
289
|
appends forced-reinstall options to the selected upgrade command; bare
|
|
284
290
|
`--develop`/`--dev`/`--force` selectors are rejected) and subcommands,
|
|
@@ -286,7 +292,7 @@ def main():
|
|
|
286
292
|
mouse-tracking modes (`?9l`, `?1000l`, `?1001l`, `?1002l`, `?1003l`,
|
|
287
293
|
`?1004l`, `?1005l`, `?1006l`, `?1007l`, `?1015l`, `?1016l`) before exit.
|
|
288
294
|
@return {int} Process-compatible return code for caller (`sys.exit`).
|
|
289
|
-
@satisfies PRJ-001, REQ-001, REQ-002, REQ-003, REQ-004, REQ-005, REQ-045, REQ-046, REQ-047, REQ-048, REQ-049, REQ-050, REQ-051, REQ-052, REQ-053, REQ-054, REQ-064, REQ-065, REQ-066, REQ-068, REQ-069, REQ-075, REQ-076, REQ-077, REQ-078, REQ-087, REQ-088, REQ-089, REQ-090
|
|
295
|
+
@satisfies PRJ-001, REQ-001, REQ-002, REQ-003, REQ-004, REQ-005, REQ-045, REQ-046, REQ-047, REQ-048, REQ-049, REQ-050, REQ-051, REQ-052, REQ-053, REQ-054, REQ-064, REQ-065, REQ-066, REQ-068, REQ-069, REQ-075, REQ-076, REQ-077, REQ-078, REQ-087, REQ-088, REQ-089, REQ-090, REQ-091
|
|
290
296
|
"""
|
|
291
297
|
saved_tty = capture_terminal_state()
|
|
292
298
|
try:
|
|
@@ -303,7 +309,7 @@ def main():
|
|
|
303
309
|
first_arg = args[0]
|
|
304
310
|
|
|
305
311
|
if first_arg in ("--version", "--ver"):
|
|
306
|
-
print(__version__)
|
|
312
|
+
print(format_version_report_line("Current Installed", __version__))
|
|
307
313
|
print_remote_latest_versions(__version__)
|
|
308
314
|
return 0
|
|
309
315
|
|
|
@@ -258,32 +258,61 @@ def fetch_github_latest_release(current_version: str) -> str:
|
|
|
258
258
|
return str(payload["tag_name"])
|
|
259
259
|
|
|
260
260
|
|
|
261
|
+
BRIGHT_GREEN = "\033[92m"
|
|
262
|
+
BRIGHT_RED = "\033[91m"
|
|
263
|
+
RESET = "\033[0m"
|
|
264
|
+
|
|
265
|
+
# @brief Fixed label column width for aligned `--version` report lines.
|
|
266
|
+
# @details Left-justifies every report label (`Current Installed`,
|
|
267
|
+
# `Latest @ PyPI`, `Latest @ GitHub`) before the `: ` value separator so all
|
|
268
|
+
# version tokens start at the same output column.
|
|
269
|
+
# @satisfies REQ-091
|
|
270
|
+
REPORT_LABEL_WIDTH = 18
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
def format_version_report_line(label: str, value: str) -> str:
|
|
274
|
+
"""@brief Render one aligned `--version` report line.
|
|
275
|
+
|
|
276
|
+
@details Left-justifies the report label to `REPORT_LABEL_WIDTH`
|
|
277
|
+
characters, then appends `: ` and the raw value without color codes so
|
|
278
|
+
callers keep control of terminal coloring. Time complexity O(1).
|
|
279
|
+
@param label {str} Report label token (for example `Latest @ PyPI`).
|
|
280
|
+
@param value {str} Report value token (version string or
|
|
281
|
+
`unknown (<reason>)`).
|
|
282
|
+
@return {str} Aligned report line shaped as `<label>: <value>`.
|
|
283
|
+
@satisfies REQ-075, REQ-091
|
|
284
|
+
"""
|
|
285
|
+
return f"{label:<{REPORT_LABEL_WIDTH}}: {value}"
|
|
286
|
+
|
|
287
|
+
|
|
261
288
|
def print_remote_latest_versions(current_version: str) -> None:
|
|
262
289
|
"""@brief Print PyPI and GitHub latest-version report lines.
|
|
263
290
|
|
|
264
|
-
@details Emits one
|
|
265
|
-
fixed order (PyPI, GitHub)
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
291
|
+
@details Emits one aligned `Latest @ <source>` line per remote source in
|
|
292
|
+
fixed order (PyPI, GitHub), left-justifying each label to
|
|
293
|
+
`REPORT_LABEL_WIDTH` characters. A failed source lookup prints one
|
|
294
|
+
bright-red aligned line whose value is `unknown (<reason>)` where
|
|
295
|
+
`<reason>` is the `_format_request_error` descriptor of the actual
|
|
296
|
+
failure, and the remaining source is still processed. Complexity O(1)
|
|
297
|
+
excluding network latency.
|
|
269
298
|
@param current_version {str} Installed package version used in User-Agent.
|
|
270
299
|
@return {None} Writes two report or error lines to stdout.
|
|
271
|
-
@satisfies REQ-003, REQ-075, REQ-084, DES-020
|
|
300
|
+
@satisfies REQ-003, REQ-075, REQ-084, REQ-091, DES-020
|
|
272
301
|
"""
|
|
273
302
|
|
|
274
303
|
for source_label, fetch_version in (
|
|
275
|
-
("PyPI", fetch_pypi_latest_version),
|
|
276
|
-
("GitHub", fetch_github_latest_release),
|
|
304
|
+
("Latest @ PyPI", fetch_pypi_latest_version),
|
|
305
|
+
("Latest @ GitHub", fetch_github_latest_release),
|
|
277
306
|
):
|
|
278
307
|
try:
|
|
279
308
|
latest_version = fetch_version(current_version).lstrip("v")
|
|
280
309
|
except Exception as error:
|
|
281
|
-
|
|
282
|
-
f"{
|
|
283
|
-
f"({_format_request_error(error)}){RESET}"
|
|
310
|
+
failure_line = format_version_report_line(
|
|
311
|
+
source_label, f"unknown ({_format_request_error(error)})"
|
|
284
312
|
)
|
|
313
|
+
print(f"{BRIGHT_RED}{failure_line}{RESET}")
|
|
285
314
|
continue
|
|
286
|
-
print(
|
|
315
|
+
print(format_version_report_line(source_label, latest_version))
|
|
287
316
|
|
|
288
317
|
|
|
289
318
|
def check_for_updates(current_version: str) -> None:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: shellscripts
|
|
3
|
-
Version: 0.25.
|
|
3
|
+
Version: 0.25.2
|
|
4
4
|
Summary: Execute useful shell scripts via an uvx-compatible CLI interface.
|
|
5
5
|
Author: Francesco Rolando
|
|
6
6
|
License-Expression: GPL-3.0-only
|
|
@@ -31,7 +31,7 @@ Dynamic: license-file
|
|
|
31
31
|
> * **No Support or Feature Requests:** Please **do not** open issues, bug reports, or feature requests. They will not be addressed or accepted at this stage of development.
|
|
32
32
|
> * **No Warranty:** This software is provided **"AS IS"**, without warranty of any kind, express or implied. You may use it strictly for **testing and evaluation purposes** at your own sole risk.
|
|
33
33
|
|
|
34
|
-
# s/shellScripts (0.25.
|
|
34
|
+
# s/shellScripts (0.25.2)
|
|
35
35
|
|
|
36
36
|
<p align="center">
|
|
37
37
|
<img src="https://img.shields.io/badge/python-3.11%2B-3776AB?style=flat-square&logo=python&logoColor=white" alt="Python 3.11+">
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""
|
|
2
2
|
@brief Validate PyPI-primary version sourcing, version reporting, and upgrade flows.
|
|
3
3
|
@details Verifies startup update checks against the PyPI JSON API, GitHub
|
|
4
|
-
latest-release resolution, the three-line `--version` report, the PyPI
|
|
4
|
+
latest-release resolution, the aligned three-line `--version` report, the PyPI
|
|
5
5
|
default upgrade command, the forced-reinstall `--force` suffix on PyPI and
|
|
6
6
|
GitHub-tagged upgrade commands, the `--upgrade --dev`/`--develop`
|
|
7
7
|
GitHub-tagged upgrade command, develop-upgrade failure handling, and
|
|
@@ -196,7 +196,7 @@ def test_print_remote_latest_versions_prints_both_latest_lines(
|
|
|
196
196
|
version_check.print_remote_latest_versions("0.1.0")
|
|
197
197
|
captured = capsys.readouterr()
|
|
198
198
|
|
|
199
|
-
expected_output = ["PyPI
|
|
199
|
+
expected_output = ["Latest @ PyPI : 1.2.3", "Latest @ GitHub : 4.5.6"]
|
|
200
200
|
assert captured.out.splitlines() == expected_output
|
|
201
201
|
|
|
202
202
|
|
|
@@ -207,8 +207,8 @@ def test_print_remote_latest_versions_reports_failed_source_and_continues(
|
|
|
207
207
|
"""
|
|
208
208
|
@brief Validate per-source error reporting during version report.
|
|
209
209
|
@details Forces the PyPI lookup to raise a non-HTTP exception and asserts
|
|
210
|
-
the bright-red `PyPI
|
|
211
|
-
GitHub line is still emitted.
|
|
210
|
+
the bright-red aligned `Latest @ PyPI : unknown (<reason>)` failure
|
|
211
|
+
line while the GitHub line is still emitted.
|
|
212
212
|
@param monkeypatch {pytest.MonkeyPatch} Runtime patch helper.
|
|
213
213
|
@param capsys {pytest.CaptureFixture[str]} Stdout/stderr capture helper.
|
|
214
214
|
@return {None} Assertions only.
|
|
@@ -232,10 +232,10 @@ def test_print_remote_latest_versions_reports_failed_source_and_continues(
|
|
|
232
232
|
version_check.print_remote_latest_versions("0.1.0")
|
|
233
233
|
captured = capsys.readouterr()
|
|
234
234
|
|
|
235
|
-
expected_output = "PyPI
|
|
235
|
+
expected_output = "Latest @ PyPI : unknown (URLError: <urlopen error pypi unreachable>)"
|
|
236
236
|
assert expected_output in captured.out
|
|
237
237
|
assert "PyPI latest check failed" not in captured.out
|
|
238
|
-
assert "GitHub
|
|
238
|
+
assert "Latest @ GitHub : 0.1.0" in captured.out
|
|
239
239
|
|
|
240
240
|
|
|
241
241
|
def test_print_remote_latest_versions_reports_github_http_404(
|
|
@@ -245,8 +245,8 @@ def test_print_remote_latest_versions_reports_github_http_404(
|
|
|
245
245
|
"""
|
|
246
246
|
@brief Validate GitHub HTTP failure rendering during version report.
|
|
247
247
|
@details Forces the GitHub lookup to raise an HTTP 404 error and asserts
|
|
248
|
-
the bright-red `GitHub
|
|
249
|
-
the PyPI line is still emitted.
|
|
248
|
+
the bright-red aligned `Latest @ GitHub : unknown (HTTP 404)` failure
|
|
249
|
+
line while the PyPI line is still emitted.
|
|
250
250
|
@param monkeypatch {pytest.MonkeyPatch} Runtime patch helper.
|
|
251
251
|
@param capsys {pytest.CaptureFixture[str]} Stdout/stderr capture helper.
|
|
252
252
|
@return {None} Assertions only.
|
|
@@ -274,10 +274,10 @@ def test_print_remote_latest_versions_reports_github_http_404(
|
|
|
274
274
|
version_check.print_remote_latest_versions("0.1.0")
|
|
275
275
|
captured = capsys.readouterr()
|
|
276
276
|
|
|
277
|
-
expected_output = "GitHub
|
|
277
|
+
expected_output = "Latest @ GitHub : unknown (HTTP 404)"
|
|
278
278
|
assert expected_output in captured.out
|
|
279
279
|
assert "GitHub latest check failed" not in captured.out
|
|
280
|
-
assert "PyPI
|
|
280
|
+
assert "Latest @ PyPI : 0.1.0" in captured.out
|
|
281
281
|
|
|
282
282
|
|
|
283
283
|
def test_main_version_prints_installed_pypi_and_github_lines(
|
|
@@ -307,9 +307,9 @@ def test_main_version_prints_installed_pypi_and_github_lines(
|
|
|
307
307
|
captured = capsys.readouterr()
|
|
308
308
|
|
|
309
309
|
expected_output = [
|
|
310
|
-
core.__version__,
|
|
311
|
-
"PyPI
|
|
312
|
-
"GitHub
|
|
310
|
+
f"Current Installed : {core.__version__}",
|
|
311
|
+
"Latest @ PyPI : 2.0.0",
|
|
312
|
+
"Latest @ GitHub : 3.0.0",
|
|
313
313
|
]
|
|
314
314
|
assert result == 0
|
|
315
315
|
assert captured.out.splitlines()[:3] == expected_output
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{shellscripts-0.25.1 → shellscripts-0.25.2}/src/shell_scripts/commands/pdf_split_by_format.py
RENAMED
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|