dev-python/pyfiglet: add 1.0.2

Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
This commit is contained in:
Takuya Wakazono
2025-05-05 15:58:39 +09:00
parent a6c5ebb67d
commit fc033e8726
4 changed files with 111 additions and 0 deletions

View File

@@ -0,0 +1,70 @@
https://github.com/pwaller/pyfiglet/commit/b5bb37142ce49ac5376b7f89a0b5508962c6672e
From: Lyes Saadi <dev@lyes.eu>
Date: Wed, 27 Dec 2023 20:18:32 +0100
Subject: [PATCH] Use slant instead of doh to use only fonts-contrib
--- a/pyfiglet/tests/test_cli.py
+++ b/pyfiglet/tests/test_cli.py
@@ -11,24 +11,13 @@ def test_font_dir():
def test_strip():
- command = "pyfiglet -f doh -s 0"
+ command = "pyfiglet -f slant -s 0"
expected = '''\
- 000000000
- 00:::::::::00
- 00:::::::::::::00
-0:::::::000:::::::0
-0::::::0 0::::::0
-0:::::0 0:::::0
-0:::::0 0:::::0
-0:::::0 000 0:::::0
-0:::::0 000 0:::::0
-0:::::0 0:::::0
-0:::::0 0:::::0
-0::::::0 0::::::0
-0:::::::000:::::::0
- 00:::::::::::::00
- 00:::::::::00
- 000000000
+ ____
+ / __ \\
+ / / / /
+/ /_/ /
+\\____/
'''
result = subprocess.run(command, shell=True, stdout=subprocess.PIPE)
assert result.stdout.decode() == expected
@@ -58,25 +47,14 @@ def test_strip_strange_font(test_font_dir):
# normalize is just strip with padding
def test_normalize():
- command = "pyfiglet -f doh -n 0"
+ command = "pyfiglet -f slant -n 0"
expected = '''\
- 000000000
- 00:::::::::00
- 00:::::::::::::00
-0:::::::000:::::::0
-0::::::0 0::::::0
-0:::::0 0:::::0
-0:::::0 0:::::0
-0:::::0 000 0:::::0
-0:::::0 000 0:::::0
-0:::::0 0:::::0
-0:::::0 0:::::0
-0::::::0 0::::::0
-0:::::::000:::::::0
- 00:::::::::::::00
- 00:::::::::00
- 000000000
+ ____
+ / __ \\
+ / / / /
+/ /_/ /
+\\____/
'''
result = subprocess.run(command, shell=True, stdout=subprocess.PIPE)