浏览代码

Fix handling of templates dir and update build message

Steven Silvester 7 年之前
父节点
当前提交
2821019cb8
共有 3 个文件被更改,包括 5 次插入3 次删除
  1. 1 1
      jupyterlab/build_handler.py
  2. 2 0
      scripts/travis_script.sh
  3. 2 2
      setup.py

+ 1 - 1
jupyterlab/build_handler.py

@@ -40,7 +40,7 @@ class Builder(object):
             self.log.warn('Build recommended')
             [self.log.warn(m) for m in messages]
         else:
-            self.log.info('Build not recommended')
+            self.log.info('Build is up to date')
 
         raise gen.Return(dict(status=status, message='\n'.join(messages)))
 

+ 2 - 0
scripts/travis_script.sh

@@ -110,6 +110,8 @@ if [[ $GROUP == integrity ]]; then
     source activate test_install
     pip install ".[test]"  # this populates <sys_prefix>/share/jupyter/lab
     python -m jupyterlab.selenium_check
+    # Make sure we can run the build
+    jupyter lab build
 
     # Make sure we can start and kill the lab server
     jupyter lab --no-browser &

+ 2 - 2
setup.py

@@ -36,8 +36,8 @@ data_files_spec = [
 
 package_data_spec = dict()
 package_data_spec[NAME] = [
-    'staging/*', 'static/**', 'tests/mock_packages/**', 'themes/**',
-    'schemas/**'
+    'staging/*', 'staging/templates/*', 'static/**', 'tests/mock_packages/**',
+    'themes/**', 'schemas/**'
 ]
 
 staging = pjoin(HERE, NAME, 'staging')