##// END OF EJS Templates
Specify install_requires in setup.cfg
James Morris -
Show More
@@ -7,6 +7,22 b' project_urls ='
7 Source = https://github.com/ipython/ipython
7 Source = https://github.com/ipython/ipython
8 Tracker = https://github.com/ipython/ipython/issues
8 Tracker = https://github.com/ipython/ipython/issues
9
9
10 [options]
11 install_requires =
12 setuptools>=18.5
13 jedi>=0.16
14 decorator
15 pickleshare
16 traitlets>=4.2
17 prompt_toolkit>=2.0.0,<3.1.0,!=3.0.0,!=3.0.1
18 pygments
19 backcall
20 stack_data
21 matplotlib-inline
22 pexpect>4.3; sys_platform != "win32"
23 appnope; sys_platform == "darwin"
24 colorama; sys_platform == "win32"
25
10 [velin]
26 [velin]
11 ignore_patterns =
27 ignore_patterns =
12 IPython/core/tests,
28 IPython/core/tests,
@@ -181,46 +181,6 b' extras_require = dict('
181 nbconvert=["nbconvert"],
181 nbconvert=["nbconvert"],
182 )
182 )
183
183
184 install_requires = [
185 "setuptools>=18.5",
186 "jedi>=0.16",
187 "decorator",
188 "pickleshare",
189 "traitlets>=4.2",
190 "prompt_toolkit>=2.0.0,<3.1.0,!=3.0.0,!=3.0.1",
191 "pygments",
192 "backcall",
193 "stack_data",
194 "matplotlib-inline",
195 ]
196
197 # Platform-specific dependencies:
198 # This is the correct way to specify these,
199 # but requires pip >= 6. pip < 6 ignores these.
200
201 extras_require.update(
202 {
203 ':sys_platform != "win32"': ["pexpect>4.3"],
204 ':sys_platform == "darwin"': ["appnope"],
205 ':sys_platform == "win32"': ["colorama"],
206 }
207 )
208 # FIXME: re-specify above platform dependencies for pip < 6
209 # These would result in non-portable bdists.
210 if not any(arg.startswith('bdist') for arg in sys.argv):
211 if sys.platform == 'darwin':
212 install_requires.extend(['appnope'])
213
214 if not sys.platform.startswith("win"):
215 install_requires.append("pexpect>4.3")
216
217 # workaround pypa/setuptools#147, where setuptools misspells
218 # platform_python_implementation as python_implementation
219 if 'setuptools' in sys.modules:
220 for key in list(extras_require):
221 if 'platform_python_implementation' in key:
222 new_key = key.replace('platform_python_implementation', 'python_implementation')
223 extras_require[new_key] = extras_require.pop(key)
224
184
225 everything = set()
185 everything = set()
226 for key, deps in extras_require.items():
186 for key, deps in extras_require.items():
@@ -238,8 +198,8 b' setuptools_extra_args["entry_points"] = {'
238 "ipython3 = IPython.lib.lexers:IPython3Lexer",
198 "ipython3 = IPython.lib.lexers:IPython3Lexer",
239 ],
199 ],
240 }
200 }
201
241 setup_args["extras_require"] = extras_require
202 setup_args["extras_require"] = extras_require
242 setup_args["install_requires"] = install_requires
243
203
244 #---------------------------------------------------------------------------
204 #---------------------------------------------------------------------------
245 # Do the actual setup now
205 # Do the actual setup now
General Comments 0
You need to be logged in to leave comments. Login now