File: replace-appdirs-with-platformdirs.patch

package info (click to toggle)
telegram-send 0.37-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 236 kB
  • sloc: python: 530; makefile: 9
file content (24 lines) | stat: -rw-r--r-- 664 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Forwarded: no

--- a/setup.py
+++ b/setup.py
@@ -19,7 +19,7 @@
 
     python_requires=">=3.7",    # also update classifier below
     packages=["telegram_send"],
-    install_requires=["python-telegram-bot==20.6", "colorama", "appdirs"],
+    install_requires=["python-telegram-bot==20.6", "colorama", "platformdirs"],
     entry_points={"console_scripts": ["telegram-send=telegram_send.telegram_send:main"]},
 
     author="Rahiel Kasim",
--- a/telegram_send/utils.py
+++ b/telegram_send/utils.py
@@ -1,7 +1,7 @@
 import html
 from typing import List
 
-from appdirs import AppDirs
+from platformdirs import AppDirs
 
 
 def markup(text: str, style: str) -> str: