source: ralphm-patches/minimum-Twisted.patch @ 83:255aae0cf8c5

Last change on this file since 83:255aae0cf8c5 was 78:361e2111a663, checked in by Ralph Meijer <ralphm@…>, 5 years ago

Start port to Python 3.

File size: 859 bytes
RevLine 
[78]1# HG changeset patch
2# Parent  864d257886840e41b04803163c858ae51b5e8d04
3
4diff --git a/setup.py b/setup.py
5--- a/setup.py
6+++ b/setup.py
7@@ -3,6 +3,7 @@
8 # Copyright (c) Ralph Meijer.
9 # See LICENSE for details.
10 
11+import sys
12 from setuptools import setup
13 
14 # Make sure 'twisted' doesn't appear in top_level.txt
15@@ -27,6 +28,11 @@
16 
17     egg_info.write_toplevel_names = _hacked_write_toplevel_names
18 
19+if sys.version < (3, 0):
20+    requiredTwisted = "15.5.0"
21+else:
22+    requiredTwisted = "16.4.0"
23+
24 setup(name='wokkel',
25       version='0.7.1',
26       description='Twisted Jabber support library',
27@@ -44,7 +50,7 @@
28       package_data={'twisted.plugins': ['twisted/plugins/server.py']},
29       zip_safe=False,
30       install_requires=[
31-          'Twisted >= 10.0.0',
32+          'Twisted >= %s' % requiredTwisted,
33           'python-dateutil',
34       ],
35 )
Note: See TracBrowser for help on using the repository browser.