##// END OF EJS Templates
include js tests in package_data
Paul Ivanov -
Show More
@@ -137,7 +137,6 b' def find_package_data():'
137 cwd = os.getcwd()
137 cwd = os.getcwd()
138 os.chdir(os.path.join('IPython', 'html'))
138 os.chdir(os.path.join('IPython', 'html'))
139 static_walk = list(os.walk('static'))
139 static_walk = list(os.walk('static'))
140 os.chdir(cwd)
141 static_data = []
140 static_data = []
142 for parent, dirs, files in static_walk:
141 for parent, dirs, files in static_walk:
143 if parent.startswith(excludes):
142 if parent.startswith(excludes):
@@ -145,12 +144,17 b' def find_package_data():'
145 for f in files:
144 for f in files:
146 static_data.append(os.path.join(parent, f))
145 static_data.append(os.path.join(parent, f))
147
146
147 os.chdir(os.path.join('tests',))
148 js_tests = glob('casperjs/*.*') + glob('casperjs/*/*')
149 os.chdir(cwd)
150
148 package_data = {
151 package_data = {
149 'IPython.config.profile' : ['README*', '*/*.py'],
152 'IPython.config.profile' : ['README*', '*/*.py'],
150 'IPython.core.tests' : ['*.png', '*.jpg'],
153 'IPython.core.tests' : ['*.png', '*.jpg'],
151 'IPython.testing' : ['*.txt'],
154 'IPython.testing' : ['*.txt'],
152 'IPython.testing.plugin' : ['*.txt'],
155 'IPython.testing.plugin' : ['*.txt'],
153 'IPython.html' : ['templates/*'] + static_data,
156 'IPython.html' : ['templates/*'] + static_data,
157 'IPython.html.tests' : js_tests,
154 'IPython.qt.console' : ['resources/icon/*.svg'],
158 'IPython.qt.console' : ['resources/icon/*.svg'],
155 'IPython.nbconvert' : ['templates/*.tpl', 'templates/latex/*.tplx',
159 'IPython.nbconvert' : ['templates/*.tpl', 'templates/latex/*.tplx',
156 'templates/latex/skeleton/*.tplx', 'templates/skeleton/*',
160 'templates/latex/skeleton/*.tplx', 'templates/skeleton/*',
General Comments 0
You need to be logged in to leave comments. Login now