|
6 | 6 |
|
7 | 7 | import io |
8 | 8 | import re |
9 | | -from sys import version_info |
10 | 9 |
|
11 | 10 | from setuptools import find_packages, setup |
12 | 11 |
|
|
19 | 18 | '\n\n' + open('HISTORY.txt').read()) |
20 | 19 |
|
21 | 20 |
|
22 | | -if version_info[0] == 2: |
23 | | - console_script = 'ipdb' |
24 | | -else: |
25 | | - console_script = 'ipdb%d' % version_info.major |
26 | | - |
27 | | - |
28 | 21 | setup(name='ipdb', |
29 | 22 | version=version, |
30 | 23 | description="IPython-enabled pdb", |
31 | 24 | long_description=long_description, |
32 | 25 | classifiers=[ |
33 | | - 'Programming Language :: Python :: 2.7', |
34 | 26 | 'Programming Language :: Python :: 3', |
35 | 27 | 'Programming Language :: Python :: 3.4', |
36 | 28 | 'Programming Language :: Python :: 3.5', |
|
54 | 46 | include_package_data=True, |
55 | 47 | zip_safe=True, |
56 | 48 | test_suite='tests', |
57 | | - python_requires=">=2.7", |
| 49 | + python_requires=">=3.4", |
58 | 50 | install_requires=[ |
59 | 51 | 'setuptools', |
60 | 52 | ], |
61 | 53 | extras_require={ |
62 | | - ':python_version == "2.7"': ['ipython >= 5.1.0, < 6.0.0', 'toml >= 0.10.2', 'decorator < 5.0.0'], |
63 | 54 | # No support for python 3.0, 3.1, 3.2. |
64 | 55 | # FTR, `decorator` is also a dependency of Ipython. |
65 | 56 | ':python_version == "3.4"': ['ipython >= 6.0.0, < 7.0.0', 'toml >= 0.10.2', 'decorator < 5.0.0'], |
66 | 57 | ':python_version == "3.5"': ['ipython >= 7.0.0, < 7.10.0', 'toml >= 0.10.2', 'decorator'], |
67 | 58 | ':python_version == "3.6"': ['ipython >= 7.10.0, < 7.17.0', 'toml >= 0.10.2', 'decorator'], |
68 | 59 | ':python_version > "3.6"': ['ipython >= 7.17.0', 'toml >= 0.10.2', 'decorator'], |
69 | 60 | }, |
70 | | - tests_require=[ |
71 | | - 'mock; python_version<"3"' |
72 | | - ], |
73 | 61 | entry_points={ |
74 | | - 'console_scripts': ['%s = ipdb.__main__:main' % console_script] |
| 62 | + 'console_scripts': ['ipdb3 = ipdb.__main__:main'] |
75 | 63 | } |
76 | 64 | ) |
0 commit comments