10
10
import sys
11
11
from os .path import join as pjoin
12
12
13
+ # Name of the project
14
+ name = 'ipympl'
15
+
13
16
here = os .path .dirname (os .path .abspath (__file__ ))
14
17
node_root = pjoin (here , 'js' )
15
18
is_repo = os .path .exists (pjoin (here , '.git' ))
@@ -138,37 +141,37 @@ def run(self):
138
141
with open (pjoin (here , 'ipympl' , '_version.py' )) as f :
139
142
exec (f .read (), {}, version_ns )
140
143
141
- setup_args = {
142
- ' name' : 'ipympl' ,
143
- ' version' : version_ns ['__version__' ],
144
- ' description' : 'Matplotlib Jupyter Extension' ,
145
- ' long_description' : LONG_DESCRIPTION ,
146
- ' license' : 'BSD License' ,
147
- ' include_package_data' : True ,
148
- ' data_files' : get_data_files (),
149
- ' install_requires' : [
144
+ setup_args = dict (
145
+ name = name ,
146
+ version = version_ns ['__version__' ],
147
+ description = 'Matplotlib Jupyter Extension' ,
148
+ long_description = LONG_DESCRIPTION ,
149
+ license = 'BSD License' ,
150
+ include_package_data = True ,
151
+ data_files = get_data_files (),
152
+ install_requires = [
150
153
'ipykernel>=4.7' ,
151
154
'ipywidgets>=7.5.0' ,
152
155
'matplotlib>=2.0.0'
153
156
],
154
- ' packages' : find_packages (),
155
- ' zip_safe' : False ,
156
- ' cmdclass' : {
157
+ packages = find_packages (),
158
+ zip_safe = False ,
159
+ cmdclass = {
157
160
'build_py' : js_prerelease (build_py ),
158
161
'egg_info' : js_prerelease (egg_info ),
159
162
'sdist' : js_prerelease (sdist , strict = True ),
160
163
'jsdeps' : NPM ,
161
164
},
162
- ' author' : 'Matplotlib Development Team' ,
163
- ' author_email' : '[email protected] ' ,
164
- ' url' : 'http://matplotlib.org' ,
165
- ' keywords' : [
165
+ author = 'Matplotlib Development Team' ,
166
+
167
+ url = 'http://matplotlib.org' ,
168
+ keywords = [
166
169
'ipython' ,
167
170
'jupyter' ,
168
171
'widgets' ,
169
172
'graphics' ,
170
173
],
171
- ' classifiers' : [
174
+ classifiers = [
172
175
'Development Status :: 4 - Beta' ,
173
176
'Framework :: IPython' ,
174
177
'Intended Audience :: Developers' ,
@@ -181,6 +184,6 @@ def run(self):
181
184
'Programming Language :: Python :: 3.4' ,
182
185
'Programming Language :: Python :: 3.5' ,
183
186
],
184
- }
187
+ )
185
188
186
189
setup (** setup_args )
0 commit comments