Skip to content

Commit dbf4846

Browse files
committed
Updated setup.py
Changes include: - Removed support for versions of setuptools prior to 18.0 (dating to early 2015) - This removed some extra logic related to conditional dependencies and simplified the imports - Added a python_requires statement to require Python 3.4 or newer - I believe this requires setuptools >= 34.4
1 parent 2bd1c8f commit dbf4846

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

setup.py

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
"""
44
Setuptools setup file, used to install or test 'cmd2'
55
"""
6-
import sys
7-
8-
import setuptools
96
from setuptools import setup
107

118
VERSION = '0.9.0'
@@ -72,18 +69,7 @@
7269
":python_version<'3.5'": ['contextlib2', 'typing'],
7370
}
7471

75-
if int(setuptools.__version__.split('.')[0]) < 18:
76-
EXTRAS_REQUIRE = {}
77-
if sys.platform.startswith('win'):
78-
INSTALL_REQUIRES.append('pyreadline')
79-
else:
80-
INSTALL_REQUIRES.append('wcwidth')
81-
if sys.version_info < (3, 5):
82-
INSTALL_REQUIRES.append('contextlib2')
83-
INSTALL_REQUIRES.append('typing')
84-
8572
TESTS_REQUIRE = ['pytest', 'pytest-xdist']
86-
DOCS_REQUIRE = ['sphinx', 'sphinx_rtd_theme', 'pyperclip', 'wcwidth']
8773

8874
setup(
8975
name="cmd2",
@@ -98,6 +84,7 @@
9884
platforms=['any'],
9985
packages=['cmd2'],
10086
keywords='command prompt console cmd',
87+
python_requires='>=3.4',
10188
install_requires=INSTALL_REQUIRES,
10289
extras_require=EXTRAS_REQUIRE,
10390
tests_require=TESTS_REQUIRE,

0 commit comments

Comments
 (0)