File: rename_cli.patch

package info (click to toggle)
python-ansi2html 1.9.2-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 372 kB
  • sloc: python: 1,361; makefile: 3
file content (35 lines) | stat: -rw-r--r-- 1,054 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From: Alexandre Detiste <tchet@debian.org>
Subject: on Debian, "ansi2html" CLI is provided by colorized-logs
Forwarded: no, Debian only

--- a/tests/test_ansi2html.py
+++ b/tests/test_ansi2html.py
@@ -465,7 +465,7 @@
         assert target in html
 
     def test_command_script(self) -> None:
-        result = run(["ansi2html", "--version"], check=True)
+        result = run(["ansi2html_py", "--version"], check=True)
         assert result.returncode == 0
 
     def test_command_input_output_encoding(self) -> None:
@@ -480,7 +480,7 @@
 
         with Popen(
             [
-                "ansi2html",
+                "ansi2html_py",
                 "--inline",
                 f"--input-encoding={input_encoding}",
                 f"--output-encoding={output_encoding}",
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -51,7 +51,7 @@
 changelog = "https://github.com/pycontribs/ansi2html/releases"
 
 [project.scripts]
-ansi2html = "ansi2html.__main__:main"
+ansi2html_py = "ansi2html.__main__:main"
 
 [project.optional-dependencies]
 docs = [