浏览代码

wip update setupbase for new schemas structure

Steven Silvester 7 年之前
父节点
当前提交
19b9ee7bb2
共有 1 个文件被更改,包括 7 次插入2 次删除
  1. 7 2
      setupbase.py

+ 7 - 2
setupbase.py

@@ -82,10 +82,15 @@ def find_package_data():
         slice_len = len('jupyterlab' + os.sep)
         theme_dirs.append(pjoin(dir[slice_len:], '*'))
 
+    schema_dirs = []
+    for dir, subdirs, files in os.walk(pjoin('jupyterlab', 'schemas')):
+        slice_len = len('jupyterlab' + os.sep)
+        schema_dirs.append(pjoin(dir[slice_len:], '*'))
+
     return {
         'jupyterlab': ['build/*', 'schemas/*', 'index.app.js',
                        'webpack.config.js', 'package.app.json',
-                       'released_packages.txt', 'node-version-check.js'] + theme_dirs
+                       'released_packages.txt', 'node-version-check.js'] + theme_dirs + schema_dirs
     }
 
 
@@ -156,7 +161,7 @@ class CoreDeps(Command):
 
     # Representative files that should exist after a successful core setup
     targets = [
-        pjoin(here, 'jupyterlab', 'schemas', 'jupyterlab-shortcuts-extension$plugin.json'),
+        pjoin(here, 'jupyterlab', 'schemas', '@jupyterlab', 'shortcuts-extension', 'plugin.json'),
         pjoin(here, 'jupyterlab', 'themes', 'jupyterlab-theme-light-extension',
             'images', 'jupyterlab.svg')
     ]