|
1 | 1 | # -*- coding: utf-8 -*- |
2 | | -from __future__ import absolute_import, print_function |
3 | 2 | from setuptools import setup, find_packages |
4 | 3 |
|
5 | 4 | import sys |
6 | 5 | import warnings |
7 | 6 |
|
8 | 7 | VERSION = 'undefined' |
9 | | -install_requires = ['six', 'pyprind'] |
| 8 | +install_requires = ['pyprind', 'requests>=2.0.0', 'urllib3>=1.26.0'] |
10 | 9 | extra = {} |
11 | 10 |
|
12 | 11 | with open('solvebio/version.py') as f: |
13 | 12 | for row in f.readlines(): |
14 | 13 | if row.startswith('VERSION'): |
15 | 14 | exec(row) |
16 | 15 |
|
17 | | -if sys.version_info < (2, 6): |
18 | | - warnings.warn( |
19 | | - 'Python 2.5 is no longer officially supported by SolveBio. ' |
20 | | - 'If you have any questions, please file an issue on GitHub or ' |
21 | | - 'contact us at support@solvebio.com.', |
22 | | - DeprecationWarning) |
23 | | - install_requires.append('requests >= 0.8.8, < 0.10.1') |
24 | | - install_requires.append('ssl') |
25 | | -elif sys.version_info < (2, 7): |
26 | | - install_requires.append('ordereddict') |
27 | | -else: |
28 | | - install_requires.append('requests>=2.0.0') |
29 | | - |
30 | | - |
31 | 16 | # solvebio-recipes requires additional packages |
32 | 17 | recipes_requires = [ |
33 | 18 | 'pyyaml==5.3.1', |
|
38 | 23 | "recipes": recipes_requires |
39 | 24 | } |
40 | 25 |
|
41 | | -# Adjustments for Python 2 vs 3 |
42 | | -if sys.version_info < (3, 0): |
43 | | - # Get simplejson if we don't already have json |
44 | | - try: |
45 | | - import json # noqa |
46 | | - except ImportError: |
47 | | - install_requires.append('simplejson') |
48 | | - |
49 | | - # solvebio-recipes only available in python3 |
50 | | - extras_requires = {} |
51 | | - |
52 | 26 | with open('README.md') as f: |
53 | 27 | long_description = f.read() |
54 | 28 |
|
|
0 commit comments