File: standard-asynchat.patch

package info (click to toggle)
python-pyftpdlib 2.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,224 kB
  • sloc: python: 10,619; makefile: 342
file content (35 lines) | stat: -rw-r--r-- 1,069 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
25
26
27
28
29
30
31
32
33
34
35
From: Colin Watson <cjwatson@debian.org>
Date: Sun, 12 Jan 2025 20:22:36 +0000
Subject: Use standard-asynchat rather than pyasynchat

There are a couple of different versions on PyPI following the removal
of `asynchat` from the standard library; `standard-asynchat` is the one
packaged in Debian.

Last-Update: 2025-09-28
---
 setup.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/setup.py b/setup.py
index 6dc7152..c0904a9 100644
--- a/setup.py
+++ b/setup.py
@@ -24,7 +24,7 @@ TEST_DEPS = [
     "setuptools",
 ]
 if sys.version_info[:2] >= (3, 12):
-    TEST_DEPS.extend(["pyasyncore", "pyasynchat"])
+    TEST_DEPS.extend(["pyasyncore", "standard-asynchat"])
 
 if WINDOWS:
     TEST_DEPS.append("pywin32")
@@ -124,7 +124,7 @@ def main():
         # fmt: on
         install_requires=[
             "pyasyncore;python_version>='3.12'",
-            "pyasynchat;python_version>='3.12'",
+            "standard-asynchat;python_version>='3.12'",
         ],
         classifiers=[
             "Development Status :: 5 - Production/Stable",