|
50 | 50 | #-----------------------------------------------------------------------------
|
51 | 51 |
|
52 | 52 | import os
|
53 |
| -from glob import glob |
54 | 53 |
|
55 | 54 | from setuptools import setup
|
56 | 55 |
|
|
71 | 70 | setup_args = dict(
|
72 | 71 | name = name,
|
73 | 72 | version = version_ns['__version__'],
|
74 |
| - scripts = glob(pjoin('scripts', '*')), |
75 | 73 | packages = packages,
|
76 | 74 | description = "Jupyter terminal console",
|
77 | 75 | long_description= "An IPython-like terminal frontend for Jupyter kernels in any language.",
|
|
89 | 87 | 'Programming Language :: Python',
|
90 | 88 | 'Programming Language :: Python :: 3',
|
91 | 89 | ],
|
92 |
| -) |
93 |
| - |
94 |
| -if 'develop' in sys.argv or any(a.startswith('bdist') for a in sys.argv): |
95 |
| - import setuptools |
96 |
| - |
97 |
| -setuptools_args = {} |
98 |
| -install_requires = setuptools_args['install_requires'] = [ |
99 |
| - 'jupyter_client', |
100 |
| - 'ipython', |
101 |
| - 'ipykernel', # bless IPython kernel for now |
102 |
| - 'prompt_toolkit>=2.0.0,<3.1.0,!=3.0.0,!=3.0.1', |
103 |
| - 'pygments', |
104 |
| -] |
105 |
| - |
106 |
| -extras_require = setuptools_args['extras_require'] = { |
107 |
| - 'test:sys_platform != "win32"': ['pexpect'], |
108 |
| - |
109 |
| - |
110 |
| -} |
111 |
| - |
112 |
| -setuptools_args['python_requires'] = '>=3.6' |
113 |
| - |
114 |
| - |
115 |
| -setuptools_args['entry_points'] = { |
| 90 | + install_requires=[ |
| 91 | + 'jupyter_client', |
| 92 | + 'ipython', |
| 93 | + 'ipykernel', # bless IPython kernel for now |
| 94 | + 'prompt_toolkit>=2.0.0,<3.1.0,!=3.0.0,!=3.0.1', |
| 95 | + 'pygments', |
| 96 | + ], |
| 97 | + extras_require={ |
| 98 | + 'test:sys_platform != "win32"': ['pexpect'], |
| 99 | + }, |
| 100 | + python_requires='>=3.6', |
| 101 | + entry_points={ |
116 | 102 | 'console_scripts': [
|
117 | 103 | 'jupyter-console = jupyter_console.app:main',
|
118 | 104 | ]
|
119 |
| -} |
120 |
| - |
121 |
| -if 'setuptools' in sys.modules: |
122 |
| - setup_args.update(setuptools_args) |
123 |
| - setup_args.pop('scripts') |
| 105 | + } |
| 106 | +) |
124 | 107 |
|
125 | 108 |
|
126 | 109 | if __name__ == '__main__':
|
|
0 commit comments