Skip to content

Commit 59023f7

Browse files
committed
fix: require telegraph[aio] extra for httpx dependency
1 parent 5ff0922 commit 59023f7

3 files changed

Lines changed: 2 additions & 29 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ requires-python = ">=3.9"
1515
dependencies = [
1616
"aiohttp>=3.8.0",
1717
"sqlalchemy>=1.4.0",
18-
"telegraph>=2.2.0",
18+
"telegraph[aio]>=2.2.0",
1919
]
2020
keywords = [
2121
"mangalib",

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
aiohttp>=3.8.0
22
sqlalchemy>=1.4.0
3-
telegraph>=2.2.0
3+
telegraph[aio]>=2.2.0

tests/__init__.py

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +0,0 @@
1-
from mangagraph import Mangagraph, MangagraphError
2-
import asyncio
3-
4-
# === tests ===
5-
# python -m tests.__init__
6-
async def test():
7-
try:
8-
parser = Mangagraph()
9-
results = await parser.process_chapters(
10-
'https://mangalib.me/ru/manga/7965--chainsaw-man',
11-
chapter_nums=[90, 91, 92]
12-
)
13-
14-
print("Parsed chapters:\n")
15-
for num, (toc, mirror) in results.items():
16-
print(f"📖 Chapter {num}")
17-
print(f" TOC: {toc}")
18-
print(f" Mirror: {mirror}\n")
19-
20-
except MangagraphError as e:
21-
print(f"Parser error: {e}")
22-
23-
if __name__ == '__main__':
24-
try:
25-
asyncio.run(test())
26-
except (KeyboardInterrupt, SystemExit):
27-
print('Sayonara!')

0 commit comments

Comments
 (0)