소스 검색

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')
     ]