[Python-modules-commits] [python-click-threading] 01/02: Fix conditional dependency on futures

Filip Pytloun fpytloun-guest at moszumanska.debian.org
Fri Aug 12 09:26:23 UTC 2016


This is an automated email from the git hooks/post-receive script.

fpytloun-guest pushed a commit to branch master
in repository python-click-threading.

commit 6b4bd92e4caddbbf3f32c0d90ed0563c00732433
Author: Filip Pytloun <filip at pytloun.cz>
Date:   Fri Aug 12 11:23:17 2016 +0200

    Fix conditional dependency on futures
---
 setup.py | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/setup.py b/setup.py
index 1b3d84f..0f7cd9c 100644
--- a/setup.py
+++ b/setup.py
@@ -1,5 +1,6 @@
 #!/usr/bin/env python
 
+import sys
 import ast
 import re
 
@@ -11,6 +12,13 @@ with open('click_threading/__init__.py', 'rb') as f:
     version = str(ast.literal_eval(_version_re.search(
         f.read().decode('utf-8')).group(1)))
 
+INSTALL_REQUIRES = [
+    'click>=5.0',
+]
+
+if sys.version_info[0] == 2:
+    INSTALL_REQUIRES.append('futures')
+
 setup(
     name='click-threading',
     version=version,
@@ -20,10 +28,5 @@ setup(
     url='https://github.com/click-contrib/click-threading',
     license='MIT',
     packages=['click_threading'],
-    install_requires=[
-        'click>=5.0',
-    ],
-    extras_require={
-        ':python_version < "3.2"': 'futures'
-    }
+    install_requires=INSTALL_REQUIRES
 )

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-click-threading.git



More information about the Python-modules-commits mailing list